diff options
author | awy <awy@awy.one> | 2024-11-27 00:17:42 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-11-27 00:17:42 +0300 |
commit | ad6e47e1c94b83e7f4d7d47cc7a0e7152d3fb1d7 (patch) | |
tree | 94833ae96da371be34185648b4be9d67ce011799 /pointer-constraints-unstable-v1-protocol.h | |
parent | a237dee86d4178f8c10fcc48682b031808be46c0 (diff) |
color
Diffstat (limited to 'pointer-constraints-unstable-v1-protocol.h')
-rw-r--r-- | pointer-constraints-unstable-v1-protocol.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pointer-constraints-unstable-v1-protocol.h b/pointer-constraints-unstable-v1-protocol.h new file mode 100644 index 0000000..5d4c238 --- /dev/null +++ b/pointer-constraints-unstable-v1-protocol.h @@ -0,0 +1,63 @@ +/* Generated by wayland-scanner 1.23.1 */ + +#ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_ENUM_PROTOCOL_H +#define POINTER_CONSTRAINTS_UNSTABLE_V1_ENUM_PROTOCOL_H + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM +#define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM +/** + * @ingroup iface_zwp_pointer_constraints_v1 + * wp_pointer_constraints error values + * + * These errors can be emitted in response to wp_pointer_constraints + * requests. + */ +enum zwp_pointer_constraints_v1_error { + /** + * pointer constraint already requested on that surface + */ + ZWP_POINTER_CONSTRAINTS_V1_ERROR_ALREADY_CONSTRAINED = 1, +}; +#endif /* ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM */ + +#ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM +#define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM +/** + * @ingroup iface_zwp_pointer_constraints_v1 + * constraint lifetime + * + * These values represent different lifetime semantics. They are passed + * as arguments to the factory requests to specify how the constraint + * lifetimes should be managed. + */ +enum zwp_pointer_constraints_v1_lifetime { + /** + * the pointer constraint is defunct once deactivated + * + * A oneshot pointer constraint will never reactivate once it has + * been deactivated. See the corresponding deactivation event + * (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined) + * for details. + */ + ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT = 1, + /** + * the pointer constraint may reactivate + * + * A persistent pointer constraint may again reactivate once it + * has been deactivated. See the corresponding deactivation event + * (wp_locked_pointer.unlocked and wp_confined_pointer.unconfined) + * for details. + */ + ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT = 2, +}; +#endif /* ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM */ + +#ifdef __cplusplus +} +#endif + +#endif |