[][src]Struct nuklear::FontConfig

#[repr(C)]pub struct FontConfig { /* fields omitted */ }

Implementations

impl FontConfig[src]

pub fn with_size(pixel_height: f32) -> FontConfig[src]

pub fn is_ttf_data_owned_by_atlas(&self) -> bool[src]

pub fn size(&self) -> f32[src]

pub fn oversample_v(&self) -> u8[src]

pub fn oversample_h(&self) -> u8[src]

pub fn glyph_range(&self) -> Option<&[(u32, u32)]>[src]

pub fn padding(&self) -> [u8; 3][src]

pub fn fallback_glyph(&self) -> char[src]

pub fn spacing(&self) -> &Vec2[src]

pub fn coord_type(&self) -> &FontCoordType[src]

pub fn is_pixel_snap(&self) -> bool[src]

pub fn is_merge_mode(&self) -> bool[src]

pub fn set_ttf_data_owned_by_atlas(&mut self, yes: bool)[src]

pub fn set_size(&mut self, size: f32)[src]

pub fn set_oversample_v(&mut self, v: u8)[src]

pub fn set_oversample_h(&mut self, h: u8)[src]

pub fn set_glyph_range<'a>(&'a mut self, ranges: &'a [(u32, u32)])[src]

pub fn set_ttf<'a>(&'a mut self, font_bytes: &'a [u8])[src]

pub fn set_padding(&mut self, p: [u8; 3])[src]

pub fn set_fallback_glyph(&mut self, g: char)[src]

pub fn set_spacing(&mut self, s: Vec2)[src]

pub fn set_coord_type(&mut self, t: FontCoordType)[src]

pub fn set_pixel_snap(&mut self, s: bool)[src]

pub fn set_merge_mode(&mut self, m: bool)[src]

Trait Implementations

impl AsMut<FontConfig> for nk_font_config[src]

impl AsMut<nk_font_config> for FontConfig[src]

impl AsRef<FontConfig> for nk_font_config[src]

impl AsRef<nk_font_config> for FontConfig[src]

impl Clone for FontConfig[src]

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

impl<T, U> Into<U> for T where
    U: From<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.