Product SiteDocumentation Site

A.5. wl_buffer - content for a wl_surface

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

A.5.1. Requests provided by wl_buffer

A.5.1.1. wl_buffer::damage - mark part of the buffer damaged

Notify the server that the specified area of the buffers contents have changed. To describe a more complicated area of damage, break down the region into rectangles and use this request several times.
wl_buffer::damage arguments
x
Type: int
y
Type: int
width
Type: int
height
Type: int

A.5.1.2. wl_buffer::destroy - destroy a buffer

Destroy a buffer. This will invalidate the object id.