Enum rerun::external::eframe::egui::CursorIcon
pub enum CursorIcon {
Show 35 variants
Default,
None,
ContextMenu,
Help,
PointingHand,
Progress,
Wait,
Cell,
Crosshair,
Text,
VerticalText,
Alias,
Copy,
Move,
NoDrop,
NotAllowed,
Grab,
Grabbing,
AllScroll,
ResizeHorizontal,
ResizeNeSw,
ResizeNwSe,
ResizeVertical,
ResizeEast,
ResizeSouthEast,
ResizeSouth,
ResizeSouthWest,
ResizeWest,
ResizeNorthWest,
ResizeNorth,
ResizeNorthEast,
ResizeColumn,
ResizeRow,
ZoomIn,
ZoomOut,
}
Expand description
A mouse cursor icon.
egui emits a CursorIcon
in PlatformOutput
each frame as a request to the integration.
Loosely based on https://developer.mozilla.org/en-US/docs/Web/CSS/cursor.
Variants§
Default
Normal cursor icon, whatever that is.
None
Show no cursor
ContextMenu
A context menu is available
Help
Question mark
PointingHand
Pointing hand, used for e.g. web links
Progress
Shows that processing is being done, but that the program is still interactive.
Wait
Not yet ready, try later.
Cell
Hover a cell in a table
Crosshair
For precision work
Text
Text caret, e.g. “Click here to edit text”
VerticalText
Vertical text caret, e.g. “Click here to edit vertical text”
Alias
Indicated an alias, e.g. a shortcut
Copy
Indicate that a copy will be made
Move
Omnidirectional move icon (e.g. arrows in all cardinal directions)
NoDrop
Can’t drop here
NotAllowed
Forbidden
Grab
The thing you are hovering can be grabbed
Grabbing
You are grabbing the thing you are hovering
AllScroll
Something can be scrolled in any direction (panned).
ResizeHorizontal
Horizontal resize -
to make something wider or more narrow (left to/from right)
ResizeNeSw
Diagonal resize /
(right-up to/from left-down)
ResizeNwSe
Diagonal resize \
(left-up to/from right-down)
ResizeVertical
Vertical resize |
(up-down or down-up)
ResizeEast
Resize something rightwards (e.g. when dragging the right-most edge of something)
ResizeSouthEast
Resize something down and right (e.g. when dragging the bottom-right corner of something)
ResizeSouth
Resize something downwards (e.g. when dragging the bottom edge of something)
ResizeSouthWest
Resize something down and left (e.g. when dragging the bottom-left corner of something)
ResizeWest
Resize something leftwards (e.g. when dragging the left edge of something)
ResizeNorthWest
Resize something up and left (e.g. when dragging the top-left corner of something)
ResizeNorth
Resize something up (e.g. when dragging the top edge of something)
ResizeNorthEast
Resize something up and right (e.g. when dragging the top-right corner of something)
ResizeColumn
Resize a column
ResizeRow
Resize a row
ZoomIn
Enhance!
ZoomOut
Let’s get a better overview
Implementations§
§impl CursorIcon
impl CursorIcon
pub const ALL: [CursorIcon; 35] = _
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<'de> Deserialize<'de> for CursorIcon
impl<'de> Deserialize<'de> for CursorIcon
§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>,
§impl PartialEq for CursorIcon
impl PartialEq for CursorIcon
§fn eq(&self, other: &CursorIcon) -> bool
fn eq(&self, other: &CursorIcon) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for CursorIcon
impl Serialize for CursorIcon
§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,
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§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
key
and return true
if they are equal.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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request