Struct nannou::ui::prelude::widget::grid::Lines[][src]

pub struct Lines<T> {
    pub step: T,
    pub offset: Option<T>,
    pub thickness: Option<f64>,
    pub color: Option<Color>,
}

A series of lines distributed across an axis.

Fields

The distance that separates each line.

An optional offset for the lines along they're axis.

The thickness of each of the lines drawn.

If None, the thickness specified within the Style is used.

The color of each of the lines drawn.

If None, the color specified within the Style is used.

Methods

impl<T> Lines<T>
[src]

Begin building a new set of lines for the grid step distance apart.

Lines with a step that equates to 0.0 or less will not be drawn.

Specify an offset for the grid.

Offsets that are greater than the step size will be wrapped around the step size.

Specify a unique thickness for these lines.

Use the specified color to uniquely color the this set of lines.

Move the lines over the X axis.

Move the lines over the Y axis.

Trait Implementations

impl<T> Clone for Lines<T> where
    T: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for Lines<T> where
    T: Debug
[src]

Formats the value using the given formatter. Read more

impl<T> Copy for Lines<T> where
    T: Copy
[src]

Auto Trait Implementations

impl<T> Send for Lines<T> where
    T: Send

impl<T> Sync for Lines<T> where
    T: Sync