Struct machinery_api::plugins::ui::FontApi[][src]

#[repr(C)]
pub struct FontApi { pub glyphs: Option<unsafe extern "C" fn(font: *const FontT, glyphs: *mut u16, codepoints: *const u32, size: u32)>, pub metrics: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, glyphs: *const u16, num_glyphs: u32) -> RectT>, pub metrics_array: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, pos_x: *mut f32, rects: *mut RectT, glyphs: *const u16, num_glyphs: u32) -> RectT>, pub line: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, line_width: *mut f32, glyphs: *const u16, num_glyphs: u32) -> u32>, pub rescale_font: Option<unsafe extern "C" fn(font: *mut FontT, scale_factor: f32)>, pub glyph_set_from_scale: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, new_font_scale: *mut f32) -> u32>, pub first_glyph_of_set: Option<unsafe extern "C" fn(font: *const FontT, set: u32) -> *const FontGlyphT>, }

Fields

glyphs: Option<unsafe extern "C" fn(font: *const FontT, glyphs: *mut u16, codepoints: *const u32, size: u32)>metrics: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, glyphs: *const u16, num_glyphs: u32) -> RectT>metrics_array: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, pos_x: *mut f32, rects: *mut RectT, glyphs: *const u16, num_glyphs: u32) -> RectT>line: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, line_width: *mut f32, glyphs: *const u16, num_glyphs: u32) -> u32>rescale_font: Option<unsafe extern "C" fn(font: *mut FontT, scale_factor: f32)>glyph_set_from_scale: Option<unsafe extern "C" fn(font: *const FontT, font_scale: f32, new_font_scale: *mut f32) -> u32>first_glyph_of_set: Option<unsafe extern "C" fn(font: *const FontT, set: u32) -> *const FontGlyphT>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.