FillColor

Trait FillColor 

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

Source

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

Getting fill color of an item

Source

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

Setting fill opacity of an item

Source

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

Implementations on Foreign Types§

Source§

impl<T: FillColor> FillColor for [T]

Source§

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

Source§

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

Source§

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

Implementors§