Enum nannou::ui::prelude::widget::primitive::shape::Style [] [src]

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

The style for some 2D shape.

Variants

The outline of the shape with this style.

A rectangle filled with this color.

Methods

impl Style
[src]

[src]

A default Fill style.

[src]

A Fill style with some given Color.

[src]

A default Outline style.

[src]

A default Outline style.

[src]

The style with some given Color.

[src]

Set the color for the style.

[src]

Get the color of the Rectangle.

Trait Implementations

impl Copy for Style
[src]

impl Clone for Style
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Style> for Style
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Style
[src]

[src]

Formats the value using the given formatter.