[][src]Struct qt_gui::q_glyph_run::GlyphRunFlag

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

This enum describes flags that alter the way the run of glyphs might be presented or behave in a visual layout. The layout which generates the glyph runs can set these flags based on relevant internal data, to retain information needed to present the text as intended by the user of the layout.

C++ enum: QGlyphRun::GlyphRunFlag.

C++ documentation:

This enum describes flags that alter the way the run of glyphs might be presented or behave in a visual layout. The layout which generates the glyph runs can set these flags based on relevant internal data, to retain information needed to present the text as intended by the user of the layout.

This enum was introduced or modified in Qt 5.0.

The GlyphRunFlags type is a typedef for QFlags<GlyphRunFlag>. It stores an OR combination of GlyphRunFlag values.

Methods

impl GlyphRunFlag[src]

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

impl GlyphRunFlag[src]

pub const Overline: GlyphRunFlag[src]

Indicates that the glyphs should be visualized together with an overline. (C++ enum variant: Overline = 1)

pub const Underline: GlyphRunFlag[src]

Indicates that the glyphs should be visualized together with an underline. (C++ enum variant: Underline = 2)

pub const StrikeOut: GlyphRunFlag[src]

Indicates that the glyphs should be struck out visually. (C++ enum variant: StrikeOut = 4)

pub const RightToLeft: GlyphRunFlag[src]

Indicates that the glyphs are ordered right to left. This can affect the positioning of other screen elements that are relative to the glyph run, such as an inline text object. (C++ enum variant: RightToLeft = 8)

pub const SplitLigature: GlyphRunFlag[src]

Indicates that the glyph run splits a ligature glyph. This means that a ligature glyph is included in the run, but the characters represented by it corresponds only to part of that ligature. The glyph run's boundingRect() function can in this case be used to retrieve the area covered by glyphs that correspond to the characters represented by the glyph run. When visualizing the glyphs, care needs to be taken to clip to this bounding rect to ensure that only the corresponding part of the ligature is painted. In particular, this can be the case when retrieving a glyph run from a QTextLayout for a specific character range, e.g. when retrieving the selected area of a QTextLayout. (C++ enum variant: SplitLigature = 16)

Trait Implementations

impl<T: Into<QFlags<GlyphRunFlag>>> BitOr<T> for GlyphRunFlag[src]

type Output = QFlags<GlyphRunFlag>

The resulting type after applying the | operator.

impl Clone for GlyphRunFlag[src]

impl Copy for GlyphRunFlag[src]

impl Debug for GlyphRunFlag[src]

impl Eq for GlyphRunFlag[src]

impl From<GlyphRunFlag> for c_int[src]

impl From<GlyphRunFlag> for QFlags<GlyphRunFlag>[src]

impl From<i32> for GlyphRunFlag[src]

impl PartialEq<GlyphRunFlag> for GlyphRunFlag[src]

impl StructuralEq for GlyphRunFlag[src]

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