#[repr(i32)]pub enum CursorIcon {
Show 37 variants
Unknown = 0,
Auto = 1,
Default = 2,
None = 3,
ContextMenu = 4,
Help = 5,
Pointer = 6,
Progress = 7,
Wait = 8,
Cell = 9,
Crosshair = 10,
Text = 11,
VerticalText = 12,
Alias = 13,
Copy = 14,
Move = 15,
NoDrop = 16,
NotAllowed = 17,
Grab = 18,
Grabbing = 19,
EResize = 20,
NResize = 21,
NeResize = 22,
NwResize = 23,
SResize = 24,
SeResize = 25,
SwResize = 26,
WResize = 27,
EwResize = 28,
NsResize = 29,
NeswResize = 30,
NwseResize = 31,
ColResize = 32,
RowResize = 33,
AllScroll = 34,
ZoomIn = 35,
ZoomOut = 36,
}
Expand description
Corresponds to the W3C UI specification.
Variants§
Unknown = 0
Auto = 1
Default = 2
None = 3
ContextMenu = 4
Help = 5
Pointer = 6
Progress = 7
Wait = 8
Cell = 9
Crosshair = 10
Text = 11
VerticalText = 12
Alias = 13
Copy = 14
Move = 15
NoDrop = 16
NotAllowed = 17
Grab = 18
Grabbing = 19
EResize = 20
NResize = 21
NeResize = 22
NwResize = 23
SResize = 24
SeResize = 25
SwResize = 26
WResize = 27
EwResize = 28
NsResize = 29
NeswResize = 30
NwseResize = 31
ColResize = 32
RowResize = 33
AllScroll = 34
ZoomIn = 35
ZoomOut = 36
Implementations§
Source§impl CursorIcon
impl CursorIcon
Source§impl CursorIcon
impl CursorIcon
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for CursorIcon
impl Clone for CursorIcon
Source§fn clone(&self) -> CursorIcon
fn clone(&self) -> CursorIcon
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CursorIcon
impl Debug for CursorIcon
Source§impl Default for CursorIcon
impl Default for CursorIcon
Source§fn default() -> CursorIcon
fn default() -> CursorIcon
Returns the “default value” for a type. Read more
Source§impl From<CursorIcon> for i32
impl From<CursorIcon> for i32
Source§fn from(value: CursorIcon) -> i32
fn from(value: CursorIcon) -> i32
Converts to this type from the input type.
Source§impl Hash for CursorIcon
impl Hash for CursorIcon
Source§impl Ord for CursorIcon
impl Ord for CursorIcon
Source§fn cmp(&self, other: &CursorIcon) -> Ordering
fn cmp(&self, other: &CursorIcon) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CursorIcon
impl PartialEq for CursorIcon
Source§impl PartialOrd for CursorIcon
impl PartialOrd for CursorIcon
Source§impl TryFrom<i32> for CursorIcon
impl TryFrom<i32> for CursorIcon
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<CursorIcon, UnknownEnumValue>
fn try_from(value: i32) -> Result<CursorIcon, UnknownEnumValue>
Performs the conversion.
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§
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