[][src]Enum gdk::CursorType

#[non_exhaustive]pub enum CursorType {
    XCursor,
    Arrow,
    BasedArrowDown,
    BasedArrowUp,
    Boat,
    Bogosity,
    BottomLeftCorner,
    BottomRightCorner,
    BottomSide,
    BottomTee,
    BoxSpiral,
    CenterPtr,
    Circle,
    Clock,
    CoffeeMug,
    Cross,
    CrossReverse,
    Crosshair,
    DiamondCross,
    Dot,
    Dotbox,
    DoubleArrow,
    DraftLarge,
    DraftSmall,
    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,
    LastCursor,
    BlankCursor,
    CursorIsPixmap,
    // some variants omitted
}

Predefined cursors.

Note that these IDs are directly taken from the X cursor font, and many of these cursors are either not useful, or are not available on other platforms.

The recommended way to create cursors is to use Cursor::new_from_name.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
XCursor

Arrow

BasedArrowDown

BasedArrowUp

Boat

Bogosity

BottomLeftCorner

BottomRightCorner

BottomSide

BottomTee

BoxSpiral

CenterPtr

Circle

Clock

CoffeeMug

Cross

CrossReverse

Crosshair

DiamondCross

Dot

Dotbox

DoubleArrow

DraftLarge

DraftSmall

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

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

LastCursor

last cursor type

BlankCursor

Blank cursor. Since 2.16

CursorIsPixmap

type of cursors constructed with Cursor::new_from_pixbuf

Trait Implementations

impl Clone for CursorType[src]

impl Copy for CursorType[src]

impl Debug for CursorType[src]

impl Display for CursorType[src]

impl Eq for CursorType[src]

impl<'a> FromValue<'a> for CursorType[src]

impl<'a> FromValueOptional<'a> for CursorType[src]

impl Hash for CursorType[src]

impl Ord for CursorType[src]

impl PartialEq<CursorType> for CursorType[src]

impl PartialOrd<CursorType> for CursorType[src]

impl SetValue for CursorType[src]

impl StaticType for CursorType[src]

impl StructuralEq for CursorType[src]

impl StructuralPartialEq for CursorType[src]

Auto Trait Implementations

impl RefUnwindSafe for CursorType

impl Send for CursorType

impl Sync for CursorType

impl Unpin for CursorType

impl UnwindSafe for CursorType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.