3#ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
4#define POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
8#include "wayland-client.h"
72struct zwp_confined_pointer_v1;
73struct zwp_locked_pointer_v1;
74struct 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);
307static inline uint32_t
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,
364static 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;
396static 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);
485static inline uint32_t
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);
617static inline uint32_t
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,
static void zwp_confined_pointer_v1_set_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, void *user_data)
static void zwp_confined_pointer_v1_destroy(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
Destroy the confined pointer object.
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)
static void zwp_confined_pointer_v1_set_region(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, struct wl_region *region)
Set a new region used to confine the pointer.
static void * zwp_confined_pointer_v1_get_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
static void zwp_locked_pointer_v1_set_user_data(struct zwp_locked_pointer_v1 *zwp_locked_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)
Set the cursor position hint relative to the top left corner of the surface.
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_locked_pointer_v1_get_user_data(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)
Destroy the locked pointer object.
static void zwp_locked_pointer_v1_set_region(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, struct wl_region *region)
Set a new region used to lock the pointer.
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)
The lock_pointer request lets the client request to disable movements of the virtual pointer (i....
zwp_pointer_constraints_v1_lifetime
constraint lifetime
static void * zwp_pointer_constraints_v1_get_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
static void zwp_pointer_constraints_v1_set_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1, void *user_data)
zwp_pointer_constraints_v1_error
wp_pointer_constraints error values
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)
The confine_pointer request lets the client request to confine the pointer cursor to a given region.
static void zwp_pointer_constraints_v1_destroy(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
Used by the client to notify the server that it will no longer use this pointer constraints object.
@ ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT
the pointer constraint is defunct once deactivated
@ ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT
the pointer constraint may reactivate
@ ZWP_POINTER_CONSTRAINTS_V1_ERROR_ALREADY_CONSTRAINED
pointer constraint already requested on that surface
void(* confined)(void *data, struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
pointer confined
void(* unconfined)(void *data, struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
pointer unconfined
void(* locked)(void *data, struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
lock activation event
void(* unlocked)(void *data, struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
lock deactivation event
#define ZWP_CONFINED_POINTER_V1_SET_REGION
#define ZWP_LOCKED_POINTER_V1_DESTROY
#define ZWP_POINTER_CONSTRAINTS_V1_DESTROY
#define ZWP_LOCKED_POINTER_V1_SET_REGION
#define ZWP_CONFINED_POINTER_V1_DESTROY
const struct wl_interface zwp_locked_pointer_v1_interface
#define ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER
const struct wl_interface zwp_pointer_constraints_v1_interface
#define ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT
#define ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER
static uint32_t zwp_locked_pointer_v1_get_version(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
static uint32_t zwp_pointer_constraints_v1_get_version(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
const struct wl_interface zwp_confined_pointer_v1_interface
static uint32_t zwp_confined_pointer_v1_get_version(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)