[][src]Struct smithay_client_toolkit::pointer::ThemedPointer

pub struct ThemedPointer { /* fields omitted */ }

Wrapper of a themed pointer

You can access the underlying Proxy<wl_pointer::WlPointer> via deref. It will not release the proxy when dropped.

Just like Proxy, this is a Rc-like wrapper. You can clone it to have several handles to the same theming machinery of a pointer.

Methods

impl ThemedPointer[src]

pub fn set_cursor(&self, name: &str, serial: Option<u32>) -> Result<(), ()>[src]

Change the cursor to the given cursor name

Possible names depend on the theme. Does nothing and returns Err(()) if given name is not available.

If this is done as an answer to an input event, you need to provide the associated serial otherwise the server may ignore the request.

Trait Implementations

impl Clone for ThemedPointer[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Deref for ThemedPointer[src]

type Target = Proxy<WlPointer>

The resulting type after dereferencing.

Auto Trait Implementations

impl Unpin for ThemedPointer

impl Sync for ThemedPointer

impl Send for ThemedPointer

impl !UnwindSafe for ThemedPointer

impl !RefUnwindSafe for ThemedPointer

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]