logo
#[repr(C)]
pub enum MouseCursor {
Show 29 variants default, none, help, pointer, progress, wait, crosshair, text, alias, copy, move, no_drop, not_allowed, grab, grabbing, col_resize, row_resize, n_resize, e_resize, s_resize, w_resize, ne_resize, nw_resize, se_resize, sw_resize, ew_resize, ns_resize, nesw_resize, nwse_resize,
}
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.

no_drop

Something cannot be dropped here.

not_allowed

An action is not allowed

grab

Something is grabbable.

grabbing

Something is being grabbed.

col_resize

Indicating that a column is resizable horizontally.

row_resize

Indicating that a row is resizable vertically.

n_resize

Unidirectional resize north.

e_resize

Unidirectional resize east.

s_resize

Unidirectional resize south.

w_resize

Unidirectional resize west.

ne_resize

Unidirectional resize north-east.

nw_resize

Unidirectional resize north-west.

se_resize

Unidirectional resize south-east.

sw_resize

Unidirectional resize south-west.

ew_resize

Bidirectional resize east-west.

ns_resize

Bidirectional resize north-south.

nesw_resize

Bidirectional resize north-east-south-west.

nwse_resize

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 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.

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.