[][src]Struct qt_core::LayoutDirection

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

Specifies the direction of Qt's layouts and text handling.

C++ enum: Qt::LayoutDirection.

C++ documentation:

Specifies the direction of Qt's layouts and text handling.

Right-to-left layouts are necessary for certain languages, notably Arabic and Hebrew.

LayoutDirectionAuto serves two purposes. When used in conjunction with widgets and layouts, it will imply to use the layout direction set on the parent widget or QApplication. This has the same effect as QWidget::unsetLayoutDirection().

When LayoutDirectionAuto is used in conjunction with text layouting, it will imply that the text directionality is determined from the content of the string to be layouted.

See also QGuiApplication::setLayoutDirection(), QWidget::setLayoutDirection(), QTextOption::setTextDirection(), and QString::isRightToLeft().

Methods

impl LayoutDirection[src]

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

impl LayoutDirection[src]

pub const LeftToRight: LayoutDirection[src]

Left-to-right layout. (C++ enum variant: LeftToRight = 0)

pub const RightToLeft: LayoutDirection[src]

Right-to-left layout. (C++ enum variant: RightToLeft = 1)

pub const LayoutDirectionAuto: LayoutDirection[src]

Automatic layout. (C++ enum variant: LayoutDirectionAuto = 2)

Trait Implementations

impl Clone for LayoutDirection[src]

impl Copy for LayoutDirection[src]

impl Debug for LayoutDirection[src]

impl Eq for LayoutDirection[src]

impl From<LayoutDirection> for c_int[src]

impl From<i32> for LayoutDirection[src]

impl PartialEq<LayoutDirection> for LayoutDirection[src]

impl StructuralEq for LayoutDirection[src]

impl StructuralPartialEq for LayoutDirection[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> StaticUpcast<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.