Struct qt_core::ScreenOrientation
source · pub struct ScreenOrientation(/* private fields */);
Expand description
This enum type specifies the various orientations a screen might have.
C++ enum: Qt::ScreenOrientation
.
This enum type specifies the various orientations a screen might have.
The ScreenOrientations type is a typedef for QFlags<ScreenOrientation>. It stores an OR combination of ScreenOrientation values.
Implementations§
source§impl ScreenOrientation
impl ScreenOrientation
sourcepub const PrimaryOrientation: ScreenOrientation = _
pub const PrimaryOrientation: ScreenOrientation = _
The display’s primary orientation. (C++ enum variant: PrimaryOrientation = 0
)
sourcepub const PortraitOrientation: ScreenOrientation = _
pub const PortraitOrientation: ScreenOrientation = _
Portrait orientation, display height is greater than display width, rotated 90 degree clockwise relative to landscape. (C++ enum variant: PortraitOrientation = 1
)
sourcepub const LandscapeOrientation: ScreenOrientation = _
pub const LandscapeOrientation: ScreenOrientation = _
Landscape orientation, display width is greater than display height. (C++ enum variant: LandscapeOrientation = 2
)
sourcepub const InvertedPortraitOrientation: ScreenOrientation = _
pub const InvertedPortraitOrientation: ScreenOrientation = _
Inverted portrait orientation, rotated 180 degrees relative to portrait. (C++ enum variant: InvertedPortraitOrientation = 4
)
sourcepub const InvertedLandscapeOrientation: ScreenOrientation = _
pub const InvertedLandscapeOrientation: ScreenOrientation = _
Inverted landscape orientation, rotated 180 degrees relative to landscape. (C++ enum variant: InvertedLandscapeOrientation = 8
)
Trait Implementations§
source§impl<T: Into<QFlags<ScreenOrientation>>> BitOr<T> for ScreenOrientation
impl<T: Into<QFlags<ScreenOrientation>>> BitOr<T> for ScreenOrientation
§type Output = QFlags<ScreenOrientation>
type Output = QFlags<ScreenOrientation>
|
operator.source§impl Clone for ScreenOrientation
impl Clone for ScreenOrientation
source§fn clone(&self) -> ScreenOrientation
fn clone(&self) -> ScreenOrientation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScreenOrientation
impl Debug for ScreenOrientation
source§impl From<ScreenOrientation> for QFlags<ScreenOrientation>
impl From<ScreenOrientation> for QFlags<ScreenOrientation>
source§fn from(value: ScreenOrientation) -> Self
fn from(value: ScreenOrientation) -> Self
source§impl From<ScreenOrientation> for c_int
impl From<ScreenOrientation> for c_int
source§fn from(value: ScreenOrientation) -> Self
fn from(value: ScreenOrientation) -> Self
source§impl From<i32> for ScreenOrientation
impl From<i32> for ScreenOrientation
source§impl PartialEq for ScreenOrientation
impl PartialEq for ScreenOrientation
source§fn eq(&self, other: &ScreenOrientation) -> bool
fn eq(&self, other: &ScreenOrientation) -> bool
self
and other
values to be equal, and is used
by ==
.