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: u32
Image width. This should be a multiple of 4.
height: u32
Image height. This should be a multiple of 4.
Implementations§
Trait Implementations§
source§impl From<&IconData> for ColorImage
impl From<&IconData> for ColorImage
source§impl From<IconData> for ColorImage
impl From<IconData> for ColorImage
source§impl PartialEq for IconData
impl PartialEq for IconData
impl Eq for IconData
impl StructuralEq for IconData
impl StructuralPartialEq for IconData
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