Struct nuklear_rust::NkFontConfig
[−]
[src]
pub struct NkFontConfig { /* fields omitted */ }
Methods
impl NkFontConfig
[src]
fn new(pixel_height: f32) -> NkFontConfig
fn is_ttf_data_owned_by_atlas(&self) -> bool
fn size(&self) -> f32
fn oversample_v(&self) -> u8
fn oversample_h(&self) -> u8
fn glyph_range<'a>(&'a self) -> Option<&'a [(u32, u32)]>
fn padding(&self) -> [u8; 3]
fn fallback_glyph(&self) -> char
fn spacing(&self) -> &NkVec2
fn coord_type(&self) -> &NkFontCoordType
fn is_pixel_snap(&self) -> bool
fn is_merge_mode(&self) -> bool
fn set_ttf_data_owned_by_atlas(&mut self, yes: bool)
fn set_size(&mut self, size: f32)
fn set_oversample_v(&mut self, v: u8)
fn set_oversample_h(&mut self, h: u8)
fn set_glyph_range<'a>(&'a mut self, ranges: &'a [(u32, u32)])
fn set_ttf<'a>(&'a mut self, font_bytes: &'a [u8])
fn set_padding(&mut self, p: [u8; 3])
fn set_fallback_glyph(&mut self, g: char)
fn set_spacing(&mut self, s: NkVec2)
fn set_coord_type(&mut self, t: NkFontCoordType)
fn set_pixel_snap(&mut self, s: bool)
fn set_merge_mode(&mut self, m: bool)
Trait Implementations
impl Clone for NkFontConfig
[src]
fn clone(&self) -> NkFontConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more