pub struct IconData {
pub name: &'static str,
pub vertices: &'static [(f32, f32)],
pub indices: &'static [u32],
pub viewbox_width: f32,
pub viewbox_height: f32,
}Expand description
Pre-tessellated icon data
Contains the geometry data for rendering an icon. This is typically generated at compile time from SVG files using the build script.
Fields§
§name: &'static strIcon name (for debugging)
vertices: &'static [(f32, f32)]Vertex positions as (x, y) tuples
indices: &'static [u32]Triangle indices
viewbox_width: f32Original viewbox width
viewbox_height: f32Original viewbox height
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IconData
impl RefUnwindSafe for IconData
impl Send for IconData
impl Sync for IconData
impl Unpin for IconData
impl UnsafeUnpin for IconData
impl UnwindSafe for IconData
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