Struct glutin::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]
impl Iconpub fn from_rgba(
rgba: Vec<u8>,
width: u32,
height: u32
) -> Result<Icon, BadIcon>[src]
pub fn from_rgba(
rgba: Vec<u8>,
width: u32,
height: u32
) -> Result<Icon, BadIcon>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 Clone for Icon[src]
impl Clone for Iconfn clone(&self) -> Icon[src]
fn clone(&self) -> IconReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Icon[src]
impl Debug for Iconfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Eq for Icon[src]
impl Eq for Iconimpl PartialEq<Icon> for Icon[src]
impl PartialEq<Icon> for Icon