Struct conrod::widget::grid::Grid [] [src]

pub struct Grid<X, Y, I> {
    pub common: CommonBuilder,
    pub style: Style,
    pub min_x: X,
    pub max_x: X,
    pub min_y: Y,
    pub max_y: Y,
    pub x_offset: Option<X>,
    pub y_offset: Option<Y>,
    pub lines: I,
}

A widget for displaying a grid of lines across two axes.

Fields

Builder parameters that are common to all Widgets.

Unique styling parameters for the Grid widget.

The minimum visible bound along the x axis.

The maximum visible bound along the x axis.

The minimum visible bound along the y axis.

The maximum visible bound along the y axis.

An offset for all vertical lines distributed across the x axis.

An offset for all horizontal lines distributed across the y axis.

An iterator yielding each sequence of lines to be distributed across the grid.

Methods

impl<X, Y, I> Grid<X, Y, I>
[src]

Begin building a new PlotPath widget instance.

The first four arguments represent the visible range along both axes.

The final argument is an iterator yielding Lines across either Axis. The given lines will be drawn in the order that they're given.

Specify an offset for all vertical lines placed along the X axis.

Specify an offset for all horizontal lines placed along the Y axis.

Trait Implementations

impl<X: Copy, Y: Copy, I: Copy> Copy for Grid<X, Y, I>
[src]

impl<X: Clone, Y: Clone, I: Clone> Clone for Grid<X, Y, I>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<X: Debug, Y: Debug, I: Debug> Debug for Grid<X, Y, I>
[src]

Formats the value using the given formatter.

impl<X, Y, I> Widget for Grid<X, Y, I> where
    X: Into<Scalar>,
    Y: Into<Scalar>,
    I: Iterator<Item = Axis<X, Y>>, 
[src]

State to be stored within the Uis widget cache. Read more

Every widget is required to have its own associated Style type. This type is intended to contain high-level styling information for the widget that can be optionally specified by a user of the widget. Read more

The type of event yielded by the widget, returned via the Widget::set function. Read more

Return the initial State of the Widget. Read more

Return the styling of the widget. Read more

Update the state of the PlotPath.

The default Position for the widget along the x axis. Read more

The default Position for the widget along the y axis. Read more

The default width for the Widget. Read more

The default height of the widget. Read more

If the widget is draggable, implement this method and return the position and dimensions of the draggable space. The position should be relative to the center of the widget. Read more

The area on which child widgets will be placed when using the Place Position methods.

Set the parent widget for this Widget by passing the WidgetId of the parent. Read more

Specify that this widget has no parent widgets.

Set whether or not the Widget should be placed on the kid_area. Read more

Indicates that the Widget is used as a non-interactive graphical element for some other widget. Read more

Set whether or not the widget is floating (the default is false). A typical example of a floating widget would be a pop-up or alert window. Read more

Indicates that all widgets who are children of this widget should be cropped to the kid_area of this widget. Read more

Makes the widget's KidArea scrollable. Read more

Makes the widget's KidArea scrollable. Read more

Set whether or not the widget's KidArea is scrollable (the default is false). Read more

A builder method that "lifts" the Widget through the given build function. Read more

A builder method that mutates the Widget with the given mutate function. Read more

A method that conditionally builds the Widget with the given build function. Read more

A method that optionally builds the the Widget with the given build function. Read more

Note: There should be no need to override this method. Read more

impl<X, Y, I> Colorable for Grid<X, Y, I>
[src]

Build the type's self.$($assignee).+ with the given $Type.

Set the color of the widget from rgba values.

Set the color of the widget from rgb values.

Set the color of the widget from hsla values.

Set the color of the widget from hsl values.