Enum gdk::CursorType [−][src]
#[non_exhaustive] pub enum CursorType {}Show 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, 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
Expand description
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::from_name()
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
last cursor type
Blank cursor. Since 2.16
type of cursors constructed with
Cursor::from_pixbuf()
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
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
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.