FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowIcon

    struct · ferroui-controls · v0.5.0

    struct WindowIcon
    

    Represents an icon for a window.

    View source

    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.

    Source

    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.

    Source

    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.

    Source

    save

    fn save(self: &Self, stream: &mut dyn io::Write) -> io::Result<()>
    

    Writes the icon to a stream.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.