Module nannou::ui::widget[][src]

Expand description

Widgets are the core building blocks for every conrod user interface.

This module contains items related to the implementation of the Widget trait. It also re-exports all widgets (and their modules) that are provided by conrod.

Modules

The BorderedRectangle widget and related items.

The Button widget and related items.

The Canvas widget and related items.

The CollapsibleArea widget and related items.

The DropDownList and related items.

The EnvelopeEditor widget and related items.

A widget for navigating through through a file system. Generally inspired by Finder.

A widget for viewing and controlling graph structures.

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

The widget identifier type used throughout conrod, along with helper types and macros to simplify the process of generating them.

A helper widget, useful for instantiating a sequence of widgets in a vertical list.

A wrapper around the List widget providing the ability to select one or more items.

A helper widget for laying out child widgets in the form of a grid.

A widget for precision control over any base-10 digit within a given value.

A widget for plotting a series of lines using the given function x -> y.

Primitive widgets are special in that they are built into conrod’s rendering logic.

A widget for specifying start and end values for some linear range.

Similar to the Rectangle widget however is drawn with rounded corners.

Scroll related types and logic.

A widget that allows for manually scrolling via dragging the mouse.

A widget for selecting a single value along some linear range.

A wrapper around a list of Canvasses that displays them as a list of selectable tabs.

A widget for displaying and mutating a one-line field of text.

A widget for displaying and mutating multi-line text, given as a String.

A simple title bar widget that automatically sizes itself to the top of some other widget.

A button that allows for toggling boolean state.

Used for displaying and controlling a 2D point on a cartesian plane within a given range.

Structs

A filled rectangle widget that may or may not have some border.

A pressable button widget whose reaction is triggered upon release.

Canvas is designed to be a “container”-like “parent” widget that simplifies placement of “children” widgets.

A tiny wrapper around the Oval widget type.

A vertically collapsible area.

A struct containing builder data common to all Widget types.

A wrapper around state that is common to all Widget types.

Styling and positioning data that is common between all widget types.

Displays a given Vec<String> as a selectable drop down menu.

Used for editing a series of 2D Points on a cartesian (X, Y) plane within some given range.

A widget for navigating and interacting with a file system.

State necessary for “floating” (pop-up style) widgets.

A widget used for visualising and manipulating Graph types.

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

A primitive and basic widget for drawing an Image.

The area upon which a Widget’s child widgets will be placed.

Arguments to the Widget::kid_area method in a struct to simplify the method signature.

A simple, non-interactive widget for drawing a single straight Line.

A helper widget, useful for instantiating a sequence of widgets in a vertical list.

A wrapper around the List widget that handles single and multiple selection logic.

Draw a matrix of any rectangular widget type, where the matrix will provide a function with the widget number, it’s rows and cols position, the width and height for the widget and the location at which the widget should be drawn.

A widget for precision control over any digit within a value.

A simple, non-interactive widget for drawing a single Oval.

A widget that plots a series of lines using the given function x -> y.

A simple, non-interactive widget for drawing a series of lines and/or points.

A basic, non-interactive, arbitrary Polygon widget.

Linear range selection.

A basic, non-interactive rectangle shape widget.

Draws a rectangle with corners rounded via the given radius.

A widget that allows for scrolling via dragging the mouse.

Linear value selection.

A wrapper around a Widget’s unique Widget::State.

A wrapper around a list of Canvasses that displays them as a list of selectable tabs.

Displays some given text centered within a rectangular area.

A widget for displaying and mutating a small, one-line field of text, given by the user in the form of a String.

A widget for displaying and mutating multi-line text, given as a String.

A simple title bar widget that automatically sizes itself to the top of some other widget.

A pressable widget for toggling the state of a bool.

A widget that allows for drawing a list of triangles.

Arguments for the Widget::update method in a struct to simplify the method signature.

Used for displaying and controlling a 2D point on a cartesian plane within a given range.

Enums

Returned by the Widget::is_over method.

The builder argument for the Widget’s parent.

Traits

A trait implemented by all Widget types.

The necessary bounds for a Widget’s associated Style type.

A trait to be implemented by all Widget types.

Functions

Determines the default Dimension for a Widget.

Determines the default Dimension for a Widget.

The default IsOverFn used if the Widget::is_over method is not overridden.

Type Definitions

Unique widget identifier.

A function type used to determine whether or not a given point is over a widget.