SDL
2.0
|
A buffer provides the content for a wl_surface. Buffers are created through factory interfaces such as wl_drm, wl_shm or similar. It has a width and a height and can be attached to a wl_surface, but the mechanism by which a client provides and updates the contents is defined by the buffer factory interface. More...
Data Structures | |
struct | wl_buffer_listener |
Macros | |
#define | WL_BUFFER_RELEASE_SINCE_VERSION 1 |
#define | WL_BUFFER_DESTROY_SINCE_VERSION 1 |
Functions | |
static int | wl_buffer_add_listener (struct wl_buffer *wl_buffer, const struct wl_buffer_listener *listener, void *data) |
static void | wl_buffer_set_user_data (struct wl_buffer *wl_buffer, void *user_data) |
static void * | wl_buffer_get_user_data (struct wl_buffer *wl_buffer) |
static void | wl_buffer_destroy (struct wl_buffer *wl_buffer) |
A buffer provides the content for a wl_surface. Buffers are created through factory interfaces such as wl_drm, wl_shm or similar. It has a width and a height and can be attached to a wl_surface, but the mechanism by which a client provides and updates the contents is defined by the buffer factory interface.
#define WL_BUFFER_DESTROY_SINCE_VERSION 1 |
Definition at line 1787 of file wayland-client-protocol.h.
#define WL_BUFFER_RELEASE_SINCE_VERSION 1 |
Definition at line 1782 of file wayland-client-protocol.h.
|
inlinestatic |
Definition at line 1770 of file wayland-client-protocol.h.
|
inlinestatic |
Destroy a buffer. If and how you need to release the backing storage is defined by the buffer factory interface.
For possible side-effects to a surface, see wl_surface.attach.
Definition at line 1818 of file wayland-client-protocol.h.
References NULL, and WL_BUFFER_DESTROY.
|
inlinestatic |
Definition at line 1798 of file wayland-client-protocol.h.
Definition at line 1791 of file wayland-client-protocol.h.