Struct qt_core::Orientation
source · 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
§type Output = QFlags<Orientation>
type Output = QFlags<Orientation>
The resulting type after applying the
|
operator.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
source§fn eq(&self, other: &Orientation) -> bool
fn eq(&self, other: &Orientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Orientation
impl Eq for Orientation
impl StructuralEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
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