[−][src]Struct qt_core::TextElideMode
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.
Methods
impl TextElideMode
[src]
impl TextElideMode
[src]
pub const ElideLeft: TextElideMode
[src]
The ellipsis should appear at the beginning of the text. (C++ enum variant: ElideLeft = 0
)
pub const ElideRight: TextElideMode
[src]
The ellipsis should appear at the end of the text. (C++ enum variant: ElideRight = 1
)
pub const ElideMiddle: TextElideMode
[src]
The ellipsis should appear in the middle of the text. (C++ enum variant: ElideMiddle = 2
)
pub const ElideNone: TextElideMode
[src]
Ellipsis should NOT appear in the text. (C++ enum variant: ElideNone = 3
)
Trait Implementations
impl Eq for TextElideMode
[src]
impl Clone for TextElideMode
[src]
fn clone(&self) -> TextElideMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<TextElideMode> for TextElideMode
[src]
fn eq(&self, other: &TextElideMode) -> bool
[src]
fn ne(&self, other: &TextElideMode) -> bool
[src]
impl From<i32> for TextElideMode
[src]
impl From<TextElideMode> for c_int
[src]
fn from(value: TextElideMode) -> Self
[src]
impl Copy for TextElideMode
[src]
impl Debug for TextElideMode
[src]
Auto Trait Implementations
impl Send for TextElideMode
impl Unpin for TextElideMode
impl Sync for TextElideMode
impl UnwindSafe for TextElideMode
impl RefUnwindSafe for TextElideMode
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>,