[−][src]Struct qt_widgets::q_graphics_view::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
.
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]
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]
fn clone(&self) -> ViewportAnchor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ViewportAnchor
[src]
impl Debug for ViewportAnchor
[src]
impl Eq for ViewportAnchor
[src]
impl From<ViewportAnchor> for c_int
[src]
fn from(value: ViewportAnchor) -> Self
[src]
impl From<i32> for ViewportAnchor
[src]
impl PartialEq<ViewportAnchor> for ViewportAnchor
[src]
fn eq(&self, other: &ViewportAnchor) -> bool
[src]
fn ne(&self, other: &ViewportAnchor) -> bool
[src]
impl StructuralEq for ViewportAnchor
[src]
impl StructuralPartialEq for ViewportAnchor
[src]
Auto Trait Implementations
impl RefUnwindSafe for ViewportAnchor
impl Send for ViewportAnchor
impl Sync for ViewportAnchor
impl Unpin for ViewportAnchor
impl UnwindSafe for ViewportAnchor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,