pub struct IconData {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
Image data for an application icon.
Use a square image, e.g. 256x256 pixels. You can use a transparent background.
Fields§
§rgba: Vec<u8>RGBA pixels, with separate/unmultiplied alpha.
width: u32Image width. This should be a multiple of 4.
height: u32Image height. This should be a multiple of 4.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IconData
impl Send for IconData
impl Sync for IconData
impl Unpin for IconData
impl UnwindSafe for IconData
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