egui::output

Enum CursorIcon

Source
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§

Source§

impl CursorIcon

Source

pub const ALL: [Self; 35] = _

Trait Implementations§

Source§

impl Clone for CursorIcon

Source§

fn clone(&self) -> CursorIcon

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CursorIcon

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CursorIcon

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CursorIcon

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CursorIcon

Source§

fn eq(&self, other: &CursorIcon) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CursorIcon

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for CursorIcon

Source§

impl Eq for CursorIcon

Source§

impl StructuralPartialEq for CursorIcon

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> SerializableAny for T
where T: 'static + Any + Clone + for<'a> Send + Sync,