SDL  2.0
The zwp_relative_pointer_v1 interface

A wp_relative_pointer object is an extension to the wl_pointer interface used for emitting relative pointer events. It shares the same focus as wl_pointer objects of the same seat and will only emit events when it has focus. More...

Data Structures

struct  zwp_relative_pointer_v1_listener
 

Macros

#define ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION_SINCE_VERSION   1
 
#define ZWP_RELATIVE_POINTER_V1_DESTROY_SINCE_VERSION   1
 

Functions

static int zwp_relative_pointer_v1_add_listener (struct zwp_relative_pointer_v1 *zwp_relative_pointer_v1, const struct zwp_relative_pointer_v1_listener *listener, void *data)
 
static void zwp_relative_pointer_v1_set_user_data (struct zwp_relative_pointer_v1 *zwp_relative_pointer_v1, void *user_data)
 
static voidzwp_relative_pointer_v1_get_user_data (struct zwp_relative_pointer_v1 *zwp_relative_pointer_v1)
 
static void zwp_relative_pointer_v1_destroy (struct zwp_relative_pointer_v1 *zwp_relative_pointer_v1)
 

Detailed Description

A wp_relative_pointer object is an extension to the wl_pointer interface used for emitting relative pointer events. It shares the same focus as wl_pointer objects of the same seat and will only emit events when it has focus.

Macro Definition Documentation

◆ ZWP_RELATIVE_POINTER_V1_DESTROY_SINCE_VERSION

#define ZWP_RELATIVE_POINTER_V1_DESTROY_SINCE_VERSION   1

◆ ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION_SINCE_VERSION

#define ZWP_RELATIVE_POINTER_V1_RELATIVE_MOTION_SINCE_VERSION   1

Function Documentation

◆ zwp_relative_pointer_v1_add_listener()

static int zwp_relative_pointer_v1_add_listener ( struct zwp_relative_pointer_v1 *  zwp_relative_pointer_v1,
const struct zwp_relative_pointer_v1_listener listener,
void data 
)
inlinestatic

Definition at line 244 of file relative-pointer-unstable-v1-client-protocol.h.

246 {
247  return wl_proxy_add_listener((struct wl_proxy *) zwp_relative_pointer_v1,
248  (void (**)(void)) listener, data);
249 }

◆ zwp_relative_pointer_v1_destroy()

static void zwp_relative_pointer_v1_destroy ( struct zwp_relative_pointer_v1 *  zwp_relative_pointer_v1)
inlinestatic

Definition at line 287 of file relative-pointer-unstable-v1-client-protocol.h.

288 {
289  wl_proxy_marshal_flags((struct wl_proxy *) zwp_relative_pointer_v1,
290  ZWP_RELATIVE_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_relative_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
291 }

References NULL, and ZWP_RELATIVE_POINTER_V1_DESTROY.

◆ zwp_relative_pointer_v1_get_user_data()

static void* zwp_relative_pointer_v1_get_user_data ( struct zwp_relative_pointer_v1 *  zwp_relative_pointer_v1)
inlinestatic

Definition at line 272 of file relative-pointer-unstable-v1-client-protocol.h.

273 {
274  return wl_proxy_get_user_data((struct wl_proxy *) zwp_relative_pointer_v1);
275 }

◆ zwp_relative_pointer_v1_set_user_data()

static void zwp_relative_pointer_v1_set_user_data ( struct zwp_relative_pointer_v1 *  zwp_relative_pointer_v1,
void user_data 
)
inlinestatic

Definition at line 265 of file relative-pointer-unstable-v1-client-protocol.h.

266 {
267  wl_proxy_set_user_data((struct wl_proxy *) zwp_relative_pointer_v1, user_data);
268 }
NULL
#define NULL
Definition: begin_code.h:167
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
ZWP_RELATIVE_POINTER_V1_DESTROY
#define ZWP_RELATIVE_POINTER_V1_DESTROY
Definition: relative-pointer-unstable-v1-client-protocol.h:251