Enum lazybar_core::bar::CursorInfo
source · pub enum CursorInfo {
Static(Cursor),
Dynamic(CursorFn),
}
Expand description
What to set the cursor to when a panel is hovered.
Variants§
Static(Cursor)
The cursor should be the same across the whole panel. None
will set
the cursor the system default.
Dynamic(CursorFn)
The cursor can have multiple values within the panel. If this function
returns Err(_)
or Ok(None)
, the cursor will be set to the
system default.
Implementations§
source§impl CursorInfo
impl CursorInfo
sourcepub fn get(&self, event: MouseEvent) -> Result<Cursor>
pub fn get(&self, event: MouseEvent) -> Result<Cursor>
Gets the cursor name.
Either returns the Static
name or calls the
Dynamic
function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CursorInfo
impl !RefUnwindSafe for CursorInfo
impl !Send for CursorInfo
impl !Sync for CursorInfo
impl Unpin for CursorInfo
impl !UnwindSafe for CursorInfo
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