Struct slint::platform::software_renderer::Rgb565Pixel
#[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: 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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl 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 From<Rgb565Pixel> for RGB<u8>
impl From<Rgb565Pixel> for RGB<u8>
§fn from(p: Rgb565Pixel) -> RGB<u8>
fn from(p: Rgb565Pixel) -> RGB<u8>
Converts to this type from the input type.
§impl PartialEq for Rgb565Pixel
impl PartialEq for Rgb565Pixel
§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 ==
.§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.
§fn background() -> Self
fn background() -> Self
Pixel which will be filled as the background in case the slint view has transparency
impl Copy for Rgb565Pixel
impl Eq for Rgb565Pixel
impl Pod 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§
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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
source§impl<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,
source§fn 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()
.