Struct wayland_client::wayland::shm::WlBuffer [] [src]

pub struct WlBuffer {
    // some fields omitted
}

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.

Methods

impl WlBuffer

fn destroy(self)

destroy a buffer

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.

Trait Implementations

impl Sync for WlBuffer

impl Send for WlBuffer

impl Proxy for WlBuffer

fn ptr(&self) -> *mut wl_proxy

fn interface() -> *mut wl_interface

fn interface_name() -> &'static str

fn version() -> u32

fn id(&self) -> ProxyId

unsafe fn from_ptr(ptr: *mut wl_proxy) -> WlBuffer

unsafe fn from_ptr_no_own(ptr: *mut wl_proxy) -> WlBuffer

fn set_evt_iterator(&mut self, evt: &EventIterator)

impl Debug for WlBuffer

fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>

impl Drop for WlBuffer

fn drop(&mut self)