SDL 2.0
The zwp_relative_pointer_manager_v1 interface

Macros

#define ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY_SINCE_VERSION   1
 
#define ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER_SINCE_VERSION   1
 

Functions

static void zwp_relative_pointer_manager_v1_set_user_data (struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1, void *user_data)
 
static voidzwp_relative_pointer_manager_v1_get_user_data (struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1)
 
static void zwp_relative_pointer_manager_v1_destroy (struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1)
 
static struct zwp_relative_pointer_v1 * zwp_relative_pointer_manager_v1_get_relative_pointer (struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1, struct wl_pointer *pointer)
 

Detailed Description

A global interface used for getting the relative pointer object for a given pointer.

Macro Definition Documentation

◆ ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY_SINCE_VERSION

#define ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY_SINCE_VERSION   1

◆ ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER_SINCE_VERSION

#define ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER_SINCE_VERSION   1

Function Documentation

◆ zwp_relative_pointer_manager_v1_destroy()

static void zwp_relative_pointer_manager_v1_destroy ( struct zwp_relative_pointer_manager_v1 *  zwp_relative_pointer_manager_v1)
inlinestatic

Used by the client to notify the server that it will no longer use this relative pointer manager object.

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

160{
161 wl_proxy_marshal_flags((struct wl_proxy *) zwp_relative_pointer_manager_v1,
162 ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_relative_pointer_manager_v1), WL_MARSHAL_FLAG_DESTROY);
163}
#define NULL
Definition: begin_code.h:167

References NULL, and ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY.

◆ zwp_relative_pointer_manager_v1_get_relative_pointer()

static struct zwp_relative_pointer_v1 * zwp_relative_pointer_manager_v1_get_relative_pointer ( struct zwp_relative_pointer_manager_v1 *  zwp_relative_pointer_manager_v1,
struct wl_pointer *  pointer 
)
inlinestatic

Create a relative pointer interface given a wl_pointer object. See the wp_relative_pointer interface for more details.

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

173{
174 struct wl_proxy *id;
175
176 id = wl_proxy_marshal_flags((struct wl_proxy *) zwp_relative_pointer_manager_v1,
177 ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER, &zwp_relative_pointer_v1_interface, wl_proxy_get_version((struct wl_proxy *) zwp_relative_pointer_manager_v1), 0, NULL, pointer);
178
179 return (struct zwp_relative_pointer_v1 *) id;
180}
GLsizei const void * pointer
GLuint id
const struct wl_interface zwp_relative_pointer_v1_interface
#define ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER

References NULL, ZWP_RELATIVE_POINTER_MANAGER_V1_GET_RELATIVE_POINTER, and zwp_relative_pointer_v1_interface.

◆ zwp_relative_pointer_manager_v1_get_user_data()

static void * zwp_relative_pointer_manager_v1_get_user_data ( struct zwp_relative_pointer_manager_v1 *  zwp_relative_pointer_manager_v1)
inlinestatic

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

142{
143 return wl_proxy_get_user_data((struct wl_proxy *) zwp_relative_pointer_manager_v1);
144}

◆ zwp_relative_pointer_manager_v1_set_user_data()

static void zwp_relative_pointer_manager_v1_set_user_data ( struct zwp_relative_pointer_manager_v1 *  zwp_relative_pointer_manager_v1,
void user_data 
)
inlinestatic

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

135{
136 wl_proxy_set_user_data((struct wl_proxy *) zwp_relative_pointer_manager_v1, user_data);
137}