[−][src]Struct smithay_client_toolkit::pointer::ThemedPointer
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(&self) -> 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]
Auto Trait Implementations
impl Send for ThemedPointer
impl Sync for ThemedPointer
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,