pub struct Icon { /* private fields */ }
Expand description
An icon used for the window titlebar, taskbar, etc.
Implementations§
Trait Implementations§
Source§impl IconExtWindows for Icon
impl IconExtWindows for Icon
Source§fn from_path<P: AsRef<Path>>(
path: P,
size: Option<PhysicalSize<u32>>,
) -> Result<Self, BadIcon>
fn from_path<P: AsRef<Path>>( path: P, size: Option<PhysicalSize<u32>>, ) -> Result<Self, BadIcon>
Create an icon from a file path. Read more
Source§fn from_resource(
ordinal: u16,
size: Option<PhysicalSize<u32>>,
) -> Result<Self, BadIcon>
fn from_resource( ordinal: u16, size: Option<PhysicalSize<u32>>, ) -> Result<Self, BadIcon>
Create an icon from a resource embedded in this executable or library. Read more
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