[][src]Struct qt_gui::q_raw_font::LayoutFlag

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

This enum tells the function advancesForGlyphIndexes() how to calculate the advances.

C++ enum: QRawFont::LayoutFlag.

C++ documentation:

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.

Methods

impl LayoutFlag[src]

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

impl LayoutFlag[src]

pub const SeparateAdvances: LayoutFlag[src]

Will calculate the advance for each glyph separately. (C++ enum variant: SeparateAdvances = 0)

pub const KernedAdvances: LayoutFlag[src]

Will apply kerning between adjacent glyphs. Note that OpenType GPOS based kerning is currently not supported. (C++ enum variant: KernedAdvances = 1)

pub const UseDesignMetrics: LayoutFlag[src]

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

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

type Output = QFlags<LayoutFlag>

The resulting type after applying the | operator.

impl Clone for LayoutFlag[src]

impl Copy for LayoutFlag[src]

impl Debug for LayoutFlag[src]

impl Eq for LayoutFlag[src]

impl From<LayoutFlag> for c_int[src]

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

impl From<i32> for LayoutFlag[src]

impl PartialEq<LayoutFlag> for LayoutFlag[src]

impl StructuralEq for LayoutFlag[src]

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