[−][src]Struct nuklear::FontConfig
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]
fn as_mut(&mut self) -> &mut FontConfig
[src]
impl AsMut<nk_font_config> for FontConfig
[src]
fn as_mut(&mut self) -> &mut nk_font_config
[src]
impl AsRef<FontConfig> for nk_font_config
[src]
fn as_ref(&self) -> &FontConfig
[src]
impl AsRef<nk_font_config> for FontConfig
[src]
fn as_ref(&self) -> &nk_font_config
[src]
impl Clone for FontConfig
[src]
fn clone(&self) -> FontConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for FontConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for FontConfig
impl !Send for FontConfig
impl !Sync for FontConfig
impl Unpin for FontConfig
impl UnwindSafe for FontConfig
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,