#[repr(transparent)]pub struct RGBA { /* private fields */ }
Implementations§
source§impl RGBA
impl RGBA
pub fn new(red: f64, green: f64, blue: f64, alpha: f64) -> RGBA
pub fn red(&self) -> f64
pub fn set_red(&mut self, red: f64)
pub fn green(&self) -> f64
pub fn set_green(&mut self, green: f64)
pub fn blue(&self) -> f64
pub fn set_blue(&mut self, blue: f64)
pub fn alpha(&self) -> f64
pub fn set_alpha(&mut self, alpha: f64)
pub fn parse(s: &str) -> Result<Self, BoolError>
pub const BLACK: RGBA = _
pub const BLUE: RGBA = _
pub const GREEN: RGBA = _
pub const RED: RGBA = _
pub const WHITE: RGBA = _
Trait Implementations§
source§impl StaticType for RGBA
impl StaticType for RGBA
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for RGBA
impl Eq for RGBA
Auto Trait Implementations§
impl RefUnwindSafe for RGBA
impl Send for RGBA
impl Sync for RGBA
impl Unpin for RGBA
impl UnwindSafe for RGBA
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.