[][src]Struct qt_core::TextFormat

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

This enum is used in widgets that can display both plain text and rich text, for example QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a QTextEdit::setTextFormat() function.

C++ enum: Qt::TextFormat.

C++ documentation:

This enum is used in widgets that can display both plain text and rich text, for example QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a QTextEdit::setTextFormat() function.

Methods

impl TextFormat[src]

pub fn to_int(&self) -> c_int[src]

impl TextFormat[src]

pub const PlainText: TextFormat[src]

The text string is interpreted as a plain text string. (C++ enum variant: PlainText = 0)

pub const RichText: TextFormat[src]

The text string is interpreted as a rich text string. See Supported HTML Subset for the definition of rich text. (C++ enum variant: RichText = 1)

pub const AutoText: TextFormat[src]

The text string is interpreted as for Qt::RichText if Qt::mightBeRichText() returns true, otherwise as Qt::PlainText. (C++ enum variant: AutoText = 2)

Trait Implementations

impl From<i32> for TextFormat[src]

impl From<TextFormat> for c_int[src]

impl Clone for TextFormat[src]

impl Copy for TextFormat[src]

impl Eq for TextFormat[src]

impl PartialEq<TextFormat> for TextFormat[src]

impl Debug for TextFormat[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]