SDL 2.0
The wl_touch interface

Data Structures

struct  wl_touch_listener
 

Macros

#define WL_TOUCH_DOWN_SINCE_VERSION   1
 
#define WL_TOUCH_UP_SINCE_VERSION   1
 
#define WL_TOUCH_MOTION_SINCE_VERSION   1
 
#define WL_TOUCH_FRAME_SINCE_VERSION   1
 
#define WL_TOUCH_CANCEL_SINCE_VERSION   1
 
#define WL_TOUCH_SHAPE_SINCE_VERSION   6
 
#define WL_TOUCH_ORIENTATION_SINCE_VERSION   6
 
#define WL_TOUCH_RELEASE_SINCE_VERSION   3
 

Functions

static int wl_touch_add_listener (struct wl_touch *wl_touch, const struct wl_touch_listener *listener, void *data)
 
static void wl_touch_set_user_data (struct wl_touch *wl_touch, void *user_data)
 
static voidwl_touch_get_user_data (struct wl_touch *wl_touch)
 
static void wl_touch_destroy (struct wl_touch *wl_touch)
 
static void wl_touch_release (struct wl_touch *wl_touch)
 

Detailed Description

The wl_touch interface represents a touchscreen associated with a seat.

Touch interactions can consist of one or more contacts. For each contact, a series of events is generated, starting with a down event, followed by zero or more motion events, and ending with an up event. Events relating to the same contact point can be identified by the ID of the sequence.

Macro Definition Documentation

◆ WL_TOUCH_CANCEL_SINCE_VERSION

#define WL_TOUCH_CANCEL_SINCE_VERSION   1

Definition at line 4934 of file wayland-client-protocol.h.

◆ WL_TOUCH_DOWN_SINCE_VERSION

#define WL_TOUCH_DOWN_SINCE_VERSION   1

Definition at line 4918 of file wayland-client-protocol.h.

◆ WL_TOUCH_FRAME_SINCE_VERSION

#define WL_TOUCH_FRAME_SINCE_VERSION   1

Definition at line 4930 of file wayland-client-protocol.h.

◆ WL_TOUCH_MOTION_SINCE_VERSION

#define WL_TOUCH_MOTION_SINCE_VERSION   1

Definition at line 4926 of file wayland-client-protocol.h.

◆ WL_TOUCH_ORIENTATION_SINCE_VERSION

#define WL_TOUCH_ORIENTATION_SINCE_VERSION   6

Definition at line 4942 of file wayland-client-protocol.h.

◆ WL_TOUCH_RELEASE_SINCE_VERSION

#define WL_TOUCH_RELEASE_SINCE_VERSION   3

Definition at line 4947 of file wayland-client-protocol.h.

◆ WL_TOUCH_SHAPE_SINCE_VERSION

#define WL_TOUCH_SHAPE_SINCE_VERSION   6

Definition at line 4938 of file wayland-client-protocol.h.

◆ WL_TOUCH_UP_SINCE_VERSION

#define WL_TOUCH_UP_SINCE_VERSION   1

Definition at line 4922 of file wayland-client-protocol.h.

Function Documentation

◆ wl_touch_add_listener()

static int wl_touch_add_listener ( struct wl_touch *  wl_touch,
const struct wl_touch_listener listener,
void data 
)
inlinestatic

Definition at line 4906 of file wayland-client-protocol.h.

4908{
4909 return wl_proxy_add_listener((struct wl_proxy *) wl_touch,
4910 (void (**)(void)) listener, data);
4911}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974

◆ wl_touch_destroy()

static void wl_touch_destroy ( struct wl_touch *  wl_touch)
inlinestatic

Definition at line 4971 of file wayland-client-protocol.h.

4972{
4973 wl_proxy_destroy((struct wl_proxy *) wl_touch);
4974}

◆ wl_touch_get_user_data()

static void * wl_touch_get_user_data ( struct wl_touch *  wl_touch)
inlinestatic

Definition at line 4958 of file wayland-client-protocol.h.

4959{
4960 return wl_proxy_get_user_data((struct wl_proxy *) wl_touch);
4961}

◆ wl_touch_release()

static void wl_touch_release ( struct wl_touch *  wl_touch)
inlinestatic

Definition at line 4980 of file wayland-client-protocol.h.

4981{
4982 wl_proxy_marshal_flags((struct wl_proxy *) wl_touch,
4983 WL_TOUCH_RELEASE, NULL, wl_proxy_get_version((struct wl_proxy *) wl_touch), WL_MARSHAL_FLAG_DESTROY);
4984}
#define NULL
Definition: begin_code.h:167
#define WL_TOUCH_RELEASE

References NULL, and WL_TOUCH_RELEASE.

◆ wl_touch_set_user_data()

static void wl_touch_set_user_data ( struct wl_touch *  wl_touch,
void user_data 
)
inlinestatic

Definition at line 4951 of file wayland-client-protocol.h.

4952{
4953 wl_proxy_set_user_data((struct wl_proxy *) wl_touch, user_data);
4954}