Enum conrod::ShapeStyle [] [src]

pub enum ShapeStyle {
    Outline(LineStyle),
    Fill(Option<Color>),
}

The style for some 2D shape.

Variants

Outline(LineStyle)

The outline of the shape with this style.

Fill(Option<Color>)

A rectangle filled with this color.

Methods

impl Style
[src]

fn fill() -> Self

A default Fill style.

fn fill_with(color: Color) -> Self

A Fill style with some given Color.

fn outline() -> Self

A default Outline style.

fn outline_styled(line_style: LineStyle) -> Self

A default Outline style.

fn color(self, color: Color) -> Self

The style with some given Color.

fn set_color(&mut self, color: Color)

Set the color for the style.

fn get_color(&self, theme: &Theme) -> Color

Get the color of the Rectangle.

Trait Implementations

impl PartialEq for Style
[src]

fn eq(&self, __arg_0: &Style) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Style) -> bool

This method tests for !=.

impl Debug for Style
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Style
[src]

fn clone(&self) -> Style

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Style
[src]