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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)