pub struct IconImage {
pub width: u32,
pub height: u32,
pub rgba: Arc<[u8]>,
pub template: bool,
}Expand description
An image a menu item or a tray icon shows: RGBA pixels, row by row.
Fields§
§width: u32§height: u32§rgba: Arc<[u8]>Four bytes a pixel, not premultiplied.
template: boolDrawn by its alpha alone, in the colour the system gives the place, as macOS draws a template image in its menu bar; a system without templates shows the colours.
Trait Implementations§
impl StructuralPartialEq for IconImage
Auto Trait Implementations§
impl Freeze for IconImage
impl RefUnwindSafe for IconImage
impl Send for IconImage
impl Sync for IconImage
impl Unpin for IconImage
impl UnsafeUnpin for IconImage
impl UnwindSafe for IconImage
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