[−][src]Struct qt_gui::q_glyph_run::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
.
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]
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.
fn bitor(self, rhs: T) -> QFlags<GlyphRunFlag>
[src]
impl Clone for GlyphRunFlag
[src]
fn clone(&self) -> GlyphRunFlag
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GlyphRunFlag
[src]
impl Debug for GlyphRunFlag
[src]
impl Eq for GlyphRunFlag
[src]
impl From<GlyphRunFlag> for c_int
[src]
fn from(value: GlyphRunFlag) -> Self
[src]
impl From<GlyphRunFlag> for QFlags<GlyphRunFlag>
[src]
fn from(value: GlyphRunFlag) -> Self
[src]
impl From<i32> for GlyphRunFlag
[src]
impl PartialEq<GlyphRunFlag> for GlyphRunFlag
[src]
fn eq(&self, other: &GlyphRunFlag) -> bool
[src]
fn ne(&self, other: &GlyphRunFlag) -> bool
[src]
impl StructuralEq for GlyphRunFlag
[src]
impl StructuralPartialEq for GlyphRunFlag
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlyphRunFlag
impl Send for GlyphRunFlag
impl Sync for GlyphRunFlag
impl Unpin for GlyphRunFlag
impl UnwindSafe for GlyphRunFlag
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>,