#[repr(C)]pub struct TtfBakerApi {
pub bake: Option<unsafe extern "C" fn(ttf: *const u8, font_index: u32, font_size: f32, font_scales: *const f32, num_scales: u32, texture_identifier: u32, pixels: *mut u8, width: u32, height: u32, ranges: *const TtfRangeT, num_ranges: u32, extract_glyph_segments: bool, allocator: *mut AllocatorI, font_bytes: *mut u64) -> *mut FontT>,
}
Fields§
§bake: Option<unsafe extern "C" fn(ttf: *const u8, font_index: u32, font_size: f32, font_scales: *const f32, num_scales: u32, texture_identifier: u32, pixels: *mut u8, width: u32, height: u32, ranges: *const TtfRangeT, num_ranges: u32, extract_glyph_segments: bool, allocator: *mut AllocatorI, font_bytes: *mut u64) -> *mut FontT>
Implementations§
Source§impl TtfBakerApi
impl TtfBakerApi
pub unsafe fn bake( &self, ttf: *const u8, font_index: u32, font_size: f32, font_scales: *const f32, num_scales: u32, texture_identifier: u32, pixels: *mut u8, width: u32, height: u32, ranges: *const TtfRangeT, num_ranges: u32, extract_glyph_segments: bool, allocator: *mut AllocatorI, font_bytes: *mut u64, ) -> *mut FontT
Trait Implementations§
Source§impl Clone for TtfBakerApi
impl Clone for TtfBakerApi
Source§fn clone(&self) -> TtfBakerApi
fn clone(&self) -> TtfBakerApi
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 moreSource§impl Default for TtfBakerApi
impl Default for TtfBakerApi
Source§fn default() -> TtfBakerApi
fn default() -> TtfBakerApi
Returns the “default value” for a type. Read more
impl Copy for TtfBakerApi
Auto Trait Implementations§
impl Freeze for TtfBakerApi
impl RefUnwindSafe for TtfBakerApi
impl Send for TtfBakerApi
impl Sync for TtfBakerApi
impl Unpin for TtfBakerApi
impl UnwindSafe for TtfBakerApi
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