[][src]Struct qt_widgets::q_graphics_view::ViewportAnchor

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

This enums describe the possible anchors that QGraphicsView can use when the user resizes the view or when the view is transformed.

C++ enum: QGraphicsView::ViewportAnchor.

C++ documentation:

This enums describe the possible anchors that QGraphicsView can use when the user resizes the view or when the view is transformed.

See also resizeAnchor and transformationAnchor.

Methods

impl ViewportAnchor[src]

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

impl ViewportAnchor[src]

pub const NoAnchor: ViewportAnchor[src]

No anchor, i.e. the view leaves the scene's position unchanged. (C++ enum variant: NoAnchor = 0)

pub const AnchorViewCenter: ViewportAnchor[src]

The scene point at the center of the view is used as the anchor. (C++ enum variant: AnchorViewCenter = 1)

pub const AnchorUnderMouse: ViewportAnchor[src]

The point under the mouse is used as the anchor. (C++ enum variant: AnchorUnderMouse = 2)

Trait Implementations

impl Clone for ViewportAnchor[src]

impl Copy for ViewportAnchor[src]

impl Debug for ViewportAnchor[src]

impl Eq for ViewportAnchor[src]

impl From<ViewportAnchor> for c_int[src]

impl From<i32> for ViewportAnchor[src]

impl PartialEq<ViewportAnchor> for ViewportAnchor[src]

impl StructuralEq for ViewportAnchor[src]

impl StructuralPartialEq for ViewportAnchor[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.