Struct gdk::RGBA [−][src]
Fields
red: f64
green: f64
blue: f64
alpha: f64
Methods
impl RGBA
[src]
impl RGBA
pub fn black() -> RGBA
[src]
pub fn black() -> RGBA
pub fn blue() -> RGBA
[src]
pub fn blue() -> RGBA
pub fn green() -> RGBA
[src]
pub fn green() -> RGBA
pub fn red() -> RGBA
[src]
pub fn red() -> RGBA
pub fn white() -> RGBA
[src]
pub fn white() -> RGBA
Trait Implementations
impl Clone for RGBA
[src]
impl Clone for RGBA
fn clone(&self) -> RGBA
[src]
fn clone(&self) -> RGBA
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for RGBA
[src]
impl Copy for RGBA
impl Debug for RGBA
[src]
impl Debug for RGBA
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for RGBA
[src]
impl Display for RGBA
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for RGBA
[src]
impl FromStr for RGBA
type Err = RgbaParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Hash for RGBA
[src]
impl Hash for RGBA
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for RGBA
[src]
impl PartialEq for RGBA
fn eq(&self, other: &RGBA) -> bool
[src]
fn eq(&self, other: &RGBA) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for RGBA
[src]
impl Eq for RGBA
impl StaticType for RGBA
[src]
impl StaticType for RGBA
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl<'a> FromValueOptional<'a> for RGBA
[src]
impl<'a> FromValueOptional<'a> for RGBA
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
[src]
unsafe fn from_value_optional(value: &'a Value) -> Option<Self>
impl SetValue for RGBA
[src]
impl SetValue for RGBA
impl SetValueOptional for RGBA
[src]
impl SetValueOptional for RGBA
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)
[src]
unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)