euv_cli/builder/icon/struct.rs
1use super::*;
2
3/// Decoded 8-bit straight-alpha RGBA image buffer used for pure-Rust icon resizing and encoding.
4#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
5pub struct RgbaImage {
6 /// Image width in pixels.
7 #[get(type(copy))]
8 pub(crate) width: u32,
9 /// Image height in pixels.
10 #[get(type(copy))]
11 pub(crate) height: u32,
12 /// Row-major RGBA8 pixel bytes (`width * height * 4`).
13 pub(crate) pixels: Vec<u8>,
14}