Struct winit::Icon [] [src]

pub struct Icon { /* fields omitted */ }

An icon used for the window titlebar, taskbar, etc.

Enabling the icon_loading feature provides you with several convenience methods for creating an Icon from any format supported by the image crate.

Methods

impl Icon
[src]

Important traits for Vec<u8>
[src]

impl Icon
[src]

[src]

Creates an Icon from 32bpp RGBA data.

The length of rgba must be divisible by 4, and width * height must equal rgba.len() / 4. Otherwise, this will return a BadIcon error.

Trait Implementations

impl Debug for Icon
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Icon
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Icon
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Icon
[src]

Auto Trait Implementations

impl Send for Icon

impl Sync for Icon