[][src]Struct native_windows_gui::FontBuilder

pub struct FontBuilder<'a> { /* fields omitted */ }

Builds a font struct

Parameters: - size: Size of the font. The font mapper transforms this value into device units and matches it against the cell height of the available fonts. - size_absolute: Size of the font. The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts. - weight: Weight of the font. A value betweem 0 and 1000. 0 use the system default, 100 is very thin, 1000 is very bold. - family: Family name of the font (ex: Arial). Can be None to use the system default.

Implementations

impl<'a> FontBuilder<'a>[src]

pub fn new() -> FontBuilder<'a>[src]

pub fn size(self, size: u32) -> FontBuilder<'a>[src]

pub fn size_absolute(self, size: u32) -> FontBuilder<'a>[src]

pub fn weight(self, weight: u32) -> FontBuilder<'a>[src]

pub fn family(self, fam: &'a str) -> FontBuilder<'a>[src]

pub fn build(self, font: &mut Font) -> Result<(), NwgError>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FontBuilder<'a>

impl<'a> Send for FontBuilder<'a>

impl<'a> Sync for FontBuilder<'a>

impl<'a> Unpin for FontBuilder<'a>

impl<'a> UnwindSafe for FontBuilder<'a>

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.