[−][src]Trait wayland_client::protocol::wl_shm::RequestsTrait
Required methods
fn create_pool<F>(
&self,
fd: RawFd,
size: i32,
implementor: F
) -> Result<Proxy<WlShmPool>, ()> where
F: FnOnce(NewProxy<WlShmPool>) -> Proxy<WlShmPool>,
&self,
fd: RawFd,
size: i32,
implementor: F
) -> Result<Proxy<WlShmPool>, ()> where
F: FnOnce(NewProxy<WlShmPool>) -> Proxy<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.