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