[][src]Struct qt_widgets::q_graphics_view::DragMode

#[repr(transparent)]
pub struct DragMode(_);

This enum describes the default action for the view when pressing and dragging the mouse over the viewport.

C++ enum: QGraphicsView::DragMode.

C++ documentation:

This enum describes the default action for the view when pressing and dragging the mouse over the viewport.

See also dragMode and QGraphicsScene::setSelectionArea().

Methods

impl DragMode[src]

pub fn to_int(&self) -> c_int[src]

impl DragMode[src]

pub const NoDrag: DragMode[src]

Nothing happens; the mouse event is ignored. (C++ enum variant: NoDrag = 0)

pub const ScrollHandDrag: DragMode[src]

The cursor changes into a pointing hand, and dragging the mouse around will scroll the scrolbars. This mode works both in interactive and non-interactive mode. (C++ enum variant: ScrollHandDrag = 1)

pub const RubberBandDrag: DragMode[src]

A rubber band will appear. Dragging the mouse will set the rubber band geometry, and all items covered by the rubber band are selected. This mode is disabled for non-interactive views. (C++ enum variant: RubberBandDrag = 2)

Trait Implementations

impl Clone for DragMode[src]

impl Copy for DragMode[src]

impl Debug for DragMode[src]

impl Eq for DragMode[src]

impl From<DragMode> for c_int[src]

impl From<i32> for DragMode[src]

impl PartialEq<DragMode> for DragMode[src]

impl StructuralEq for DragMode[src]

impl StructuralPartialEq for DragMode[src]

Auto Trait Implementations

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.