Enum egui::CursorIcon[][src]

pub enum CursorIcon {
Show 25 variants Default, None, ContextMenu, Help, PointingHand, Progress, Wait, Cell, Crosshair, Text, VerticalText, Alias, Copy, Move, NoDrop, NotAllowed, Grab, Grabbing, AllScroll, ResizeHorizontal, ResizeNeSw, ResizeNwSe, ResizeVertical, ZoomIn, ZoomOut,
}
Expand description

A mouse cursor icon.

egui emits a CursorIcon in Output 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)

ZoomIn

Enhance!

ZoomOut

Let’s get a better overview

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.