[][src]Struct qt_gui::q_font::StyleHint

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

Style hints are used by the font matching algorithm to find an appropriate default family if a selected font family is not available.

C++ enum: QFont::StyleHint.

C++ documentation:

Style hints are used by the font matching algorithm to find an appropriate default family if a selected font family is not available.

Methods

impl StyleHint[src]

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

impl StyleHint[src]

pub const Helvetica: StyleHint[src]

is a synonym for SansSerif. (C++ enum variant: Helvetica = 0)

pub const SansSerif: StyleHint[src]

the font matcher prefer sans serif fonts. (C++ enum variant: SansSerif = 0)

pub const Times: StyleHint[src]

is a synonym for Serif. (C++ enum variant: Times = 1)

pub const Serif: StyleHint[src]

the font matcher prefers serif fonts. (C++ enum variant: Serif = 1)

pub const Courier: StyleHint[src]

a synonym for TypeWriter. (C++ enum variant: Courier = 2)

pub const TypeWriter: StyleHint[src]

the font matcher prefers fixed pitch fonts. (C++ enum variant: TypeWriter = 2)

pub const OldEnglish: StyleHint[src]

the font matcher prefers decorative fonts. (C++ enum variant: OldEnglish = 3)

pub const Decorative: StyleHint[src]

is a synonym for OldEnglish. (C++ enum variant: Decorative = 3)

pub const System: StyleHint[src]

the font matcher prefers system fonts. (C++ enum variant: System = 4)

pub const AnyStyle: StyleHint[src]

leaves the font matching algorithm to choose the family. This is the default. (C++ enum variant: AnyStyle = 5)

pub const Cursive: StyleHint[src]

the font matcher prefers fonts that map to the CSS generic font-family 'cursive'. (C++ enum variant: Cursive = 6)

pub const Monospace: StyleHint[src]

the font matcher prefers fonts that map to the CSS generic font-family 'monospace'. (C++ enum variant: Monospace = 7)

pub const Fantasy: StyleHint[src]

the font matcher prefers fonts that map to the CSS generic font-family 'fantasy'. (C++ enum variant: Fantasy = 8)

Trait Implementations

impl Clone for StyleHint[src]

impl Copy for StyleHint[src]

impl Debug for StyleHint[src]

impl Eq for StyleHint[src]

impl From<StyleHint> for c_int[src]

impl From<i32> for StyleHint[src]

impl PartialEq<StyleHint> for StyleHint[src]

impl StructuralEq for StyleHint[src]

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