[][src]Struct qt_core::TextElideMode

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

This enum specifies where the ellipsis should appear when displaying texts that don't fit:

C++ enum: Qt::TextElideMode.

C++ documentation:

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]

pub fn to_int(&self) -> c_int[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 Clone for TextElideMode[src]

impl Copy for TextElideMode[src]

impl Debug for TextElideMode[src]

impl Eq for TextElideMode[src]

impl From<TextElideMode> for c_int[src]

impl From<i32> for TextElideMode[src]

impl PartialEq<TextElideMode> for TextElideMode[src]

impl StructuralEq for TextElideMode[src]

impl StructuralPartialEq for TextElideMode[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.