[−][src]Struct qt_core::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
.
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]
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 Clone for TextFlag
[src]
impl Copy for TextFlag
[src]
impl Debug for TextFlag
[src]
impl Eq for TextFlag
[src]
impl From<TextFlag> for c_int
[src]
impl From<i32> for TextFlag
[src]
impl PartialEq<TextFlag> for TextFlag
[src]
impl StructuralEq for TextFlag
[src]
impl StructuralPartialEq for TextFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextFlag
impl Send for TextFlag
impl Sync for TextFlag
impl Unpin for TextFlag
impl UnwindSafe for TextFlag
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>,