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 ยท 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 PartialEq<Rgb565Pixel> for Rgb565Pixel
impl PartialEq<Rgb565Pixel> 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.
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ยง
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
ยงfn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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 + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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> 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()
.