#[repr(C)]pub struct FontApi {
pub get: RawFontGet,
pub release: RawFontRelease,
pub add_from_file: RawFontAddFromFile,
pub add_from_resource: RawFontAddFromResource,
pub add_from_memory: RawFontAddFromMemory,
pub resize: RawFontResize,
}Fields§
§get: RawFontGetRequests a font to be sent to the given callback/receiver.
release: RawFontReleaseReleases a callback/receiver from a specific font.
add_from_file: RawFontAddFromFileAdds a font from disk and sends updates to the callback.
add_from_resource: RawFontAddFromResourceAdds a font from an embedded resource and sends updates to the callback.
add_from_memory: RawFontAddFromMemoryAdds a font from memory and sends updates to the callback.
resize: RawFontResizeResizes a font and sends updates to the registered callbacks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontApi
impl RefUnwindSafe for FontApi
impl Send for FontApi
impl Sync for FontApi
impl Unpin for FontApi
impl UnwindSafe for FontApi
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