Struct i_slint_core::software_renderer::Rgb565Pixel
source · #[repr(transparent)]pub struct Rgb565Pixel(pub u16);Expand description
A 16bit pixel that has 5 red bits, 6 green bits and 5 blue bits
Tuple Fields§
§0: u16Trait Implementations§
source§impl Clone for Rgb565Pixel
impl Clone for Rgb565Pixel
source§fn clone(&self) -> Rgb565Pixel
fn clone(&self) -> Rgb565Pixel
Returns a copy of the value. Read more
1.0.0 · 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 Rgb565Pixel
impl Debug for Rgb565Pixel
source§impl Default for Rgb565Pixel
impl Default for Rgb565Pixel
source§fn default() -> Rgb565Pixel
fn default() -> Rgb565Pixel
Returns the “default value” for a type. Read more
source§impl From<Rgb565Pixel> for Rgb8Pixel
impl From<Rgb565Pixel> for Rgb8Pixel
source§fn from(p: Rgb565Pixel) -> Self
fn from(p: Rgb565Pixel) -> Self
Converts to this type from the input type.
source§impl PartialEq<Rgb565Pixel> for Rgb565Pixel
impl PartialEq<Rgb565Pixel> for Rgb565Pixel
source§fn eq(&self, other: &Rgb565Pixel) -> bool
fn eq(&self, other: &Rgb565Pixel) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TargetPixel for Rgb565Pixel
impl TargetPixel for Rgb565Pixel
source§fn blend(&mut self, color: PremultipliedRgbaColor)
fn blend(&mut self, color: PremultipliedRgbaColor)
Blend a single pixel with a color
source§fn from_rgb(r: u8, g: u8, b: u8) -> Self
fn from_rgb(r: u8, g: u8, b: u8) -> Self
Create a pixel from the red, gree, blue component in the range 0..=255
source§fn blend_slice(slice: &mut [Self], color: PremultipliedRgbaColor)
fn blend_slice(slice: &mut [Self], color: PremultipliedRgbaColor)
Blend a color to all the pixel in the slice.