pub struct IconPixels {
pub width: u32,
pub height: u32,
pub data: Rc<[u8]>,
}Expand description
Raw icon pixels: ARGB32 in network byte order (A, R, G, B bytes), row by row, as the StatusNotifierItem spec sends them.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
data: Rc<[u8]>width * height * 4 bytes. Shared, so the same icon isn’t copied.
Trait Implementations§
Source§impl Clone for IconPixels
impl Clone for IconPixels
Source§impl Debug for IconPixels
impl Debug for IconPixels
Source§impl PartialEq for IconPixels
impl PartialEq for IconPixels
impl StructuralPartialEq for IconPixels
Auto Trait Implementations§
impl !Send for IconPixels
impl !Sync for IconPixels
impl Forget for IconPixels
impl Freeze for IconPixels
impl Move for IconPixels
impl RefUnwindSafe for IconPixels
impl Unpin for IconPixels
impl UnsafeUnpin for IconPixels
impl UnwindSafe for IconPixels
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