SDL
2.0
|
Data Structures | |
struct | wl_display_listener |
Macros | |
#define | WL_DISPLAY_ERROR_SINCE_VERSION 1 |
#define | WL_DISPLAY_DELETE_ID_SINCE_VERSION 1 |
#define | WL_DISPLAY_SYNC_SINCE_VERSION 1 |
#define | WL_DISPLAY_GET_REGISTRY_SINCE_VERSION 1 |
Enumerations | |
enum | wl_display_error { WL_DISPLAY_ERROR_INVALID_OBJECT = 0, WL_DISPLAY_ERROR_INVALID_METHOD = 1, WL_DISPLAY_ERROR_NO_MEMORY = 2 } |
Functions | |
static int | wl_display_add_listener (struct wl_display *wl_display, const struct wl_display_listener *listener, void *data) |
static void | wl_display_set_user_data (struct wl_display *wl_display, void *user_data) |
static void * | wl_display_get_user_data (struct wl_display *wl_display) |
static struct wl_callback * | wl_display_sync (struct wl_display *wl_display) |
static struct wl_registry * | wl_display_get_registry (struct wl_display *wl_display) |
The core global object. This is a special singleton object. It is used for internal Wayland protocol features.
#define WL_DISPLAY_DELETE_ID_SINCE_VERSION 1 |
Definition at line 903 of file wayland-client-protocol.h.
#define WL_DISPLAY_ERROR_SINCE_VERSION 1 |
Definition at line 899 of file wayland-client-protocol.h.
#define WL_DISPLAY_GET_REGISTRY_SINCE_VERSION 1 |
Definition at line 912 of file wayland-client-protocol.h.
#define WL_DISPLAY_SYNC_SINCE_VERSION 1 |
Definition at line 908 of file wayland-client-protocol.h.
enum wl_display_error |
global error values
These errors are global and can be emitted in response to any server request.
Definition at line 827 of file wayland-client-protocol.h.
|
inlinestatic |
Definition at line 886 of file wayland-client-protocol.h.
|
static |
This request creates a registry object that allows the client to list and bind the global objects available from the compositor.
It should be noted that the server side resources consumed in response to a get_registry request can only be released when the client disconnects, not when the client side proxy is destroyed. Therefore, clients should invoke get_registry as infrequently as possible to avoid wasting memory.
Definition at line 974 of file wayland-client-protocol.h.
References NULL, WL_DISPLAY_GET_REGISTRY, and wl_registry_interface.
|
inlinestatic |
Definition at line 923 of file wayland-client-protocol.h.
|
inlinestatic |
Definition at line 916 of file wayland-client-protocol.h.
|
static |
The sync request asks the server to emit the 'done' event on the returned wl_callback object. Since requests are handled in-order and events are delivered in-order, this can be used as a barrier to ensure all previous requests and the resulting events have been handled.
The object returned by this request will be destroyed by the compositor after the callback is fired and as such the client must not attempt to use it after that point.
The callback_data passed in the callback is the event serial.
Definition at line 950 of file wayland-client-protocol.h.
References callback(), NULL, wl_callback_interface, and WL_DISPLAY_SYNC.