Struct qt_core::CursorShape

source ·
pub struct CursorShape(/* private fields */);
Expand description

This enum type defines the various cursors that can be used.

C++ enum: Qt::CursorShape.

C++ documentation:

This enum type defines the various cursors that can be used.

The standard arrow cursor is the default for widgets in a normal state.

Implementations§

source§

impl CursorShape

source

pub fn to_int(&self) -> c_int

source§

impl CursorShape

source

pub const ArrowCursor: CursorShape = _

The standard arrow cursor. (C++ enum variant: ArrowCursor = 0)

source

pub const UpArrowCursor: CursorShape = _

An arrow pointing upwards toward the top of the screen. (C++ enum variant: UpArrowCursor = 1)

source

pub const CrossCursor: CursorShape = _

A crosshair cursor, typically used to help the user accurately select a point on the screen. (C++ enum variant: CrossCursor = 2)

source

pub const WaitCursor: CursorShape = _

An hourglass or watch cursor, usually shown during operations that prevent the user from interacting with the application. (C++ enum variant: WaitCursor = 3)

source

pub const IBeamCursor: CursorShape = _

A caret or ibeam cursor, indicating that a widget can accept and display text input. (C++ enum variant: IBeamCursor = 4)

source

pub const SizeVerCursor: CursorShape = _

A cursor used for elements that are used to vertically resize top-level windows. (C++ enum variant: SizeVerCursor = 5)

source

pub const SizeHorCursor: CursorShape = _

A cursor used for elements that are used to horizontally resize top-level windows. (C++ enum variant: SizeHorCursor = 6)

source

pub const SizeBDiagCursor: CursorShape = _

A cursor used for elements that are used to diagonally resize top-level windows at their top-right and bottom-left corners. (C++ enum variant: SizeBDiagCursor = 7)

source

pub const SizeFDiagCursor: CursorShape = _

A cursor used for elements that are used to diagonally resize top-level windows at their top-left and bottom-right corners. (C++ enum variant: SizeFDiagCursor = 8)

source

pub const SizeAllCursor: CursorShape = _

A cursor used for elements that are used to resize top-level windows in any direction. (C++ enum variant: SizeAllCursor = 9)

source

pub const BlankCursor: CursorShape = _

A blank/invisible cursor, typically used when the cursor shape needs to be hidden. (C++ enum variant: BlankCursor = 10)

source

pub const SplitVCursor: CursorShape = _

A cursor used for vertical splitters, indicating that a handle can be dragged horizontally to adjust the use of available space. (C++ enum variant: SplitVCursor = 11)

source

pub const SplitHCursor: CursorShape = _

A cursor used for horizontal splitters, indicating that a handle can be dragged vertically to adjust the use of available space. (C++ enum variant: SplitHCursor = 12)

source

pub const PointingHandCursor: CursorShape = _

A pointing hand cursor that is typically used for clickable elements such as hyperlinks. (C++ enum variant: PointingHandCursor = 13)

source

pub const ForbiddenCursor: CursorShape = _

A slashed circle cursor, typically used during drag and drop operations to indicate that dragged content cannot be dropped on particular widgets or inside certain regions. (C++ enum variant: ForbiddenCursor = 14)

source

pub const WhatsThisCursor: CursorShape = _

An arrow with a question mark, typically used to indicate the presence of What’s This? help for a widget. (C++ enum variant: WhatsThisCursor = 15)

source

pub const BusyCursor: CursorShape = _

An hourglass or watch cursor, usually shown during operations that allow the user to interact with the application while they are performed in the background. (C++ enum variant: BusyCursor = 16)

source

pub const OpenHandCursor: CursorShape = _

A cursor representing an open hand, typically used to indicate that the area under the cursor is the visible part of a canvas that the user can click and drag in order to scroll around. (C++ enum variant: OpenHandCursor = 17)

source

pub const ClosedHandCursor: CursorShape = _

A cursor representing a closed hand, typically used to indicate that a dragging operation is in progress that involves scrolling. (C++ enum variant: ClosedHandCursor = 18)

source

pub const DragCopyCursor: CursorShape = _

A cursor that is usually used when dragging an item to copy it. (C++ enum variant: DragCopyCursor = 19)

source

pub const DragMoveCursor: CursorShape = _

A cursor that is usually used when dragging an item. (C++ enum variant: DragMoveCursor = 20)

source

pub const DragLinkCursor: CursorShape = _

A cursor that is usually used when dragging an item to make a link to it. (C++ enum variant: DragLinkCursor = 21)

source

pub const LastCursor: CursorShape = _

C++ enum variant: LastCursor = 21

source

pub const BitmapCursor: CursorShape = _

  (C++ enum variant: BitmapCursor = 24)

source

pub const CustomCursor: CursorShape = _

C++ enum variant: CustomCursor = 25

Trait Implementations§

source§

impl Clone for CursorShape

source§

fn clone(&self) -> CursorShape

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CursorShape

source§

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

Formats the value using the given formatter. Read more
source§

impl From<CursorShape> for c_int

source§

fn from(value: CursorShape) -> Self

Converts to this type from the input type.
source§

impl From<i32> for CursorShape

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for CursorShape

source§

fn eq(&self, other: &CursorShape) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CursorShape

source§

impl Eq for CursorShape

source§

impl StructuralEq for CursorShape

source§

impl StructuralPartialEq for CursorShape

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<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. 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> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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

§

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.