Enum ambient_api::prelude::CursorIcon
source · pub enum CursorIcon {
Show 35 variants
Default,
Crosshair,
Hand,
Arrow,
Move,
Text,
Wait,
Help,
Progress,
NotAllowed,
ContextMenu,
Cell,
VerticalText,
Alias,
Copy,
NoDrop,
Grab,
Grabbing,
AllScroll,
ZoomIn,
ZoomOut,
EResize,
NResize,
NeResize,
NwResize,
SResize,
SeResize,
SwResize,
WResize,
EwResize,
NsResize,
NeswResize,
NwseResize,
ColResize,
RowResize,
}
Expand description
Describes the appearance of the mouse cursor.
Variants§
Default
The platform-dependent default cursor.
Crosshair
A simple crosshair.
Hand
A hand (often used to indicate links in web browsers).
Arrow
Self explanatory.
Move
Indicates something is to be moved.
Text
Indicates text that may be selected or edited.
Wait
Program busy indicator.
Help
Help indicator (often rendered as a “?”)
Progress
Progress indicator. Shows that processing is being done. But in contrast with “Wait” the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass.
NotAllowed
Cursor showing that something cannot be done.
ContextMenu
Cell
VerticalText
Alias
Copy
NoDrop
Grab
Indicates something can be grabbed.
Grabbing
Indicates something is grabbed.
AllScroll
ZoomIn
ZoomOut
EResize
Indicate that some edge is to be moved. For example, the ‘SeResize’ cursor is used when the movement starts from the south-east corner of the box.
NResize
NeResize
NwResize
SResize
SeResize
SwResize
WResize
EwResize
NsResize
NeswResize
NwseResize
ColResize
RowResize
Trait Implementations§
source§impl Clone for CursorIcon
impl Clone for CursorIcon
source§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 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
source§impl<'de> Deserialize<'de> for CursorIcon
impl<'de> Deserialize<'de> for CursorIcon
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CursorIcon, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CursorIcon, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Display for CursorIcon
impl Display for CursorIcon
source§impl FromStr for CursorIcon
impl FromStr for CursorIcon
§type Err = ParseError
type Err = ParseError
source§fn from_str(s: &str) -> Result<CursorIcon, <CursorIcon as FromStr>::Err>
fn from_str(s: &str) -> Result<CursorIcon, <CursorIcon as FromStr>::Err>
s
to return a value of this type. Read moresource§impl Hash for CursorIcon
impl Hash for CursorIcon
source§impl PartialEq for CursorIcon
impl PartialEq for CursorIcon
source§fn eq(&self, other: &CursorIcon) -> bool
fn eq(&self, other: &CursorIcon) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CursorIcon
impl Serialize for CursorIcon
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl TryFrom<&str> for CursorIcon
impl TryFrom<&str> for CursorIcon
§type Error = ParseError
type Error = ParseError
source§fn try_from(s: &str) -> Result<CursorIcon, <CursorIcon as TryFrom<&str>>::Error>
fn try_from(s: &str) -> Result<CursorIcon, <CursorIcon as TryFrom<&str>>::Error>
impl Copy for CursorIcon
impl Eq for CursorIcon
impl StructuralEq for CursorIcon
impl StructuralPartialEq for CursorIcon
Auto Trait Implementations§
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.