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<'de> Deserialize<'de> for IconData
impl<'de> Deserialize<'de> for IconData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&IconData> for ColorImage
impl From<&IconData> for ColorImage
Source§impl From<IconData> for ColorImage
impl From<IconData> for ColorImage
impl Eq for IconData
impl StructuralPartialEq for IconData
Auto Trait Implementations§
impl Freeze for IconData
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