Struct qt_core::AnchorPoint
source · pub struct AnchorPoint(/* private fields */);
Expand description
Specifies a side of a layout item that can be anchored. This is used by QGraphicsAnchorLayout.
C++ enum: Qt::AnchorPoint
.
Specifies a side of a layout item that can be anchored. This is used by QGraphicsAnchorLayout.
See also QGraphicsAnchorLayout.
Implementations§
source§impl AnchorPoint
impl AnchorPoint
sourcepub const AnchorLeft: AnchorPoint = _
pub const AnchorLeft: AnchorPoint = _
The left side of a layout item. (C++ enum variant: AnchorLeft = 0
)
sourcepub const AnchorHorizontalCenter: AnchorPoint = _
pub const AnchorHorizontalCenter: AnchorPoint = _
A “virtual” side that is centered between the left and the right side of a layout item. (C++ enum variant: AnchorHorizontalCenter = 1
)
sourcepub const AnchorRight: AnchorPoint = _
pub const AnchorRight: AnchorPoint = _
The right side of a layout item. (C++ enum variant: AnchorRight = 2
)
sourcepub const AnchorTop: AnchorPoint = _
pub const AnchorTop: AnchorPoint = _
The top side of a layout item. (C++ enum variant: AnchorTop = 3
)
sourcepub const AnchorVerticalCenter: AnchorPoint = _
pub const AnchorVerticalCenter: AnchorPoint = _
A “virtual” side that is centered between the top and the bottom side of a layout item. (C++ enum variant: AnchorVerticalCenter = 4
)
sourcepub const AnchorBottom: AnchorPoint = _
pub const AnchorBottom: AnchorPoint = _
The bottom side of a layout item. (C++ enum variant: AnchorBottom = 5
)
Trait Implementations§
source§impl Clone for AnchorPoint
impl Clone for AnchorPoint
source§fn clone(&self) -> AnchorPoint
fn clone(&self) -> AnchorPoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnchorPoint
impl Debug for AnchorPoint
source§impl From<AnchorPoint> for c_int
impl From<AnchorPoint> for c_int
source§fn from(value: AnchorPoint) -> Self
fn from(value: AnchorPoint) -> Self
source§impl From<i32> for AnchorPoint
impl From<i32> for AnchorPoint
source§impl PartialEq for AnchorPoint
impl PartialEq for AnchorPoint
source§fn eq(&self, other: &AnchorPoint) -> bool
fn eq(&self, other: &AnchorPoint) -> bool
self
and other
values to be equal, and is used
by ==
.