Expand description
Re-exports§
pub use color::Color;
pub use color::Colorable;
pub use position::Dimensions;
pub use position::Point;
pub use position::Position;
pub use position::Positionable;
pub use position::Range;
pub use position::Rect;
pub use position::Scalar;
pub use position::Sizeable;
pub use theme::Theme;
pub use widget::scroll;
pub use widget::Widget;
Modules§
- color
- A library providing simple
Color
andGradient
types along with useful transformations and presets. - cursor
- Contains an extendable enum of supported mouse cursor types.
- event
- Contains all types used to describe the input events that
Widget
s may handle. - graph
- Conrod uses a directed acyclic graph to manage both storing widgets and describing their relationships.
- guide
- The Conrod Guide
- image
- A type used to manage a user’s image data and map them to
Image
widgets: - input
- This module contains all the logic for handling input events and providing them to widgets.
- mesh
- A mesh type dedicated to converting sequences of
render::Primitive
s to a representation in vertices ready for uploading to the GPU. - position
- Items related to 2D positioning, used throughout conrod.
- render
- Conrod’s generic graphics backend.
- text
- Text layout logic.
- theme
- Types a functionality for handling Canvas and Widget theming.
- utils
- Various utility functions used throughout Conrod.
- widget
- Widgets are the core building blocks for every conrod user interface.
Macros§
- builder_
method - A macro for simplifying implementation of methods for the
builder pattern
. - builder_
methods - A macro to simplify implementation of “builder-pattern” methods.
- widget_
ids - A macro used to generate a struct with a field for each unique identifier given.
Each field can then be used to generate unique
widget::Id
s.
Structs§
- Ui
Ui
is the most important type within Conrod and is necessary for rendering and maintaining widget state.- UiBuilder
- A constructor type for building a
Ui
instance with a set of optional parameters. - UiCell
- A wrapper around the
Ui
that restricts the user from mutating theUi
in certain ways while in the scope of theUi::set_widgets
function and withinWidget
s’update
methods. Using theUiCell
, users may access theUi
immutably (viaDeref
) however they wish, however they may only mutate theUi
via the&mut self
methods provided by theUiCell
.
Enums§
- Bordering
- To be used as a parameter for defining the aesthetic of the widget border.
Traits§
- Borderable
- Widgets that may display a border.
- Labelable
- Widgets that may display some label.
Type Aliases§
- Font
Size - Font size used throughout Conrod.