WindowIcon
struct · ferroui-controls · v0.5.0
struct WindowIcon
Represents an icon for a window.
Members
from_bitmap
fn from_bitmap(bitmap: &Bitmap) -> Rc<WindowIcon>
Creates an icon from a bitmap.
Panics
Panics when no platform icon loader is registered.
from_file
fn from_file(file_name: &str) -> io::Result<Rc<WindowIcon>>
Loads an icon from a file.
Panics
Panics when no platform icon loader is registered.
from_stream
fn from_stream(stream: &mut dyn io::Read) -> io::Result<Rc<WindowIcon>>
Loads an icon from a stream.
Panics
Panics when no platform icon loader is registered.
save
fn save(self: &Self, stream: &mut dyn io::Write) -> io::Result<()>
Writes the icon to a stream.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherMarkupTypedValueTypeRegistrationPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.