#[repr(C)]pub struct tm_font_api {
pub glyphs: Option<unsafe extern "C" fn(*const tm_font_t, *mut u16, *const u32, u32)>,
pub metrics: Option<unsafe extern "C" fn(*const tm_font_t, f32, *const u16, u32) -> tm_rect_t>,
pub metrics_array: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32, *mut tm_rect_t, *const u16, u32) -> tm_rect_t>,
pub line: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32, *const u16, u32) -> u32>,
pub rescale_font: Option<unsafe extern "C" fn(*mut tm_font_t, f32)>,
pub glyph_set_from_scale: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32) -> u32>,
pub first_glyph_of_set: Option<unsafe extern "C" fn(*const tm_font_t, u32) -> *const tm_font_glyph_t>,
}Fields§
§glyphs: Option<unsafe extern "C" fn(*const tm_font_t, *mut u16, *const u32, u32)>§metrics: Option<unsafe extern "C" fn(*const tm_font_t, f32, *const u16, u32) -> tm_rect_t>§metrics_array: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32, *mut tm_rect_t, *const u16, u32) -> tm_rect_t>§line: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32, *const u16, u32) -> u32>§rescale_font: Option<unsafe extern "C" fn(*mut tm_font_t, f32)>§glyph_set_from_scale: Option<unsafe extern "C" fn(*const tm_font_t, f32, *mut f32) -> u32>§first_glyph_of_set: Option<unsafe extern "C" fn(*const tm_font_t, u32) -> *const tm_font_glyph_t>Trait Implementations§
Source§impl Clone for tm_font_api
impl Clone for tm_font_api
Source§fn clone(&self) -> tm_font_api
fn clone(&self) -> tm_font_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_font_api
Auto Trait Implementations§
impl Freeze for tm_font_api
impl RefUnwindSafe for tm_font_api
impl Send for tm_font_api
impl Sync for tm_font_api
impl Unpin for tm_font_api
impl UnwindSafe for tm_font_api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more