Skip to main content

Graphical

Trait Graphical 

Source
pub trait Graphical: Locatable {
    // Required methods
    fn color(&self) -> i32;
    fn set_color(&mut self, color: i32);
    fn area_color(&self) -> i32;
    fn set_area_color(&mut self, color: i32);
}
Expand description

Trait for graphical primitives with color properties.

Required Methods§

Source

fn color(&self) -> i32

Get the primary color.

Source

fn set_color(&mut self, color: i32)

Set the primary color.

Source

fn area_color(&self) -> i32

Get the area/fill color.

Source

fn set_area_color(&mut self, color: i32)

Set the area/fill color.

Implementors§