logo
#[repr(C)]
pub enum MouseCursor {
Show 29 variants Default, None, Help, Pointer, Progress, Wait, Crosshair, Text, Alias, Copy, Move, NoDrop, NotAllowed, Grab, Grabbing, ColResize, RowResize, NResize, EResize, SResize, WResize, NeResize, NwResize, SeResize, SwResize, EwResize, NsResize, NeswResize, NwseResize,
}
Expand description

This enum represents different types of mouse cursors. It is a subset of the mouse cursors available in CSS. For details and pictograms see the MDN Documentation for cursor. Depending on the backend and used OS unidirectional resize cursors may be replaced with bidirectional ones.

Variants

Default

The systems default cursor.

None

No cursor is displayed.

Help

A cursor indicating help information.

Pointer

A pointing hand indicating a link.

Progress

The program is busy but can still be interacted with.

Wait

The program is busy.

Crosshair

A crosshair.

Text

A cursor indicating selectable text.

Alias

An alias or shortcut is being created.

Copy

A copy is being created.

Move

Something is to be moved.

NoDrop

Something cannot be dropped here.

NotAllowed

An action is not allowed

Grab

Something is grabbable.

Grabbing

Something is being grabbed.

ColResize

Indicating that a column is resizable horizontally.

RowResize

Indicating that a row is resizable vertically.

NResize

Unidirectional resize north.

EResize

Unidirectional resize east.

SResize

Unidirectional resize south.

WResize

Unidirectional resize west.

NeResize

Unidirectional resize north-east.

NwResize

Unidirectional resize north-west.

SeResize

Unidirectional resize south-east.

SwResize

Unidirectional resize south-west.

EwResize

Bidirectional resize east-west.

NsResize

Bidirectional resize north-south.

NeswResize

Bidirectional resize north-east-south-west.

NwseResize

Bidirectional resize north-west-south-east.

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

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

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

Checks that type has a default value.

The resulting type after obtaining ownership.

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

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

Converts the given value to a String. 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.