pub trait FillColor {
// Required methods
fn fill_color(&self) -> AlphaColor<Srgb>;
fn set_fill_opacity(&mut self, opacity: f32) -> &mut Self;
fn set_fill_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self;
}Expand description
A trait for items that have fill color
Required Methods§
Sourcefn fill_color(&self) -> AlphaColor<Srgb>
fn fill_color(&self) -> AlphaColor<Srgb>
Getting fill color of an item
Sourcefn set_fill_opacity(&mut self, opacity: f32) -> &mut Self
fn set_fill_opacity(&mut self, opacity: f32) -> &mut Self
Setting fill opacity of an item
Sourcefn set_fill_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self
fn set_fill_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self
Setting fill color(rgba) of an item
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".