[−][src]Struct qt_core::ScreenOrientation
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.
Methods
impl ScreenOrientation
[src]
impl ScreenOrientation
[src]
pub const PrimaryOrientation: ScreenOrientation
[src]
The display's primary orientation. (C++ enum variant: PrimaryOrientation = 0
)
pub const PortraitOrientation: ScreenOrientation
[src]
Portrait orientation, display height is greater than display width, rotated 90 degree clockwise relative to landscape. (C++ enum variant: PortraitOrientation = 1
)
pub const LandscapeOrientation: ScreenOrientation
[src]
Landscape orientation, display width is greater than display height. (C++ enum variant: LandscapeOrientation = 2
)
pub const InvertedPortraitOrientation: ScreenOrientation
[src]
Inverted portrait orientation, rotated 180 degrees relative to portrait. (C++ enum variant: InvertedPortraitOrientation = 4
)
pub const InvertedLandscapeOrientation: ScreenOrientation
[src]
Inverted landscape orientation, rotated 180 degrees relative to landscape. (C++ enum variant: InvertedLandscapeOrientation = 8
)
Trait Implementations
impl<T: Into<QFlags<ScreenOrientation>>> BitOr<T> for ScreenOrientation
[src]
type Output = QFlags<ScreenOrientation>
The resulting type after applying the |
operator.
fn bitor(self, rhs: T) -> QFlags<ScreenOrientation>
[src]
impl Clone for ScreenOrientation
[src]
fn clone(&self) -> ScreenOrientation
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScreenOrientation
[src]
impl Debug for ScreenOrientation
[src]
impl Eq for ScreenOrientation
[src]
impl From<ScreenOrientation> for c_int
[src]
fn from(value: ScreenOrientation) -> Self
[src]
impl From<ScreenOrientation> for QFlags<ScreenOrientation>
[src]
fn from(value: ScreenOrientation) -> Self
[src]
impl From<i32> for ScreenOrientation
[src]
impl PartialEq<ScreenOrientation> for ScreenOrientation
[src]
fn eq(&self, other: &ScreenOrientation) -> bool
[src]
fn ne(&self, other: &ScreenOrientation) -> bool
[src]
impl StructuralEq for ScreenOrientation
[src]
impl StructuralPartialEq for ScreenOrientation
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScreenOrientation
impl Send for ScreenOrientation
impl Sync for ScreenOrientation
impl Unpin for ScreenOrientation
impl UnwindSafe for ScreenOrientation
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,