Enum vizia::style::CursorIcon
pub enum CursorIcon {
Show 36 variants
Default,
Arrow,
None,
Cell,
Crosshair,
Text,
VerticalText,
ContextMenu,
Help,
Hand,
Progress,
Wait,
Alias,
Copy,
Move,
NoDrop,
NotAllowed,
Grab,
Grabbing,
ZoomIn,
ZoomOut,
NResize,
EResize,
SResize,
WResize,
NeResize,
NwResize,
SeResize,
SwResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
AllScroll,
ColResize,
RowResize,
}
Expand description
An icon of a cursor.
Variants§
Default
The platform-dependent default cursor. Typically an arrow.
Arrow
An arrow which is usually also the default cursor icon.
None
No cursor is rendered.
Cell
Indicates the table cell or set of cells can be selected.
Crosshair
Indicates selection.
Text
Indicates the text can be selected.
VerticalText
Indicates the vertical text can be selected.
ContextMenu
Indicates a context menu is available.
Help
Indicates help information is available.
Hand
Indicates something clickable like a link.
Progress
Indicates the program is busy in the background, but the user can still interact with the interface.
Wait
Indicates the program is busy in the background and the user can’t interact with the interface.
Alias
Indicates an alias or shortcut is to be created.
Copy
Indicates something is to be copied.
Move
Indicates something is to be moved.
NoDrop
Indicates an item may not be dropped at the current location.
NotAllowed
Indicates the requested action will not be carried out.
Grab
Indicates something can be grabbed and moved around.
Grabbing
Indicates something is being grabbed and moved around.
ZoomIn
Indicates something can be zoomed in.
ZoomOut
Indicates something can be zoomed out.
NResize
Indicates something can be resized or moved north.
EResize
Indicates something can be resized or moved east.
SResize
Indicates something can be resized or moved south.
WResize
Indicates something can be resized or moved west.
NeResize
Indicates something can be resized or moved north-east.
NwResize
Indicates something can be resized or moved north-west.
SeResize
Indicates something can be resized or moved south-east.
SwResize
Indicates something can be resized or moved south-west.
EwResize
Indicates something can be resized or moved horizontally.
NsResize
Indicates something can be resized or moved vertically.
NeswResize
Indicates something can be resized or moved diagonally from north-east to south-west.
NwseResize
Indicates something can be resized or moved diagonally from north-west to south-east.
AllScroll
Indicates something can be scrolled/panned in any direction.
ColResize
Indicates a column can be resized horizontally.
RowResize
Indicates a row can be resized vertically.
Trait Implementations§
§impl Clone for CursorIcon
impl Clone for CursorIcon
§fn clone(&self) -> CursorIcon
fn clone(&self) -> CursorIcon
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for CursorIcon
impl Debug for CursorIcon
§impl Default for CursorIcon
impl Default for CursorIcon
§fn default() -> CursorIcon
fn default() -> CursorIcon
§impl Display for CursorIcon
impl Display for CursorIcon
§impl<'i> Parse<'i> for CursorIcon
impl<'i> Parse<'i> for CursorIcon
fn parse<'t>( input: &mut Parser<'i, 't>, ) -> Result<CursorIcon, ParseError<'i, CustomParseError<'i>>>
§impl PartialEq for CursorIcon
impl PartialEq for CursorIcon
source§impl Res<CursorIcon> for CursorIcon
impl Res<CursorIcon> for CursorIcon
source§impl ResGet<CursorIcon> for CursorIcon
impl ResGet<CursorIcon> for CursorIcon
fn get_ref<'a>(&self, _: &impl DataContext) -> Option<LensValue<'_, CursorIcon>>
fn get(&self, _: &impl DataContext) -> CursorIcon
impl Copy for CursorIcon
impl Eq for CursorIcon
impl StructuralPartialEq for CursorIcon
Auto Trait Implementations§
impl Freeze for CursorIcon
impl RefUnwindSafe for CursorIcon
impl Send for CursorIcon
impl Sync for CursorIcon
impl Unpin for CursorIcon
impl UnwindSafe for CursorIcon
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.