pub struct Orientation(/* private fields */);
Expand description
This type is used to signify an object's orientation.
C++ enum: Qt::Orientation
.
This type is used to signify an object’s orientation.
Orientation is used with QScrollBar for example.
The Orientations type is a typedef for QFlags<Orientation>. It stores an OR combination of Orientation values.
Implementations§
Source§impl Orientation
impl Orientation
Sourcepub const Horizontal: Orientation
pub const Horizontal: Orientation
C++ enum variant: Horizontal = 1
Sourcepub const Vertical: Orientation
pub const Vertical: Orientation
C++ enum variant: Vertical = 2
Trait Implementations§
Source§impl<T: Into<QFlags<Orientation>>> BitOr<T> for Orientation
impl<T: Into<QFlags<Orientation>>> BitOr<T> for Orientation
Source§impl Clone for Orientation
impl Clone for Orientation
Source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Orientation
impl Debug for Orientation
Source§impl From<Orientation> for QFlags<Orientation>
impl From<Orientation> for QFlags<Orientation>
Source§fn from(value: Orientation) -> Self
fn from(value: Orientation) -> Self
Converts to this type from the input type.
Source§impl From<Orientation> for c_int
impl From<Orientation> for c_int
Source§fn from(value: Orientation) -> Self
fn from(value: Orientation) -> Self
Converts to this type from the input type.
Source§impl From<i32> for Orientation
impl From<i32> for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
impl Copy for Orientation
impl Eq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more