Struct aflak_imgui::ImFontAtlas [−][src]
#[repr(C)]pub struct ImFontAtlas<'a> { /* fields omitted */ }
A handle to imgui's font manager.
Methods
impl<'a> ImFontAtlas<'a>
[src]
impl<'a> ImFontAtlas<'a>
pub fn add_default_font(&mut self) -> ImFont
[src]
pub fn add_default_font(&mut self) -> ImFont
Adds the default font to the font set.
pub fn add_default_font_with_config(&mut self, config: ImFontConfig) -> ImFont
[src]
pub fn add_default_font_with_config(&mut self, config: ImFontConfig) -> ImFont
Adds the default fnt to the font set with the given configuration.
pub fn add_font(
&mut self,
data: &[u8],
size: f32,
range: &FontGlyphRange
) -> ImFont
[src]
pub fn add_font(
&mut self,
data: &[u8],
size: f32,
range: &FontGlyphRange
) -> ImFont
Adds a custom font to the font set.
pub fn add_font_with_config(
&mut self,
data: &[u8],
config: ImFontConfig,
range: &FontGlyphRange
) -> ImFont
[src]
pub fn add_font_with_config(
&mut self,
data: &[u8],
config: ImFontConfig,
range: &FontGlyphRange
) -> ImFont
Adds a custom font to the font set with the given configuration. A font size must be set in the configuration.
Panics
If no font size is set for the configuration.
pub fn font_count(&self) -> usize
[src]
pub fn font_count(&self) -> usize
The number of fonts currently registered in the atlas.
pub fn index_font(&mut self, index: usize) -> ImFont
[src]
pub fn index_font(&mut self, index: usize) -> ImFont
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
Clears all fonts associated with this texture atlas.
pub fn texture_id(&self) -> usize
[src]
pub fn texture_id(&self) -> usize
pub fn set_texture_id(&mut self, value: usize)
[src]
pub fn set_texture_id(&mut self, value: usize)
Trait Implementations
impl<'a> ImTexture for ImFontAtlas<'a>
[src]
impl<'a> ImTexture for ImFontAtlas<'a>
To use font texture
fn get_id(&self) -> ImTextureID
[src]
fn get_id(&self) -> ImTextureID
Get ImTextureID
fn get_size(&self) -> (u32, u32)
[src]
fn get_size(&self) -> (u32, u32)
Query texture size, in pixels (for convenience)
Auto Trait Implementations
impl<'a> !Send for ImFontAtlas<'a>
impl<'a> !Send for ImFontAtlas<'a>
impl<'a> !Sync for ImFontAtlas<'a>
impl<'a> !Sync for ImFontAtlas<'a>