Struct qt_gui::q_glyph_run::GlyphRunFlag
source · pub struct GlyphRunFlag(/* private fields */);
Expand description
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
.
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.
Implementations§
source§impl GlyphRunFlag
impl GlyphRunFlag
sourcepub const Overline: GlyphRunFlag = _
pub const Overline: GlyphRunFlag = _
Indicates that the glyphs should be visualized together with an overline. (C++ enum variant: Overline = 1
)
sourcepub const Underline: GlyphRunFlag = _
pub const Underline: GlyphRunFlag = _
Indicates that the glyphs should be visualized together with an underline. (C++ enum variant: Underline = 2
)
sourcepub const StrikeOut: GlyphRunFlag = _
pub const StrikeOut: GlyphRunFlag = _
Indicates that the glyphs should be struck out visually. (C++ enum variant: StrikeOut = 4
)
sourcepub const RightToLeft: GlyphRunFlag = _
pub const RightToLeft: GlyphRunFlag = _
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
)
sourcepub const SplitLigature: GlyphRunFlag = _
pub const SplitLigature: GlyphRunFlag = _
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§
source§impl<T: Into<QFlags<GlyphRunFlag>>> BitOr<T> for GlyphRunFlag
impl<T: Into<QFlags<GlyphRunFlag>>> BitOr<T> for GlyphRunFlag
§type Output = QFlags<GlyphRunFlag>
type Output = QFlags<GlyphRunFlag>
|
operator.source§impl Clone for GlyphRunFlag
impl Clone for GlyphRunFlag
source§fn clone(&self) -> GlyphRunFlag
fn clone(&self) -> GlyphRunFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GlyphRunFlag
impl Debug for GlyphRunFlag
source§impl From<GlyphRunFlag> for QFlags<GlyphRunFlag>
impl From<GlyphRunFlag> for QFlags<GlyphRunFlag>
source§fn from(value: GlyphRunFlag) -> Self
fn from(value: GlyphRunFlag) -> Self
source§impl From<GlyphRunFlag> for c_int
impl From<GlyphRunFlag> for c_int
source§fn from(value: GlyphRunFlag) -> Self
fn from(value: GlyphRunFlag) -> Self
source§impl From<i32> for GlyphRunFlag
impl From<i32> for GlyphRunFlag
source§impl PartialEq for GlyphRunFlag
impl PartialEq for GlyphRunFlag
source§fn eq(&self, other: &GlyphRunFlag) -> bool
fn eq(&self, other: &GlyphRunFlag) -> bool
self
and other
values to be equal, and is used
by ==
.