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;
217 #ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
218 #define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
234 #ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
235 #define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
251 #define ZWP_POINTER_CONSTRAINTS_V1_DESTROY 0
252 #define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER 1
253 #define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER 2
259 #define ZWP_POINTER_CONSTRAINTS_V1_DESTROY_SINCE_VERSION 1
263 #define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER_SINCE_VERSION 1
267 #define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER_SINCE_VERSION 1
273 wl_proxy_set_user_data((
struct wl_proxy *) zwp_pointer_constraints_v1, user_data);
280 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_pointer_constraints_v1);
286 return wl_proxy_get_version((
struct wl_proxy *) zwp_pointer_constraints_v1);
298 wl_proxy_marshal((
struct wl_proxy *) zwp_pointer_constraints_v1,
301 wl_proxy_destroy((
struct wl_proxy *) zwp_pointer_constraints_v1);
342 static inline struct zwp_locked_pointer_v1 *
347 id = wl_proxy_marshal_constructor((
struct wl_proxy *) zwp_pointer_constraints_v1,
350 return (
struct zwp_locked_pointer_v1 *)
id;
374 static inline struct zwp_confined_pointer_v1 *
379 id = wl_proxy_marshal_constructor((
struct wl_proxy *) zwp_pointer_constraints_v1,
382 return (
struct zwp_confined_pointer_v1 *)
id;
397 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
409 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
419 return wl_proxy_add_listener((
struct wl_proxy *) zwp_locked_pointer_v1,
420 (
void (**)(
void)) listener,
data);
423 #define ZWP_LOCKED_POINTER_V1_DESTROY 0
424 #define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT 1
425 #define ZWP_LOCKED_POINTER_V1_SET_REGION 2
430 #define ZWP_LOCKED_POINTER_V1_LOCKED_SINCE_VERSION 1
434 #define ZWP_LOCKED_POINTER_V1_UNLOCKED_SINCE_VERSION 1
439 #define ZWP_LOCKED_POINTER_V1_DESTROY_SINCE_VERSION 1
443 #define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT_SINCE_VERSION 1
447 #define ZWP_LOCKED_POINTER_V1_SET_REGION_SINCE_VERSION 1
453 wl_proxy_set_user_data((
struct wl_proxy *) zwp_locked_pointer_v1, user_data);
460 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_locked_pointer_v1);
466 return wl_proxy_get_version((
struct wl_proxy *) zwp_locked_pointer_v1);
478 wl_proxy_marshal((
struct wl_proxy *) zwp_locked_pointer_v1,
481 wl_proxy_destroy((
struct wl_proxy *) zwp_locked_pointer_v1);
502 wl_proxy_marshal((
struct wl_proxy *) zwp_locked_pointer_v1,
520 wl_proxy_marshal((
struct wl_proxy *) zwp_locked_pointer_v1,
536 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
548 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
558 return wl_proxy_add_listener((
struct wl_proxy *) zwp_confined_pointer_v1,
559 (
void (**)(
void)) listener,
data);
562 #define ZWP_CONFINED_POINTER_V1_DESTROY 0
563 #define ZWP_CONFINED_POINTER_V1_SET_REGION 1
568 #define ZWP_CONFINED_POINTER_V1_CONFINED_SINCE_VERSION 1
572 #define ZWP_CONFINED_POINTER_V1_UNCONFINED_SINCE_VERSION 1
577 #define ZWP_CONFINED_POINTER_V1_DESTROY_SINCE_VERSION 1
581 #define ZWP_CONFINED_POINTER_V1_SET_REGION_SINCE_VERSION 1
587 wl_proxy_set_user_data((
struct wl_proxy *) zwp_confined_pointer_v1, user_data);
594 return wl_proxy_get_user_data((
struct wl_proxy *) zwp_confined_pointer_v1);
600 return wl_proxy_get_version((
struct wl_proxy *) zwp_confined_pointer_v1);
612 wl_proxy_marshal((
struct wl_proxy *) zwp_confined_pointer_v1,
615 wl_proxy_destroy((
struct wl_proxy *) zwp_confined_pointer_v1);
641 wl_proxy_marshal((
struct wl_proxy *) zwp_confined_pointer_v1,