Skip to main content

SystemMouseCursors

Struct SystemMouseCursors 

Source
pub struct SystemMouseCursors;
Expand description

A collection of system MouseCursors.

System cursors are standard mouse cursors that are provided by the current platform. They don’t require external resources.

SystemMouseCursors is a superset of the system cursors of every platform that Flutter supports, therefore some of these objects might map to the same result, or fallback to the BASIC arrow. This mapping is defined by the Flutter engine.

The cursors should be named based on the cursors’ use cases instead of their appearance, because different platforms might (although not commonly) use different shapes for the same use case.

Implementations§

Source§

impl SystemMouseCursors

Source

pub const NONE: SystemMouseCursor

Hide the cursor.

Any cursor other than NONE or MouseCursor.uncontrolled unhides the cursor.

Source

pub const BASIC: SystemMouseCursor

The platform-dependent basic cursor.

Typically the shape of an arrow.

Source

pub const CLICK: SystemMouseCursor

A cursor that emphasizes an element being clickable, such as a hyperlink.

Typically the shape of a pointing hand.

Source

pub const FORBIDDEN: SystemMouseCursor

A cursor indicating an operation that will not be carried out.

Typically the shape of a circle with a diagonal line. May fall back to NO_DROP.

Source

pub const WAIT: SystemMouseCursor

A cursor indicating the status that the program is busy and therefore can not be interacted with.

Typically the shape of an hourglass or a watch.

This cursor is not available as a system cursor on macOS. Although macOS displays a “spinning ball” cursor when busy, it’s handled by the OS and not exposed for applications to choose.

Source

pub const PROGRESS: SystemMouseCursor

A cursor indicating the status that the program is busy but can still be interacted with.

Typically the shape of an arrow with an hourglass or a watch at the corner. Does not fall back to WAIT if unavailable.

Source

pub const CONTEXT_MENU: SystemMouseCursor

A cursor indicating somewhere the user can trigger a context menu.

Typically the shape of an arrow with a small menu at the corner.

Source

pub const HELP: SystemMouseCursor

A cursor indicating help information.

Typically the shape of a question mark, or an arrow therewith.

Source

pub const TEXT: SystemMouseCursor

A cursor indicating selectable text.

Typically the shape of a capital I.

Source

pub const VERTICAL_TEXT: SystemMouseCursor

A cursor indicating selectable vertical text.

Typically the shape of a capital I rotated to be horizontal. May fall back to TEXT.

Source

pub const CELL: SystemMouseCursor

A cursor indicating selectable table cells.

Typically the shape of a hollow plus sign.

Source

pub const PRECISE: SystemMouseCursor

A cursor indicating precise selection, such as selecting a pixel in a bitmap.

Typically the shape of a crosshair.

Source

pub const MOVE: SystemMouseCursor

A cursor indicating moving something.

Typically the shape of four-way arrow. May fall back to ALL_SCROLL.

Source

pub const GRAB: SystemMouseCursor

A cursor indicating something that can be dragged.

Typically the shape of an open hand.

Source

pub const GRABBING: SystemMouseCursor

A cursor indicating something that is being dragged.

Typically the shape of a closed hand.

Source

pub const NO_DROP: SystemMouseCursor

A cursor indicating somewhere that the current item may not be dropped.

Typically the shape of a hand with a FORBIDDEN sign at the corner. May fall back to FORBIDDEN.

Source

pub const ALIAS: SystemMouseCursor

A cursor indicating that the current operation will create an alias of, or a shortcut of the item.

Typically the shape of an arrow with a shortcut icon at the corner.

Source

pub const COPY: SystemMouseCursor

A cursor indicating that the current operation will copy the item.

Typically the shape of an arrow with a boxed plus sign at the corner.

Source

pub const DISAPPEARING: SystemMouseCursor

A cursor indicating that the current operation will result in the disappearance of the item.

Typically the shape of an arrow with a cloud of smoke at the corner.

Source

pub const ALL_SCROLL: SystemMouseCursor

A cursor indicating scrolling in any direction.

Typically the shape of a dot surrounded by 4 arrows.

Source

pub const RESIZE_LEFT_RIGHT: SystemMouseCursor

A cursor indicating resizing an object bidirectionally from its left or right edge.

Typically the shape of a bidirectional arrow pointing left and right.

Source

pub const RESIZE_UP_DOWN: SystemMouseCursor

A cursor indicating resizing an object bidirectionally from its top or bottom edge.

Typically the shape of a bidirectional arrow pointing up and down.

Source

pub const RESIZE_UP_LEFT_DOWN_RIGHT: SystemMouseCursor

A cursor indicating resizing an object bidirectionally from its top left or bottom right corner.

Typically the shape of a bidirectional arrow pointing upper left and lower right.

Source

pub const RESIZE_UP_RIGHT_DOWN_LEFT: SystemMouseCursor

A cursor indicating resizing an object bidirectionally from its top right or bottom left corner.

Typically the shape of a bidirectional arrow pointing upper right and lower left.

Source

pub const RESIZE_UP: SystemMouseCursor

A cursor indicating resizing an object from its top edge.

Typically the shape of an arrow pointing up. May fallback to RESIZE_UP_DOWN.

Source

pub const RESIZE_DOWN: SystemMouseCursor

A cursor indicating resizing an object from its bottom edge.

Typically the shape of an arrow pointing down. May fallback to RESIZE_UP_DOWN.

Source

pub const RESIZE_LEFT: SystemMouseCursor

A cursor indicating resizing an object from its left edge.

Typically the shape of an arrow pointing left. May fallback to RESIZE_LEFT_RIGHT.

Source

pub const RESIZE_RIGHT: SystemMouseCursor

A cursor indicating resizing an object from its right edge.

Typically the shape of an arrow pointing right. May fallback to RESIZE_LEFT_RIGHT.

Source

pub const RESIZE_UP_LEFT: SystemMouseCursor

A cursor indicating resizing an object from its top-left corner.

Typically the shape of an arrow pointing upper left. May fallback to RESIZE_UP_LEFT_DOWN_RIGHT.

Source

pub const RESIZE_UP_RIGHT: SystemMouseCursor

A cursor indicating resizing an object from its top-right corner.

Typically the shape of an arrow pointing upper right. May fallback to RESIZE_UP_RIGHT_DOWN_LEFT.

Source

pub const RESIZE_DOWN_LEFT: SystemMouseCursor

A cursor indicating resizing an object from its bottom-left corner.

Typically the shape of an arrow pointing lower left. May fallback to RESIZE_UP_RIGHT_DOWN_LEFT.

Source

pub const RESIZE_DOWN_RIGHT: SystemMouseCursor

A cursor indicating resizing an object from its bottom-right corner.

Typically the shape of an arrow pointing lower right. May fallback to RESIZE_UP_LEFT_DOWN_RIGHT.

Source

pub const RESIZE_COLUMN: SystemMouseCursor

A cursor indicating resizing a column, or an item horizontally.

Typically the shape of arrows pointing left and right with a vertical bar separating them. May fallback to RESIZE_LEFT_RIGHT.

Source

pub const RESIZE_ROW: SystemMouseCursor

A cursor indicating resizing a row, or an item vertically.

Typically the shape of arrows pointing up and down with a horizontal bar separating them. May fallback to RESIZE_UP_DOWN.

Source

pub const ZOOM_IN: SystemMouseCursor

A cursor indicating zooming in.

Typically a magnifying glass with a plus sign.

Source

pub const ZOOM_OUT: SystemMouseCursor

A cursor indicating zooming out.

Typically a magnifying glass with a minus sign.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,