[−][src]Struct qt_core::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.
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]
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 Clone for TextFormat[src]
fn clone(&self) -> TextFormat[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for TextFormat[src]
impl Debug for TextFormat[src]
impl Eq for TextFormat[src]
impl From<TextFormat> for c_int[src]
fn from(value: TextFormat) -> Self[src]
impl From<i32> for TextFormat[src]
impl PartialEq<TextFormat> for TextFormat[src]
fn eq(&self, other: &TextFormat) -> bool[src]
fn ne(&self, other: &TextFormat) -> bool[src]
impl StructuralEq for TextFormat[src]
impl StructuralPartialEq for TextFormat[src]
Auto Trait Implementations
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>, [src]
U: CastFrom<T>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> 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> 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>,