Struct i_slint_core::RgbaColor
source · pub struct RgbaColor<T> {
pub alpha: T,
pub red: T,
pub green: T,
pub blue: T,
}
Expand description
RgbaColor stores the red, green, blue and alpha components of a color
with the precision of the generic parameter T. For example if T is f32,
the values are normalized between 0 and 1. If T is u8, they values range
is 0 to 255.
This is merely a helper class for use with Color
.
Fields§
§alpha: T
The alpha component.
red: T
The red channel.
green: T
The green channel.
blue: T
The blue channel.
Trait Implementations§
impl<T: Copy> Copy for RgbaColor<T>
impl<T> StructuralPartialEq for RgbaColor<T>
Auto Trait Implementations§
impl<T> Freeze for RgbaColor<T>where
T: Freeze,
impl<T> RefUnwindSafe for RgbaColor<T>where
T: RefUnwindSafe,
impl<T> Send for RgbaColor<T>where
T: Send,
impl<T> Sync for RgbaColor<T>where
T: Sync,
impl<T> Unpin for RgbaColor<T>where
T: Unpin,
impl<T> UnwindSafe for RgbaColor<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)