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

#[repr(C)]
pub struct FontLibraryApi { pub create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut FontLibraryT>, pub destroy: Option<unsafe extern "C" fn(lib: *mut FontLibraryT)>, pub add_ttf: Option<unsafe extern "C" fn(lib: *mut FontLibraryT, ttf: *const FontDescriptorT) -> TtfHandleT>, pub lookup: Option<unsafe extern "C" fn(lib: *const FontLibraryT, ttf: TtfHandleT, size: u32, display_dpi: f32) -> *const FontT>, pub generate: Option<unsafe extern "C" fn(lib: *mut FontLibraryT, tm_res_buf_api: *mut RendererResourceCommandBufferApi, res_buf: *mut RendererResourceCommandBufferO, device_affinity: u32, font_texture_id: u32, ttf: TtfHandleT, size: u32, display_dpi: f32, scales: *const f32, n_scales: u32, texture_handle: *mut RendererHandleT) -> *const FontT>, }

Fields

create: Option<unsafe extern "C" fn(allocator: *mut AllocatorI) -> *mut FontLibraryT>destroy: Option<unsafe extern "C" fn(lib: *mut FontLibraryT)>add_ttf: Option<unsafe extern "C" fn(lib: *mut FontLibraryT, ttf: *const FontDescriptorT) -> TtfHandleT>lookup: Option<unsafe extern "C" fn(lib: *const FontLibraryT, ttf: TtfHandleT, size: u32, display_dpi: f32) -> *const FontT>generate: Option<unsafe extern "C" fn(lib: *mut FontLibraryT, tm_res_buf_api: *mut RendererResourceCommandBufferApi, res_buf: *mut RendererResourceCommandBufferO, device_affinity: u32, font_texture_id: u32, ttf: TtfHandleT, size: u32, display_dpi: f32, scales: *const f32, n_scales: u32, texture_handle: *mut RendererHandleT) -> *const FontT>

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.