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,
#define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER
static void zwp_confined_pointer_v1_set_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, void *user_data)
static void zwp_locked_pointer_v1_set_cursor_position_hint(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, wl_fixed_t surface_x, wl_fixed_t surface_y)
#define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER
const struct wl_interface zwp_confined_pointer_v1_interface
static void * zwp_confined_pointer_v1_get_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
#define ZWP_POINTER_CONSTRAINTS_V1_DESTROY
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
zwp_pointer_constraints_v1_error
static void zwp_confined_pointer_v1_destroy(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
static void zwp_confined_pointer_v1_set_region(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, struct wl_region *region)
#define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT
void(* unlocked)(void *data, struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
zwp_pointer_constraints_v1_lifetime
const struct wl_interface zwp_pointer_constraints_v1_interface
static void zwp_locked_pointer_v1_set_user_data(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, void *user_data)
#define ZWP_CONFINED_POINTER_V1_DESTROY
static uint32_t zwp_confined_pointer_v1_get_version(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
static void zwp_pointer_constraints_v1_destroy(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
static struct zwp_locked_pointer_v1 * zwp_pointer_constraints_v1_lock_pointer(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1, struct wl_surface *surface, struct wl_pointer *pointer, struct wl_region *region, uint32_t lifetime)
static uint32_t zwp_pointer_constraints_v1_get_version(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
const struct wl_interface zwp_locked_pointer_v1_interface
static void zwp_locked_pointer_v1_set_region(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, struct wl_region *region)
#define ZWP_CONFINED_POINTER_V1_SET_REGION
static struct zwp_confined_pointer_v1 * zwp_pointer_constraints_v1_confine_pointer(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1, struct wl_surface *surface, struct wl_pointer *pointer, struct wl_region *region, uint32_t lifetime)
GLsizei const void * pointer
static void * zwp_pointer_constraints_v1_get_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
static int zwp_locked_pointer_v1_add_listener(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, const struct zwp_locked_pointer_v1_listener *listener, void *data)
static void zwp_pointer_constraints_v1_set_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1, void *user_data)
static uint32_t zwp_locked_pointer_v1_get_version(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
static void zwp_locked_pointer_v1_destroy(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
void(* locked)(void *data, struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
static void * zwp_locked_pointer_v1_get_user_data(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 void
#define ZWP_LOCKED_POINTER_V1_SET_REGION
static int zwp_confined_pointer_v1_add_listener(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, const struct zwp_confined_pointer_v1_listener *listener, void *data)
#define ZWP_LOCKED_POINTER_V1_DESTROY