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§fn clone(&self) -> IconBitmap
fn clone(&self) -> IconBitmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IconBitmap
impl Debug for IconBitmap
Source§impl PartialEq for IconBitmap
impl PartialEq for IconBitmap
Source§fn eq(&self, other: &IconBitmap) -> bool
fn eq(&self, other: &IconBitmap) -> bool
Tests for
self and other values to be equal, and is used by ==.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