Struct smithay_client_toolkit::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 not Send nor Sync

Methods

impl ThemeManager
[src]

Load a system pointer theme

Will use the default theme of the system if name is None.

Fails if libwayland-cursor is not available.

Wrap a pointer to theme it

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 Proxy<WlPointer>.

Initialize a new pointer as a ThemedPointer with an adapter implementation

Like theme_pointer_with_impl but allows you to have a non-Send implementation.

Unsafe for the same reasons as NewProxy::implement_nonsend.

Auto Trait Implementations