Struct wayland_client::protocol::wl_shm::WlShm
[−]
[src]
pub struct WlShm { /* fields omitted */ }
Methods
impl WlShm
[src]
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 Send for WlShm
[src]
impl Sync for WlShm
[src]
impl Proxy for WlShm
[src]
fn ptr(&self) -> *mut wl_proxy
Pointer to the underlying wayland proxy object
unsafe fn from_ptr_new(ptr: *mut wl_proxy) -> WlShm
Create an instance from a wayland pointer Read more
unsafe fn from_ptr_initialized(ptr: *mut wl_proxy) -> WlShm
Create an instance from a wayland pointer Read more
fn interface_ptr() -> *const wl_interface
Pointer to the interface representation
fn interface_name() -> &'static str
Internal wayland name of this interface
fn supported_version() -> u32
Max version of this interface supported
fn version(&self) -> u32
Current version of the interface this proxy is instantiated with
fn status(&self) -> Liveness
Check if the proxy behind this handle is actually still alive
fn equals(&self, other: &WlShm) -> bool
Check of two handles are actually the same wayland object Read more
fn set_user_data(&self, ptr: *mut ())
Set a pointer associated as user data on this proxy Read more
fn get_user_data(&self) -> *mut ()
Get the pointer associated as user data on this proxy Read more
fn clone(&self) -> Option<Self> where
Self: Sized,
Self: Sized,
Clone this proxy handle Read more
unsafe fn clone_unchecked(&self) -> Self where
Self: Sized,
Self: Sized,
Unsafely clone this proxy handle Read more