#[repr(C)]pub struct Color {
pub a: BYTE,
pub r: BYTE,
pub g: BYTE,
pub b: BYTE,
}
Expand description
A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2. Each component takes a value from 0 to 255, with 0 being no intensity and 255 being the highest intensity.
Fields§
§a: BYTE
Specifies the intensity of the Alpha ie. opacity value. 0 is transparent, 255 is opaque.
r: BYTE
Specifies the intensity of the Red color.
g: BYTE
Specifies the intensity of the Green color.
b: BYTE
Specifies the intensity of the Blue color.
Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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