#[repr(C)]pub struct UiIconApi {
pub label: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, c: *const UiIconLabelT) -> RectT>,
pub text: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, c: *const UiIconTextT) -> RectT>,
pub metrics: Option<unsafe extern "C" fn(ui: *mut UiO, font_scale: f32, icon: UiIcon) -> RectT>,
pub codepoint: Option<unsafe extern "C" fn(icon: UiIcon) -> u32>,
pub glyph: Option<unsafe extern "C" fn(ui: *mut UiO, icon: UiIcon) -> u16>,
pub draw: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, color: *mut ColorSrgbT, pos: Vec2T, icon: UiIcon) -> f32>,
pub title: Option<unsafe extern "C" fn(icon: UiIcon) -> *const c_char>,
}
Fields§
§label: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, c: *const UiIconLabelT) -> RectT>
§text: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, c: *const UiIconTextT) -> RectT>
§metrics: Option<unsafe extern "C" fn(ui: *mut UiO, font_scale: f32, icon: UiIcon) -> RectT>
§codepoint: Option<unsafe extern "C" fn(icon: UiIcon) -> u32>
§glyph: Option<unsafe extern "C" fn(ui: *mut UiO, icon: UiIcon) -> u16>
§draw: Option<unsafe extern "C" fn(ui: *mut UiO, style: *const UiStyleT, color: *mut ColorSrgbT, pos: Vec2T, icon: UiIcon) -> f32>
§title: Option<unsafe extern "C" fn(icon: UiIcon) -> *const c_char>
Implementations§
Source§impl UiIconApi
impl UiIconApi
pub unsafe fn label( &self, ui: *mut UiO, style: *const UiStyleT, c: *const UiIconLabelT, ) -> RectT
pub unsafe fn text( &self, ui: *mut UiO, style: *const UiStyleT, c: *const UiIconTextT, ) -> RectT
pub unsafe fn metrics( &self, ui: *mut UiO, font_scale: f32, icon: UiIcon, ) -> RectT
pub unsafe fn codepoint(&self, icon: UiIcon) -> u32
pub unsafe fn glyph(&self, ui: *mut UiO, icon: UiIcon) -> u16
pub unsafe fn draw( &self, ui: *mut UiO, style: *const UiStyleT, color: *mut ColorSrgbT, pos: Vec2T, icon: UiIcon, ) -> f32
pub unsafe fn title(&self, icon: UiIcon) -> *const c_char
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiIconApi
impl RefUnwindSafe for UiIconApi
impl Send for UiIconApi
impl Sync for UiIconApi
impl Unpin for UiIconApi
impl UnwindSafe for UiIconApi
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