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
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 more