Struct nannou::ui::prelude::widget::primitive::line::Style[][src]

pub struct Style {
    pub maybe_pattern: Option<Pattern>,
    pub maybe_color: Option<Color>,
    pub maybe_thickness: Option<f64>,
    pub maybe_cap: Option<Cap>,
}

Unique styling for a Line widget.

Fields

The patter for the line.

Color of the Button's pressable area.

The thickness of the line.

The style with which the ends of the line are drawn.

Methods

impl Style
[src]

Constructor for a default Line Style.

Make a solid line.

Make a line with a Dashed pattern.

Make a line with a Dotted pattern.

The style with some given pattern.

The style with some given color.

The style with some given thickness.

The style for the ends of the Line.

Set the pattern for the line.

Set the color for the line.

Set the thickness for the line.

Set the Cap for the line.

The Pattern for the Line.

The Color for the Line.

The width or thickness of the Line.

The styling for the ends of the Line.

Trait Implementations

impl Clone for Style
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Style
[src]

Formats the value using the given formatter. Read more

impl Copy for Style
[src]

impl PartialEq<Style> for Style
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Style

impl Sync for Style