Trait cairo::prelude::Gradient
[−]
[src]
pub trait Gradient: Pattern { fn add_color_stop_rgb(&self, offset: f64, red: f64, green: f64, blue: f64) { ... } fn add_color_stop_rgba(
&self,
offset: f64,
red: f64,
green: f64,
blue: f64,
alpha: f64
) { ... } fn get_color_stop_count(&self) -> isize { ... } fn get_color_stop_rgba(&self, index: isize) -> (f64, f64, f64, f64, f64) { ... } }
Provided Methods
fn add_color_stop_rgb(&self, offset: f64, red: f64, green: f64, blue: f64)
fn add_color_stop_rgba(
&self,
offset: f64,
red: f64,
green: f64,
blue: f64,
alpha: f64
)
&self,
offset: f64,
red: f64,
green: f64,
blue: f64,
alpha: f64
)
fn get_color_stop_count(&self) -> isize
fn get_color_stop_rgba(&self, index: isize) -> (f64, f64, f64, f64, f64)
Implementors
impl Gradient for LinearGradient
impl Gradient for RadialGradient