[][src]Struct tm_sys::ffi::tm_font_api

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

Fields

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

Trait Implementations

impl Clone for tm_font_api[src]

impl Copy for tm_font_api[src]

impl Debug for tm_font_api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.