SDL  2.0
The wl_seat interface

Data Structures

struct  wl_seat_listener
 

Macros

#define WL_SEAT_CAPABILITIES_SINCE_VERSION   1
 
#define WL_SEAT_NAME_SINCE_VERSION   2
 
#define WL_SEAT_GET_POINTER_SINCE_VERSION   1
 
#define WL_SEAT_GET_KEYBOARD_SINCE_VERSION   1
 
#define WL_SEAT_GET_TOUCH_SINCE_VERSION   1
 
#define WL_SEAT_RELEASE_SINCE_VERSION   5
 

Enumerations

enum  wl_seat_capability {
  WL_SEAT_CAPABILITY_POINTER = 1,
  WL_SEAT_CAPABILITY_KEYBOARD = 2,
  WL_SEAT_CAPABILITY_TOUCH = 4
}
 

Functions

static int wl_seat_add_listener (struct wl_seat *wl_seat, const struct wl_seat_listener *listener, void *data)
 
static void wl_seat_set_user_data (struct wl_seat *wl_seat, void *user_data)
 
static voidwl_seat_get_user_data (struct wl_seat *wl_seat)
 
static void wl_seat_destroy (struct wl_seat *wl_seat)
 
static struct wl_pointer * wl_seat_get_pointer (struct wl_seat *wl_seat)
 
static struct wl_keyboard * wl_seat_get_keyboard (struct wl_seat *wl_seat)
 
static struct wl_touch * wl_seat_get_touch (struct wl_seat *wl_seat)
 
static void wl_seat_release (struct wl_seat *wl_seat)
 

Detailed Description

A seat is a group of keyboards, pointer and touch devices. This object is published as a global during start up, or when such a device is hot plugged. A seat typically has a pointer and maintains a keyboard focus and a pointer focus.

Macro Definition Documentation

◆ WL_SEAT_CAPABILITIES_SINCE_VERSION

#define WL_SEAT_CAPABILITIES_SINCE_VERSION   1

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

◆ WL_SEAT_GET_KEYBOARD_SINCE_VERSION

#define WL_SEAT_GET_KEYBOARD_SINCE_VERSION   1

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

◆ WL_SEAT_GET_POINTER_SINCE_VERSION

#define WL_SEAT_GET_POINTER_SINCE_VERSION   1

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

◆ WL_SEAT_GET_TOUCH_SINCE_VERSION

#define WL_SEAT_GET_TOUCH_SINCE_VERSION   1

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

◆ WL_SEAT_NAME_SINCE_VERSION

#define WL_SEAT_NAME_SINCE_VERSION   2

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

◆ WL_SEAT_RELEASE_SINCE_VERSION

#define WL_SEAT_RELEASE_SINCE_VERSION   5

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

Enumeration Type Documentation

◆ wl_seat_capability

seat capability bitmask

This is a bitmask of capabilities this seat has; if a member is set, then it is present on the seat.

Enumerator
WL_SEAT_CAPABILITY_POINTER 

the seat has pointer devices

WL_SEAT_CAPABILITY_KEYBOARD 

the seat has one or more keyboards

WL_SEAT_CAPABILITY_TOUCH 

the seat has touch devices

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

3763  {
3764  /**
3765  * the seat has pointer devices
3766  */
3768  /**
3769  * the seat has one or more keyboards
3770  */
3772  /**
3773  * the seat has touch devices
3774  */
3776 };

Function Documentation

◆ wl_seat_add_listener()

static int wl_seat_add_listener ( struct wl_seat *  wl_seat,
const struct wl_seat_listener listener,
void data 
)
inlinestatic

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

3837 {
3838  return wl_proxy_add_listener((struct wl_proxy *) wl_seat,
3839  (void (**)(void)) listener, data);
3840 }
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974

◆ wl_seat_destroy()

static void wl_seat_destroy ( struct wl_seat *  wl_seat)
inlinestatic

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

3896 {
3897  wl_proxy_destroy((struct wl_proxy *) wl_seat);
3898 }

◆ wl_seat_get_keyboard()

static struct wl_keyboard* wl_seat_get_keyboard ( struct wl_seat *  wl_seat)
static

The ID provided will be initialized to the wl_keyboard interface for this seat.

This request only takes effect if the seat has the keyboard capability, or has had the keyboard capability in the past. It is a protocol violation to issue this request on a seat that has never had the keyboard capability.

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

References NULL, wl_keyboard_interface, and WL_SEAT_GET_KEYBOARD.

3935 {
3936  struct wl_proxy *id;
3937 
3938  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_seat,
3940 
3941  return (struct wl_keyboard *) id;
3942 }
GLuint id
const struct wl_interface wl_keyboard_interface
#define WL_SEAT_GET_KEYBOARD
#define NULL
Definition: begin_code.h:164

◆ wl_seat_get_pointer()

static struct wl_pointer* wl_seat_get_pointer ( struct wl_seat *  wl_seat)
static

The ID provided will be initialized to the wl_pointer interface for this seat.

This request only takes effect if the seat has the pointer capability, or has had the pointer capability in the past. It is a protocol violation to issue this request on a seat that has never had the pointer capability.

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

References NULL, wl_pointer_interface, and WL_SEAT_GET_POINTER.

3913 {
3914  struct wl_proxy *id;
3915 
3916  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_seat,
3918 
3919  return (struct wl_pointer *) id;
3920 }
GLuint id
const struct wl_interface wl_pointer_interface
#define NULL
Definition: begin_code.h:164
#define WL_SEAT_GET_POINTER

◆ wl_seat_get_touch()

static struct wl_touch* wl_seat_get_touch ( struct wl_seat *  wl_seat)
static

The ID provided will be initialized to the wl_touch interface for this seat.

This request only takes effect if the seat has the touch capability, or has had the touch capability in the past. It is a protocol violation to issue this request on a seat that has never had the touch capability.

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

References NULL, WL_SEAT_GET_TOUCH, and wl_touch_interface.

3957 {
3958  struct wl_proxy *id;
3959 
3960  id = wl_proxy_marshal_constructor((struct wl_proxy *) wl_seat,
3962 
3963  return (struct wl_touch *) id;
3964 }
GLuint id
const struct wl_interface wl_touch_interface
#define WL_SEAT_GET_TOUCH
#define NULL
Definition: begin_code.h:164

◆ wl_seat_get_user_data()

static void* wl_seat_get_user_data ( struct wl_seat *  wl_seat)
inlinestatic

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

3883 {
3884  return wl_proxy_get_user_data((struct wl_proxy *) wl_seat);
3885 }

◆ wl_seat_release()

static void wl_seat_release ( struct wl_seat *  wl_seat)
inlinestatic

Using this request a client can tell the server that it is not going to use the seat object anymore.

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

References WL_SEAT_RELEASE.

3974 {
3975  wl_proxy_marshal((struct wl_proxy *) wl_seat,
3976  WL_SEAT_RELEASE);
3977 
3978  wl_proxy_destroy((struct wl_proxy *) wl_seat);
3979 }
#define WL_SEAT_RELEASE

◆ wl_seat_set_user_data()

static void wl_seat_set_user_data ( struct wl_seat *  wl_seat,
void user_data 
)
inlinestatic

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

3876 {
3877  wl_proxy_set_user_data((struct wl_proxy *) wl_seat, user_data);
3878 }