Struct smithay_client_toolkit::seat::pointer::ThemeManager [−][src]
pub struct ThemeManager { /* fields omitted */ }Wrapper managing a system theme for pointer images
You can use it to initialize new pointers in order to theme them.
Is is also clone-able in case you need to handle several pointer theming from different places.
Note that it is however neither Send nor Sync
Implementations
impl ThemeManager[src]
impl ThemeManager[src]pub fn init(
theme: ThemeSpec<'_>,
compositor: Attached<WlCompositor>,
shm: Attached<WlShm>
) -> ThemeManager[src]
pub fn init(
theme: ThemeSpec<'_>,
compositor: Attached<WlCompositor>,
shm: Attached<WlShm>
) -> ThemeManager[src]Load a system pointer theme
Will use the default theme of the system if name is None.
pub fn theme_pointer(&self, pointer: WlPointer) -> ThemedPointer[src]
pub fn theme_pointer(&self, pointer: WlPointer) -> ThemedPointer[src]Wrap a pointer to theme it
pub fn theme_pointer_with_impl<F>(
&self,
seat: &Attached<WlSeat>,
callback: F
) -> ThemedPointer where
F: FnMut(Event, ThemedPointer, DispatchData<'_>) + 'static, [src]
pub fn theme_pointer_with_impl<F>(
&self,
seat: &Attached<WlSeat>,
callback: F
) -> ThemedPointer where
F: FnMut(Event, ThemedPointer, DispatchData<'_>) + 'static, [src]Initialize a new pointer as a ThemedPointer with an adapter implementation
You need to provide an implementation as if implementing a wl_pointer, but
it will receive as meta argument a ThemedPointer wrapping your pointer,
rather than a WlPointer.
Trait Implementations
impl Clone for ThemeManager[src]
impl Clone for ThemeManager[src]fn clone(&self) -> ThemeManager[src]
fn clone(&self) -> ThemeManager[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ThemeManager
impl !Send for ThemeManager
impl !Sync for ThemeManager
impl Unpin for ThemeManager
impl !UnwindSafe for ThemeManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more