KiCad PCB EDA Suite
Loading...
Searching...
No Matches
wayland-pointer-constraints-unstable-v1.h
Go to the documentation of this file.
1/* Generated by wayland-scanner 1.20.0 */
2
3#ifndef POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
4#define POINTER_CONSTRAINTS_UNSTABLE_V1_CLIENT_PROTOCOL_H
5
6#include <stdint.h>
7#include <stddef.h>
8#include "wayland-client.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
69struct wl_pointer;
70struct wl_region;
71struct wl_surface;
72struct zwp_confined_pointer_v1;
73struct zwp_locked_pointer_v1;
74struct zwp_pointer_constraints_v1;
75
76#ifndef ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
77#define ZWP_POINTER_CONSTRAINTS_V1_INTERFACE
115extern const struct wl_interface zwp_pointer_constraints_v1_interface;
116#endif
117#ifndef ZWP_LOCKED_POINTER_V1_INTERFACE
118#define ZWP_LOCKED_POINTER_V1_INTERFACE
176extern const struct wl_interface zwp_locked_pointer_v1_interface;
177#endif
178#ifndef ZWP_CONFINED_POINTER_V1_INTERFACE
179#define ZWP_CONFINED_POINTER_V1_INTERFACE
223extern const struct wl_interface zwp_confined_pointer_v1_interface;
224#endif
225
226#ifndef ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
227#define ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM
240};
241#endif /* ZWP_POINTER_CONSTRAINTS_V1_ERROR_ENUM */
242
243#ifndef ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
244#define ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM
272};
273#endif /* ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ENUM */
274
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
278
279
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
292
294static inline void
295zwp_pointer_constraints_v1_set_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1, void *user_data)
296{
297 wl_proxy_set_user_data((struct wl_proxy *) zwp_pointer_constraints_v1, user_data);
298}
299
301static inline void *
302zwp_pointer_constraints_v1_get_user_data(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
303{
304 return wl_proxy_get_user_data((struct wl_proxy *) zwp_pointer_constraints_v1);
305}
306
307static inline uint32_t
308zwp_pointer_constraints_v1_get_version(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
309{
310 return wl_proxy_get_version((struct wl_proxy *) zwp_pointer_constraints_v1);
311}
312
319static inline void
320zwp_pointer_constraints_v1_destroy(struct zwp_pointer_constraints_v1 *zwp_pointer_constraints_v1)
321{
322 wl_proxy_marshal_flags((struct wl_proxy *) zwp_pointer_constraints_v1,
323 ZWP_POINTER_CONSTRAINTS_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_pointer_constraints_v1), WL_MARSHAL_FLAG_DESTROY);
324}
325
364static inline struct zwp_locked_pointer_v1 *
365zwp_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)
366{
367 struct wl_proxy *id;
368
369 id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_pointer_constraints_v1,
370 ZWP_POINTER_CONSTRAINTS_V1_LOCK_POINTER, &zwp_locked_pointer_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_pointer_constraints_v1), 0, NULL, surface, pointer, region, lifetime);
371
372 return (struct zwp_locked_pointer_v1 *) id;
373}
374
396static inline struct zwp_confined_pointer_v1 *
397zwp_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)
398{
399 struct wl_proxy *id;
400
401 id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_pointer_constraints_v1,
402 ZWP_POINTER_CONSTRAINTS_V1_CONFINE_POINTER, &zwp_confined_pointer_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_pointer_constraints_v1), 0, NULL, surface, pointer, region, lifetime);
403
404 return (struct zwp_confined_pointer_v1 *) id;
405}
406
418 void (*locked)(void *data,
419 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
430 void (*unlocked)(void *data,
431 struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1);
432};
433
437static inline int
438zwp_locked_pointer_v1_add_listener(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1,
439 const struct zwp_locked_pointer_v1_listener *listener, void *data)
440{
441 return wl_proxy_add_listener((struct wl_proxy *) zwp_locked_pointer_v1,
442 (void (**)(void)) listener, data);
443}
444
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
448
452#define ZWP_LOCKED_POINTER_V1_LOCKED_SINCE_VERSION 1
456#define ZWP_LOCKED_POINTER_V1_UNLOCKED_SINCE_VERSION 1
457
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
470
472static inline void
473zwp_locked_pointer_v1_set_user_data(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, void *user_data)
474{
475 wl_proxy_set_user_data((struct wl_proxy *) zwp_locked_pointer_v1, user_data);
476}
477
479static inline void *
480zwp_locked_pointer_v1_get_user_data(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
481{
482 return wl_proxy_get_user_data((struct wl_proxy *) zwp_locked_pointer_v1);
483}
484
485static inline uint32_t
486zwp_locked_pointer_v1_get_version(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
487{
488 return wl_proxy_get_version((struct wl_proxy *) zwp_locked_pointer_v1);
489}
490
497static inline void
498zwp_locked_pointer_v1_destroy(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1)
499{
500 wl_proxy_marshal_flags((struct wl_proxy *) zwp_locked_pointer_v1,
501 ZWP_LOCKED_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_locked_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
502}
503
519static inline void
520zwp_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)
521{
522 wl_proxy_marshal_flags((struct wl_proxy *) zwp_locked_pointer_v1,
523 ZWP_LOCKED_POINTER_V1_SET_CURSOR_POSITION_HINT, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_locked_pointer_v1), 0, surface_x, surface_y);
524}
525
537static inline void
538zwp_locked_pointer_v1_set_region(struct zwp_locked_pointer_v1 *zwp_locked_pointer_v1, struct wl_region *region)
539{
540 wl_proxy_marshal_flags((struct wl_proxy *) zwp_locked_pointer_v1,
541 ZWP_LOCKED_POINTER_V1_SET_REGION, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_locked_pointer_v1), 0, region);
542}
543
555 void (*confined)(void *data,
556 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
567 void (*unconfined)(void *data,
568 struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1);
569};
570
574static inline int
575zwp_confined_pointer_v1_add_listener(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1,
576 const struct zwp_confined_pointer_v1_listener *listener, void *data)
577{
578 return wl_proxy_add_listener((struct wl_proxy *) zwp_confined_pointer_v1,
579 (void (**)(void)) listener, data);
580}
581
582#define ZWP_CONFINED_POINTER_V1_DESTROY 0
583#define ZWP_CONFINED_POINTER_V1_SET_REGION 1
584
588#define ZWP_CONFINED_POINTER_V1_CONFINED_SINCE_VERSION 1
592#define ZWP_CONFINED_POINTER_V1_UNCONFINED_SINCE_VERSION 1
593
597#define ZWP_CONFINED_POINTER_V1_DESTROY_SINCE_VERSION 1
601#define ZWP_CONFINED_POINTER_V1_SET_REGION_SINCE_VERSION 1
602
604static inline void
605zwp_confined_pointer_v1_set_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, void *user_data)
606{
607 wl_proxy_set_user_data((struct wl_proxy *) zwp_confined_pointer_v1, user_data);
608}
609
611static inline void *
612zwp_confined_pointer_v1_get_user_data(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
613{
614 return wl_proxy_get_user_data((struct wl_proxy *) zwp_confined_pointer_v1);
615}
616
617static inline uint32_t
618zwp_confined_pointer_v1_get_version(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
619{
620 return wl_proxy_get_version((struct wl_proxy *) zwp_confined_pointer_v1);
621}
622
629static inline void
630zwp_confined_pointer_v1_destroy(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1)
631{
632 wl_proxy_marshal_flags((struct wl_proxy *) zwp_confined_pointer_v1,
633 ZWP_CONFINED_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_confined_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
634}
635
656static inline void
657zwp_confined_pointer_v1_set_region(struct zwp_confined_pointer_v1 *zwp_confined_pointer_v1, struct wl_region *region)
658{
659 wl_proxy_marshal_flags((struct wl_proxy *) zwp_confined_pointer_v1,
660 ZWP_CONFINED_POINTER_V1_SET_REGION, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_confined_pointer_v1), 0, region);
661}
662
663#ifdef __cplusplus
664}
665#endif
666
667#endif
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_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)