[−][src]Struct qt_core::LayoutDirection
Specifies the direction of Qt's layouts and text handling.
C++ enum: Qt::LayoutDirection
.
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]
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 Eq for LayoutDirection
[src]
impl Clone for LayoutDirection
[src]
fn clone(&self) -> LayoutDirection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<LayoutDirection> for LayoutDirection
[src]
fn eq(&self, other: &LayoutDirection) -> bool
[src]
fn ne(&self, other: &LayoutDirection) -> bool
[src]
impl From<i32> for LayoutDirection
[src]
impl From<LayoutDirection> for c_int
[src]
fn from(value: LayoutDirection) -> Self
[src]
impl Copy for LayoutDirection
[src]
impl Debug for LayoutDirection
[src]
Auto Trait Implementations
impl Send for LayoutDirection
impl Unpin for LayoutDirection
impl Sync for LayoutDirection
impl UnwindSafe for LayoutDirection
impl RefUnwindSafe for LayoutDirection
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,