Trait BackendStyle

Source
pub trait BackendStyle {
    type ColorType: Color;

    // Required method
    fn as_color(&self) -> RGBAColor;

    // Provided method
    fn stroke_width(&self) -> u32 { ... }
}
Expand description

The style data for the backend drawing API

Required Associated Types§

Source

type ColorType: Color

The underlying type represents the color for this style

Required Methods§

Source

fn as_color(&self) -> RGBAColor

Convert the style into the underlying color

Provided Methods§

Source

fn stroke_width(&self) -> u32

Implementors§