Struct wayland_client::cursor::CursorImageBuffer [] [src]

pub struct CursorImageBuffer<'a> { /* fields omitted */ }

A buffer containing a cursor image.

You can access the Proxy<WlBuffer> via Deref.

Note that this proxy will be considered as "unmanaged" by the crate, as such you should not try to act with it beyong assigning it to wl_surfaces.

Methods from Deref<Target = Proxy<WlBuffer>>

[src]

Send a request through this object

This is the generic method to send requests.

Several requests require the creation of new objects using the child() method, which if done wrong can cause protocol errors (in which case the server will terminate your connexion). Thus unless your know exactly what you are doing, you should use the helper methods provided by the various RequestsTrait for each interface, which handle this correctly for you.

[src]

Check if the object associated with this proxy is still alive

Will return false if either:

  • The object has been destroyed
  • The object is not managed by this library (see the from_c_ptr method)

[src]

Retrieve the interface version of this wayland object instance

Returns 0 on dead objects

[src]

Associate an arbitrary payload to this object

The pointer you associate here can be retrieved from any other proxy to the same wayland object.

Setting or getting user data is done as an atomic operation. You are responsible for the correct initialization of this pointer, synchronisation of access, and destruction of the contents at the appropriate time.

[src]

Retrieve the arbitrary payload associated to this object

See set_user_data for explanations.

[src]

Check whether this proxy is managed by the library or not

See from_c_ptr for details.

[src]

Check if the other proxy refers to the same underlying wayland object

[src]

Get a raw pointer to the underlying wayland object

Retrieve a pointer to the object from the libwayland-client.so library. You will mostly need it to interface with C libraries needing access to wayland objects (to initialize an opengl context for example).

[src]

Create a wrapper for this object for queue management

As assigning a proxy to an event queue can be a racy operation in contextes involving multiple thread, this provides a facility to do this safely.

The wrapper object created behaves like a regular Proxy, except that all objects created as the result of its requests will be assigned to the queue associated to the provided token, rather than the queue of their parent. This does not change the queue of the proxy itself.

[src]

Create a new child object

This creates a new wayland object, considered as a child of this object. It will notably inherit its interface version.

The created object should immediatly be implemented and sent in a request to the server, to keep the object list properly synchronized. Failure to do so will likely cause a protocol error.

[src]

Check whether this proxy has been implemented with given type

Always returns false if the proxy is no longer alive

Trait Implementations

impl<'a> Send for CursorImageBuffer<'a>
[src]

impl<'a> Deref for CursorImageBuffer<'a>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl<'a> !Sync for CursorImageBuffer<'a>