pub struct CursorTheme(/* private fields */);Available on crate feature
cursor only.Expand description
WpCursorShapeManagerV1 wrapper which fallbacks to xcursor when cursor-shape-v1 protocol
extension is not supported.
Implementations§
Source§impl CursorTheme
impl CursorTheme
Sourcepub fn new<D>(conn: &mut Connection<D>, compositor: WlCompositor) -> Self
pub fn new<D>(conn: &mut Connection<D>, compositor: WlCompositor) -> Self
Create new CursorTheme, preferring the server-side implementation if possible.
Sourcepub fn get_image(&self, shape: CursorShape) -> Result<CursorImage, CursorError>
pub fn get_image(&self, shape: CursorShape) -> Result<CursorImage, CursorError>
Find and parse a cursor image.
No-op if server-side implementation is used.
pub fn get_themed_pointer<D>( &self, conn: &mut Connection<D>, pointer: WlPointer, ) -> ThemedPointer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CursorTheme
impl RefUnwindSafe for CursorTheme
impl Send for CursorTheme
impl Sync for CursorTheme
impl Unpin for CursorTheme
impl UnwindSafe for CursorTheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more