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.
◆ WL_BUFFER_DESTROY_SINCE_VERSION
#define WL_BUFFER_DESTROY_SINCE_VERSION 1 |
◆ WL_BUFFER_RELEASE_SINCE_VERSION
#define WL_BUFFER_RELEASE_SINCE_VERSION 1 |
◆ wl_buffer_add_listener()
static int wl_buffer_add_listener |
( |
struct wl_buffer * |
wl_buffer, |
|
|
const struct wl_buffer_listener * |
listener, |
|
|
void * |
data |
|
) |
| |
|
inlinestatic |
Definition at line 1718 of file wayland-client-protocol.h.
1721 return wl_proxy_add_listener((
struct wl_proxy *) wl_buffer,
1722 (
void (**)(
void)) listener,
data);
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
◆ wl_buffer_destroy()
static void wl_buffer_destroy |
( |
struct wl_buffer * |
wl_buffer | ) |
|
|
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 1766 of file wayland-client-protocol.h.
References WL_BUFFER_DESTROY.
1768 wl_proxy_marshal((
struct wl_proxy *) wl_buffer,
1771 wl_proxy_destroy((
struct wl_proxy *) wl_buffer);
#define WL_BUFFER_DESTROY
◆ wl_buffer_get_user_data()
static void* wl_buffer_get_user_data |
( |
struct wl_buffer * |
wl_buffer | ) |
|
|
inlinestatic |
◆ wl_buffer_set_user_data()
static void wl_buffer_set_user_data |
( |
struct wl_buffer * |
wl_buffer, |
|
|
void * |
user_data |
|
) |
| |
|
inlinestatic |