Enum smithay_client_toolkit::pointer::AutoThemer [−][src]
pub enum AutoThemer {
Themed(ThemeManager),
UnThemed,
}Wrapper to gracefully handle a missing libwayland-cursor
This wrapper has the same API as ThemeManager, but will
gracefully handle the case of a missing libwayland-cursor
by doing nothing.
It is a convenience wrapper to handle systems where
libwayland-client.so is available but not libwayland-cursor.so.
Variants
Themed(ThemeManager)The theme could be loaded
UnThemedlibwayland-cursor.so is not available
Methods
impl AutoThemer[src]
impl AutoThemerpub fn init(
name: Option<&str>,
compositor: Proxy<WlCompositor>,
shm: Proxy<WlShm>
) -> AutoThemer[src]
pub fn init(
name: Option<&str>,
compositor: Proxy<WlCompositor>,
shm: Proxy<WlShm>
) -> AutoThemerLoad a system pointer theme
Will use the default theme of the system if name is None.
Falls back to UnThemed if libwayland-cursor is not available.
pub fn theme_pointer(&self, pointer: Proxy<WlPointer>) -> AutoPointer[src]
pub fn theme_pointer(&self, pointer: Proxy<WlPointer>) -> AutoPointerWrap a pointer to theme it
pub fn theme_pointer_with_impl<Impl>(
&self,
pointer: NewProxy<WlPointer>,
implementation: Impl
) -> AutoPointer where
Impl: Implementation<AutoPointer, Event> + Send + 'static, [src]
pub fn theme_pointer_with_impl<Impl>(
&self,
pointer: NewProxy<WlPointer>,
implementation: Impl
) -> AutoPointer where
Impl: Implementation<AutoPointer, Event> + Send + 'static, 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 an AutoPointer wrapping your pointer,
rather than a Proxy<WlPointer>.
pub unsafe fn theme_pointer_with_nonsend_impl<Impl>(
&self,
pointer: NewProxy<WlPointer>,
implementation: Impl,
token: &QueueToken
) -> AutoPointer where
Impl: Implementation<AutoPointer, Event> + Send + 'static, [src]
pub unsafe fn theme_pointer_with_nonsend_impl<Impl>(
&self,
pointer: NewProxy<WlPointer>,
implementation: Impl,
token: &QueueToken
) -> AutoPointer where
Impl: Implementation<AutoPointer, Event> + Send + 'static, 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
impl Send for AutoThemer
impl Send for AutoThemerimpl Sync for AutoThemer
impl Sync for AutoThemer