Struct qt_core::LayoutDirection
source · pub struct LayoutDirection(/* private fields */);
Expand description
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().
Implementations§
source§impl LayoutDirection
impl LayoutDirection
sourcepub const LeftToRight: LayoutDirection = _
pub const LeftToRight: LayoutDirection = _
Left-to-right layout. (C++ enum variant: LeftToRight = 0
)
sourcepub const RightToLeft: LayoutDirection = _
pub const RightToLeft: LayoutDirection = _
Right-to-left layout. (C++ enum variant: RightToLeft = 1
)
sourcepub const LayoutDirectionAuto: LayoutDirection = _
pub const LayoutDirectionAuto: LayoutDirection = _
Automatic layout. (C++ enum variant: LayoutDirectionAuto = 2
)
Trait Implementations§
source§impl Clone for LayoutDirection
impl Clone for LayoutDirection
source§fn clone(&self) -> LayoutDirection
fn clone(&self) -> LayoutDirection
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LayoutDirection
impl Debug for LayoutDirection
source§impl From<LayoutDirection> for c_int
impl From<LayoutDirection> for c_int
source§fn from(value: LayoutDirection) -> Self
fn from(value: LayoutDirection) -> Self
source§impl From<i32> for LayoutDirection
impl From<i32> for LayoutDirection
source§impl PartialEq for LayoutDirection
impl PartialEq for LayoutDirection
source§fn eq(&self, other: &LayoutDirection) -> bool
fn eq(&self, other: &LayoutDirection) -> bool
self
and other
values to be equal, and is used
by ==
.