Enum Cursor

Source
pub enum Cursor {
Show 78 variants XCursor, Arrow, BaseArrowDown, BasedArrowUp, Boat, Bogosity, BottomLeftCorner, BottomRightCorner, BottomSide, BottomTee, BoxSpiral, CenterPtr, Circle, Clock, CoffeeMug, Cross, CrossReverse, Crosshair, DiamongCross, Dot, Dotbox, DoubleArrow, DraftLarge, DrawftSmall, DrapedBox, Exchange, Fleur, Gobbler, Gumby, Hand1, Hand2, Heart, Icon, IronCross, LeftPtr, LeftSide, LeftTee, Leftbutton, LlAngle, LrAngle, Man, Middlebutton, Mouse, Pencil, Pirate, Plus, QuestionArrow, RightPtr, RightSide, RightTee, Rightbutton, RtlLogo, Sailboat, SbDownArrow, SbHDoubleArrow, SbLeftArrow, SbRightArrow, SbUpArrow, SbVDoubleArrow, Shuttle, Sizing, Spider, Spraycan, Star, Target, Tcross, TopLeftArrow, TopLeftCorner, TopRightCorner, TopSide, TopTee, Trek, UlAngle, Umbrella, UrAngle, Watch, Xterm, Custom(String),
}
Expand description

This enum provides all possible cursors. reference

Variants§

§

XCursor

X_cursor

§

Arrow

arrow

§

BaseArrowDown

based_arrow_down

§

BasedArrowUp

based_arrow_up

§

Boat

boat

§

Bogosity

bogosity

§

BottomLeftCorner

bottom_left_corner

§

BottomRightCorner

bottom_right_corner

§

BottomSide

bottom_side

§

BottomTee

bottom_tee

§

BoxSpiral

box_spiral

§

CenterPtr

center_ptr

§

Circle

circle

§

Clock

clock

§

CoffeeMug

coffee_mug

§

Cross

cross

§

CrossReverse

cross_reverse

§

Crosshair

crosshair

§

DiamongCross

diamond_cross

§

Dot

dot

§

Dotbox

dotbox

§

DoubleArrow

double_arrow

§

DraftLarge

draft_large

§

DrawftSmall

draft_small

§

DrapedBox

draped_box

§

Exchange

exchange

§

Fleur

fleur

§

Gobbler

gobbler

§

Gumby

gumby

§

Hand1

hand1

§

Hand2

hand2

§

Heart

heart

§

Icon

icon

§

IronCross

iron_cross

§

LeftPtr

left_ptr

§

LeftSide

left_side

§

LeftTee

left_tee

§

Leftbutton

leftbutton

§

LlAngle

ll_angle

§

LrAngle

lr_angle

§

Man

man

§

Middlebutton

middlebutton

§

Mouse

mouse

§

Pencil

pencil

§

Pirate

pirate

§

Plus

plus

§

QuestionArrow

question_arrow

§

RightPtr

right_ptr

§

RightSide

right_side

§

RightTee

right_tee

§

Rightbutton

rightbutton

rtl_logo

§

Sailboat

sailboat

§

SbDownArrow

sb_down_arrow

§

SbHDoubleArrow

sb_h_double_arrow

§

SbLeftArrow

sb_left_arrow

§

SbRightArrow

sb_right_arrow

§

SbUpArrow

sb_up_arrow

§

SbVDoubleArrow

sb_v_double_arrow

§

Shuttle

shuttle

§

Sizing

sizing

§

Spider

spider

§

Spraycan

spraycan

§

Star

star

§

Target

target

§

Tcross

tcross

§

TopLeftArrow

top_left_arrow

§

TopLeftCorner

top_left_corner

§

TopRightCorner

top_right_corner

§

TopSide

top_side

§

TopTee

top_tee

§

Trek

trek

§

UlAngle

ul_angle

§

Umbrella

umbrella

§

UrAngle

ur_angle

§

Watch

watch

§

Xterm

xterm

§

Custom(String)

Custom cursor name

Trait Implementations§

Source§

impl Display for Cursor

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Cursor

§

impl RefUnwindSafe for Cursor

§

impl Send for Cursor

§

impl Sync for Cursor

§

impl Unpin for Cursor

§

impl UnwindSafe for Cursor

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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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