Struct native_windows_gui::FontBuilder [−][src]
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]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,