3 #ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
4 #define POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
8 #include "wayland-client.h"
72 struct zwp_confined_pointer_v1;
73 struct zwp_locked_pointer_v1;
74 struct zwp_pointer_constraints_v1;
76 #ifndef ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
77 #define ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
117 #ifndef ZWP_LOCKED_POINTER_V1_INTERFACE
118 #define ZWP_LOCKED_POINTER_V1_INTERFACE
178 #ifndef ZWP_CONFINED_POINTER_V1_INTERFACE
179 #define ZWP_CONFINED_POINTER_V1_INTERFACE
226 #ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
227 #define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
243 #ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
244 #define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
275 #define ZWP_POINTER_CONSTRAINTS_V1_DESTROY 0
276 #define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER 1
277 #define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER 2
283 #define ZWP_POINTER_CONSTRAINTS_V1_DESTROY_SINCE_VERSION 1
287 #define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER_SINCE_VERSION 1
291 #define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER_SINCE_VERSION 1
297 wl_proxy_set_user_data((
struct wl_proxy *) zwp_pointer_constraints_v1, user_data);
304 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_pointer_constraints_v1);
310 return wl_proxy_get_version((
struct wl_proxy *) zwp_pointer_constraints_v1);
322 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_pointer_constraints_v1,
364 static inline struct zwp_locked_pointer_v1 *
369 id = wl_proxy_marshal_flags((
struct wl_proxy *) zwp_pointer_constraints_v1,
372 return (
struct zwp_locked_pointer_v1 *)
id;
396 static inline struct zwp_confined_pointer_v1 *
401 id = wl_proxy_marshal_flags((
struct wl_proxy *) zwp_pointer_constraints_v1,
404 return (
struct zwp_confined_pointer_v1 *)
id;
419 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
431 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
441 return wl_proxy_add_listener((
struct wl_proxy *) zwp_locked_pointer_v1,
442 (
void (**)(
void)) listener,
data);
445 #define ZWP_LOCKED_POINTER_V1_DESTROY 0
446 #define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT 1
447 #define ZWP_LOCKED_POINTER_V1_SET_REGION 2
452 #define ZWP_LOCKED_POINTER_V1_LOCKED_SINCE_VERSION 1
456 #define ZWP_LOCKED_POINTER_V1_UNLOCKED_SINCE_VERSION 1
461 #define ZWP_LOCKED_POINTER_V1_DESTROY_SINCE_VERSION 1
465 #define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT_SINCE_VERSION 1
469 #define ZWP_LOCKED_POINTER_V1_SET_REGION_SINCE_VERSION 1
475 wl_proxy_set_user_data((
struct wl_proxy *) zwp_locked_pointer_v1, user_data);
482 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_locked_pointer_v1);
488 return wl_proxy_get_version((
struct wl_proxy *) zwp_locked_pointer_v1);
500 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_locked_pointer_v1,
522 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_locked_pointer_v1,
540 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_locked_pointer_v1,
556 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
568 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
578 return wl_proxy_add_listener((
struct wl_proxy *) zwp_confined_pointer_v1,
579 (
void (**)(
void)) listener,
data);
582 #define ZWP_CONFINED_POINTER_V1_DESTROY 0
583 #define ZWP_CONFINED_POINTER_V1_SET_REGION 1
588 #define ZWP_CONFINED_POINTER_V1_CONFINED_SINCE_VERSION 1
592 #define ZWP_CONFINED_POINTER_V1_UNCONFINED_SINCE_VERSION 1
597 #define ZWP_CONFINED_POINTER_V1_DESTROY_SINCE_VERSION 1
601 #define ZWP_CONFINED_POINTER_V1_SET_REGION_SINCE_VERSION 1
607 wl_proxy_set_user_data((
struct wl_proxy *) zwp_confined_pointer_v1, user_data);
614 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_confined_pointer_v1);
620 return wl_proxy_get_version((
struct wl_proxy *) zwp_confined_pointer_v1);
632 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_confined_pointer_v1,
659 wl_proxy_marshal_flags((
struct wl_proxy *) zwp_confined_pointer_v1,