[][src]Struct qt_core::Orientation

#[repr(transparent)]
pub struct Orientation(_);

This type is used to signify an object's orientation.

C++ enum: Qt::Orientation.

C++ documentation:

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.

Methods

impl Orientation[src]

pub fn to_int(&self) -> c_int[src]

impl Orientation[src]

pub const Horizontal: Orientation[src]

C++ enum variant: Horizontal = 1

pub const Vertical: Orientation[src]

C++ enum variant: Vertical = 2

Trait Implementations

impl From<i32> for Orientation[src]

impl From<Orientation> for c_int[src]

impl From<Orientation> for QFlags<Orientation>[src]

impl Clone for Orientation[src]

impl Copy for Orientation[src]

impl Eq for Orientation[src]

impl PartialEq<Orientation> for Orientation[src]

impl Debug for Orientation[src]

impl<T: Into<QFlags<Orientation>>> BitOr<T> for Orientation[src]

type Output = QFlags<Orientation>

The resulting type after applying the | operator.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]