pub struct Icon {
pub width: u32,
pub height: u32,
pub path: &'static str,
}
Expand description
An icon made up of a single path (which should be filled with whatever color we want).
Fields§
§width: u32
The width of the icon.
height: u32
The height of the icon.
path: &'static str
The icon’s path, in SVG format.
Implementations§
Source§impl Icon
impl Icon
pub fn to_custom_widget<T>( &self, brush: impl Into<BackgroundBrush<T>>, ) -> IconWidget<T>
pub fn to_widget(&self) -> IconWidget<bool>
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnwindSafe for Icon
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