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

#[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>, }

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>

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.