Struct qt_gui::q_raw_font::LayoutFlag
source · pub struct LayoutFlag(/* private fields */);
Expand description
This enum tells the function advancesForGlyphIndexes() how to calculate the advances.
C++ enum: QRawFont::LayoutFlag
.
This enum tells the function advancesForGlyphIndexes() how to calculate the advances.
This enum was introduced or modified in Qt 5.1.
The LayoutFlags type is a typedef for QFlags<LayoutFlag>. It stores an OR combination of LayoutFlag values.
Implementations§
source§impl LayoutFlag
impl LayoutFlag
sourcepub const SeparateAdvances: LayoutFlag = _
pub const SeparateAdvances: LayoutFlag = _
Will calculate the advance for each glyph separately. (C++ enum variant: SeparateAdvances = 0
)
sourcepub const KernedAdvances: LayoutFlag = _
pub const KernedAdvances: LayoutFlag = _
Will apply kerning between adjacent glyphs. Note that OpenType GPOS based kerning is currently not supported. (C++ enum variant: KernedAdvances = 1
)
sourcepub const UseDesignMetrics: LayoutFlag = _
pub const UseDesignMetrics: LayoutFlag = _
Use design metrics instead of hinted metrics adjusted to the resolution of the paint device. Can be OR-ed with any of the options above. (C++ enum variant: UseDesignMetrics = 2
)
Trait Implementations§
source§impl<T: Into<QFlags<LayoutFlag>>> BitOr<T> for LayoutFlag
impl<T: Into<QFlags<LayoutFlag>>> BitOr<T> for LayoutFlag
§type Output = QFlags<LayoutFlag>
type Output = QFlags<LayoutFlag>
|
operator.source§impl Clone for LayoutFlag
impl Clone for LayoutFlag
source§fn clone(&self) -> LayoutFlag
fn clone(&self) -> LayoutFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LayoutFlag
impl Debug for LayoutFlag
source§impl From<LayoutFlag> for QFlags<LayoutFlag>
impl From<LayoutFlag> for QFlags<LayoutFlag>
source§fn from(value: LayoutFlag) -> Self
fn from(value: LayoutFlag) -> Self
source§impl From<LayoutFlag> for c_int
impl From<LayoutFlag> for c_int
source§fn from(value: LayoutFlag) -> Self
fn from(value: LayoutFlag) -> Self
source§impl From<i32> for LayoutFlag
impl From<i32> for LayoutFlag
source§impl PartialEq for LayoutFlag
impl PartialEq for LayoutFlag
source§fn eq(&self, other: &LayoutFlag) -> bool
fn eq(&self, other: &LayoutFlag) -> bool
self
and other
values to be equal, and is used
by ==
.