[][src]Struct qt_core::TextFlag

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

This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:

C++ enum: Qt::TextFlag.

C++ documentation:

This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:

You can use as many modifier flags as you want, except that Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.

Flags that are inappropriate for a given use are generally ignored.

Methods

impl TextFlag[src]

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

impl TextFlag[src]

pub const TextSingleLine: TextFlag[src]

Treats all whitespace as spaces and prints just one line. (C++ enum variant: TextSingleLine = 256)

pub const TextDontClip: TextFlag[src]

If it's impossible to stay within the given bounds, it prints outside. (C++ enum variant: TextDontClip = 512)

pub const TextExpandTabs: TextFlag[src]

Makes the U+0009 (ASCII tab) character move to the next tab stop. (C++ enum variant: TextExpandTabs = 1024)

pub const TextShowMnemonic: TextFlag[src]

Displays the string "&P" as P For an ampersand, use "&&". (C++ enum variant: TextShowMnemonic = 2048)

pub const TextWordWrap: TextFlag[src]

Breaks lines at appropriate points, e.g. at word boundaries. (C++ enum variant: TextWordWrap = 4096)

pub const TextWrapAnywhere: TextFlag[src]

Breaks lines anywhere, even within words. (C++ enum variant: TextWrapAnywhere = 8192)

pub const TextDontPrint: TextFlag[src]

Treat this text as "hidden" and don't print it. (C++ enum variant: TextDontPrint = 16384)

pub const TextIncludeTrailingSpaces: TextFlag[src]

When this option is set, QTextLine::naturalTextWidth() and QTextLine::naturalTextRect() will return a value that includes the width of trailing spaces in the text; otherwise this width is excluded. (C++ enum variant: TextIncludeTrailingSpaces = 134217728)

pub const TextHideMnemonic: TextFlag[src]

Same as Qt::TextShowMnemonic but doesn't draw the underlines. (C++ enum variant: TextHideMnemonic = 32768)

pub const TextJustificationForced: TextFlag[src]

Ensures that text lines are justified. (C++ enum variant: TextJustificationForced = 65536)

pub const TextForceLeftToRight: TextFlag[src]

C++ enum variant: TextForceLeftToRight = 131072

pub const TextForceRightToLeft: TextFlag[src]

C++ enum variant: TextForceRightToLeft = 262144

pub const TextLongestVariant: TextFlag[src]

C++ enum variant: TextLongestVariant = 524288

pub const TextBypassShaping: TextFlag[src]

C++ enum variant: TextBypassShaping = 1048576

Trait Implementations

impl From<i32> for TextFlag[src]

impl From<TextFlag> for c_int[src]

impl Clone for TextFlag[src]

impl Copy for TextFlag[src]

impl Eq for TextFlag[src]

impl PartialEq<TextFlag> for TextFlag[src]

impl Debug for TextFlag[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]