pub struct IconBitmap {
pub width: u32,
pub height: u32,
pub stride: u32,
pub pixels: Vec<u8>,
}Expand description
Premultiplied BGRA icon bitmap the renderer can upload directly to a GPU texture / Direct2D bitmap.
Bytes are pixels[y * stride + x * 4] = [B, G, R, A] with premultiplied
alpha. stride is in bytes and must equal width * 4 (no padding).
Fields§
§width: u32§height: u32§stride: u32Row stride in bytes (= width * 4).
pixels: Vec<u8>Trait Implementations§
Source§impl Clone for IconBitmap
impl Clone for IconBitmap
Source§impl Debug for IconBitmap
impl Debug for IconBitmap
Source§impl PartialEq for IconBitmap
impl PartialEq for IconBitmap
impl StructuralPartialEq for IconBitmap
Auto Trait Implementations§
impl Freeze for IconBitmap
impl RefUnwindSafe for IconBitmap
impl Send for IconBitmap
impl Sync for IconBitmap
impl Unpin for IconBitmap
impl UnsafeUnpin for IconBitmap
impl UnwindSafe for IconBitmap
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