StrokeColor

Trait StrokeColor 

Source
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§

Source

fn stroke_color(&self) -> AlphaColor<Srgb>

Getting stroke color of an item

Source

fn set_stroke_opacity(&mut self, opacity: f32) -> &mut Self

Setting stroke opacity of an item

Source

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: StrokeColor> StrokeColor for [T]

Source§

fn stroke_color(&self) -> AlphaColor<Srgb>

Source§

fn set_stroke_color(&mut self, color: AlphaColor<Srgb>) -> &mut Self

Source§

fn set_stroke_opacity(&mut self, opacity: f32) -> &mut Self

Implementors§