Struct imgui::ImFontConfig [−][src]
pub struct ImFontConfig { /* fields omitted */ }
A builder for the configuration for a font.
Methods
impl ImFontConfig
[src]
impl ImFontConfig
pub fn new() -> ImFontConfig
[src]
pub fn new() -> ImFontConfig
pub fn size_pixels(self, size_pixels: f32) -> ImFontConfig
[src]
pub fn size_pixels(self, size_pixels: f32) -> ImFontConfig
pub fn oversample_h(self, oversample_h: u32) -> ImFontConfig
[src]
pub fn oversample_h(self, oversample_h: u32) -> ImFontConfig
pub fn oversample_v(self, oversample_v: u32) -> ImFontConfig
[src]
pub fn oversample_v(self, oversample_v: u32) -> ImFontConfig
pub fn pixel_snap_h(self, pixel_snap_h: bool) -> ImFontConfig
[src]
pub fn pixel_snap_h(self, pixel_snap_h: bool) -> ImFontConfig
pub fn glyph_extra_spacing<I: Into<ImVec2>>(
self,
extra_spacing: I
) -> ImFontConfig
[src]
pub fn glyph_extra_spacing<I: Into<ImVec2>>(
self,
extra_spacing: I
) -> ImFontConfig
pub fn glyph_offset<I: Into<ImVec2>>(self, glyph_offset: I) -> ImFontConfig
[src]
pub fn glyph_offset<I: Into<ImVec2>>(self, glyph_offset: I) -> ImFontConfig
pub fn merge_mode(self, merge_mode: bool) -> ImFontConfig
[src]
pub fn merge_mode(self, merge_mode: bool) -> ImFontConfig
pub fn rasterizer_multiply(self, rasterizer_multiply: f32) -> ImFontConfig
[src]
pub fn rasterizer_multiply(self, rasterizer_multiply: f32) -> ImFontConfig
pub fn add_font<'a>(
self,
atlas: &'a mut ImFontAtlas<'a>,
data: &[u8],
range: &FontGlyphRange
) -> ImFont<'a>
[src]
pub fn add_font<'a>(
self,
atlas: &'a mut ImFontAtlas<'a>,
data: &[u8],
range: &FontGlyphRange
) -> ImFont<'a>
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 add_default_font<'a>(self, atlas: &'a mut ImFontAtlas<'a>) -> ImFont<'a>
[src]
pub fn add_default_font<'a>(self, atlas: &'a mut ImFontAtlas<'a>) -> ImFont<'a>
Adds the default font to a given atlas using this configuration.
Trait Implementations
impl Copy for ImFontConfig
[src]
impl Copy for ImFontConfig
impl Clone for ImFontConfig
[src]
impl Clone for ImFontConfig
fn clone(&self) -> ImFontConfig
[src]
fn clone(&self) -> ImFontConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ImFontConfig
[src]
impl PartialEq for ImFontConfig
fn eq(&self, other: &ImFontConfig) -> bool
[src]
fn eq(&self, other: &ImFontConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ImFontConfig) -> bool
[src]
fn ne(&self, other: &ImFontConfig) -> bool
This method tests for !=
.
impl Debug for ImFontConfig
[src]
impl Debug for ImFontConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for ImFontConfig
[src]
impl Default for ImFontConfig
Auto Trait Implementations
impl Send for ImFontConfig
impl Send for ImFontConfig
impl Sync for ImFontConfig
impl Sync for ImFontConfig