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

pub struct WlShm {
    // some fields omitted
}

shared memory support

A global singleton object that provides support for shared memory.

Clients can create wl_shm_pool objects using the create_pool request.

At connection setup time, the wl_shm object emits one or more format events to inform clients about the valid pixel formats that can be used for buffers.

Methods

impl WlShm

fn create_pool(&self, fd: RawFd, size: i32) -> WlShmPool

create a shm pool

Create a new wl_shm_pool object.

The pool can be used to create shared memory based buffer objects. The server will mmap size bytes of the passed file descriptor, to use as backing memory for the pool.

Trait Implementations

impl Sync for WlShm

impl Send for WlShm

impl Proxy for WlShm

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) -> WlShm

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

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

impl Debug for WlShm

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

impl Drop for WlShm

fn drop(&mut self)