Struct slint::platform::software_renderer::Rgb565Pixel
[−]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: u16
Trait Implementations
impl Clone for Rgb565Pixel
impl Clone for Rgb565Pixel
fn 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 moreimpl Debug for Rgb565Pixel
impl Debug for Rgb565Pixel
impl Default for Rgb565Pixel
impl Default for Rgb565Pixel
fn default() -> Rgb565Pixel
fn default() -> Rgb565Pixel
Returns the “default value” for a type. Read more
impl From<RGB<u8>> for Rgb565Pixel
impl From<RGB<u8>> for Rgb565Pixel
fn from(p: RGB<u8>) -> Rgb565Pixel
fn from(p: RGB<u8>) -> Rgb565Pixel
Converts to this type from the input type.
impl PartialEq<Rgb565Pixel> for Rgb565Pixel
impl PartialEq<Rgb565Pixel> for Rgb565Pixel
fn eq(&self, other: &Rgb565Pixel) -> bool
fn eq(&self, other: &Rgb565Pixel) -> bool
impl TargetPixel for Rgb565Pixel
impl TargetPixel for Rgb565Pixel
fn blend(&mut self, color: PremultipliedRgbaColor)
fn blend(&mut self, color: PremultipliedRgbaColor)
Blend a single pixel with a color
fn from_rgb(r: u8, g: u8, b: u8) -> Rgb565Pixel
fn from_rgb(r: u8, g: u8, b: u8) -> Rgb565Pixel
Create a pixel from the red, gree, blue component in the range 0..=255
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.
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_big_endian()
.sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_native_endian()
.