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 1770 of file wayland-client-protocol.h.
1772{
1773 return wl_proxy_add_listener((struct wl_proxy *) wl_buffer,
1774 (
void (**)(
void)) listener,
data);
1775}
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 1818 of file wayland-client-protocol.h.
1819{
1820 wl_proxy_marshal_flags((struct wl_proxy *) wl_buffer,
1821 WL_BUFFER_DESTROY,
NULL, wl_proxy_get_version((
struct wl_proxy *) wl_buffer), WL_MARSHAL_FLAG_DESTROY);
1822}
#define WL_BUFFER_DESTROY
References NULL, and 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 |