pub trait ColorExt: IsA<Color> + Sealed + 'static {
// Provided methods
fn duplicate(&self) -> Option<Color> { ... }
fn components(&self, format: &mut Value) -> Vec<f64> { ... }
fn rgba(&self) -> (f64, f64, f64, f64) { ... }
fn set_components(&self, format: &mut Value, components: &[f64]) { ... }
fn set_rgba(&self, red: f64, green: f64, blue: f64, alpha: f64) { ... }
fn string(&self) -> Option<GString> { ... }
fn set_string(&self, string: Option<&str>) { ... }
fn connect_string_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn components(&self, format: &mut Value) -> Vec<f64>
fn components(&self, format: &mut Value) -> Vec<f64>
sourcefn set_components(&self, format: &mut Value, components: &[f64])
fn set_components(&self, format: &mut Value, components: &[f64])
Set the color using the component values as format
.
format
A Babl pointer
components
The color components.