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
sourceimpl Clone for Rgb565Pixel
impl Clone for Rgb565Pixel
sourcefn clone(&self) -> Rgb565Pixel
fn clone(&self) -> Rgb565Pixel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Rgb565Pixel
impl Debug for Rgb565Pixel
sourceimpl Default for Rgb565Pixel
impl Default for Rgb565Pixel
sourcefn default() -> Rgb565Pixel
fn default() -> Rgb565Pixel
Returns the “default value” for a type. Read more
sourceimpl From<RGB<u8>> for Rgb565Pixel
impl From<RGB<u8>> for Rgb565Pixel
sourceimpl From<Rgb565Pixel> for Rgb8Pixel
impl From<Rgb565Pixel> for Rgb8Pixel
sourcefn from(p: Rgb565Pixel) -> Self
fn from(p: Rgb565Pixel) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Rgb565Pixel> for Rgb565Pixel
impl PartialEq<Rgb565Pixel> for Rgb565Pixel
sourcefn 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 ==. Read more
sourceimpl TargetPixel for Rgb565Pixel
impl TargetPixel for Rgb565Pixel
sourcefn blend(&mut self, color: PremultipliedRgbaColor)
fn blend(&mut self, color: PremultipliedRgbaColor)
Blend a single pixel with a color
sourcefn 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
sourcefn 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.
impl Copy for Rgb565Pixel
impl Eq for Rgb565Pixel
impl StructuralEq for Rgb565Pixel
impl StructuralPartialEq for Rgb565Pixel
Auto Trait Implementations
impl RefUnwindSafe for Rgb565Pixel
impl Send for Rgb565Pixel
impl Sync for Rgb565Pixel
impl Unpin for Rgb565Pixel
impl UnwindSafe for Rgb565Pixel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.