Struct qt_core::TextElideMode
source · pub struct TextElideMode(/* private fields */);
Expand description
This enum specifies where the ellipsis should appear when displaying texts that don't fit:
C++ enum: Qt::TextElideMode
.
This enum specifies where the ellipsis should appear when displaying texts that don’t fit:
Qt::ElideMiddle is normally the most appropriate choice for URLs (e.g., "http://bugreports.qt.../QTWEBSITE-13/"), whereas Qt::ElideRight is appropriate for other strings (e.g., "Deploying Applications on Ma...").
See also QAbstractItemView::textElideMode, QFontMetrics::elidedText(), AlignmentFlag, and QTabBar::elideMode.
Implementations§
source§impl TextElideMode
impl TextElideMode
sourcepub const ElideLeft: TextElideMode = _
pub const ElideLeft: TextElideMode = _
The ellipsis should appear at the beginning of the text. (C++ enum variant: ElideLeft = 0
)
sourcepub const ElideRight: TextElideMode = _
pub const ElideRight: TextElideMode = _
The ellipsis should appear at the end of the text. (C++ enum variant: ElideRight = 1
)
sourcepub const ElideMiddle: TextElideMode = _
pub const ElideMiddle: TextElideMode = _
The ellipsis should appear in the middle of the text. (C++ enum variant: ElideMiddle = 2
)
sourcepub const ElideNone: TextElideMode = _
pub const ElideNone: TextElideMode = _
Ellipsis should NOT appear in the text. (C++ enum variant: ElideNone = 3
)
Trait Implementations§
source§impl Clone for TextElideMode
impl Clone for TextElideMode
source§fn clone(&self) -> TextElideMode
fn clone(&self) -> TextElideMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TextElideMode
impl Debug for TextElideMode
source§impl From<TextElideMode> for c_int
impl From<TextElideMode> for c_int
source§fn from(value: TextElideMode) -> Self
fn from(value: TextElideMode) -> Self
source§impl From<i32> for TextElideMode
impl From<i32> for TextElideMode
source§impl PartialEq for TextElideMode
impl PartialEq for TextElideMode
source§fn eq(&self, other: &TextElideMode) -> bool
fn eq(&self, other: &TextElideMode) -> bool
self
and other
values to be equal, and is used
by ==
.