Struct wayland_client::protocol::wl_shm_pool::WlShmPool [] [src]

pub struct WlShmPool { /* fields omitted */ }

Methods

impl WlShmPool
[src]

[src]

create a buffer from the pool

Create a wl_buffer object from the pool.

The buffer is created offset bytes into the pool and has width and height as specified. The stride argument specifies the number of bytes from the beginning of one row to the beginning of the next. The format is the pixel format of the buffer and must be one of those advertised through the wl_shm.format event.

A buffer will keep a reference to the pool it was created from so it is valid to destroy the pool immediately after creating a buffer from it.

[src]

destroy the pool

Destroy the shared memory pool.

The mmapped memory will be released when all buffers that have been created from this pool are gone.

This is a destructor, you cannot send requests to this object once this method is called.

[src]

change the size of the pool mapping

This request will cause the server to remap the backing memory for the pool from the file descriptor passed when the pool was created, but using the new size. This request can only be used to make the pool bigger.

Trait Implementations

impl Send for WlShmPool
[src]

impl Sync for WlShmPool
[src]

impl Proxy for WlShmPool
[src]

[src]

Pointer to the underlying wayland proxy object

[src]

Create an instance from a wayland pointer Read more

[src]

Create an instance from a wayland pointer Read more

[src]

Pointer to the interface representation

[src]

Internal wayland name of this interface

[src]

Max version of this interface supported

[src]

Current version of the interface this proxy is instantiated with

[src]

Check if the proxy behind this handle is actually still alive

[src]

Check of two handles are actually the same wayland object Read more

[src]

Set a pointer associated as user data on this proxy Read more

[src]

Get the pointer associated as user data on this proxy Read more

[src]

Unsafely clone this proxy handle Read more

[src]

Clone this proxy handle Read more