[−][src]Crate widgetry
Widgets
If none of these do what you need, implementing a new [WidgetImpl
] isn't tough.
TODO inline pictures of some of these
- [
AreaSlider
] - slider with an associated area graph - [
Autocomplete
] - select predefined value by combining text entry with menus - [
Button
] - clickable buttons with keybindings and tooltips - [
Checkbox
] - toggle between two buttons - [
CompareTimes
] - a scatter plot specialized for comparing times - [
DrawWithTooltips
] - draw static geometry, with mouse tooltips in certain regions - [
Dropdown
] - a button that expands into a menu - [
FanChart
] - visualize a range of values over time - [
Filler
] - just carve out space in the layout for something else - [
JustDraw
] (argh private) - just draw text,GeomBatch
es, SVGs - [
LinePlot
] - visualize 2 variables with a line plot - [
Menu
] - select something from a menu, with keybindings - [
PersistentSplit
] - a button with a dropdown to change its state - [
ScatterPlot
] - visualize 2 variables with a scatter plot - [
Slider
] - horizontal and vertical sliders - [
Spinner
] - numeric input with up/down buttons - [
TexBox
] - single line text entry
Modules
assets | |
backend | |
backend_glow | |
backend_glow_native | |
canvas | |
color | |
drawing | |
event | |
event_ctx | |
geom | |
input | |
runner | |
screen_geom | |
style | |
svg | |
text | |
tools | |
widgets |
Structs
AreaSlider | |
Autocomplete | |
Btn | |
Canvas | |
Checkbox | |
Choice | |
Color | |
CompareTimes | |
DrawWithTooltips | |
Drawable | |
EventCtx | |
FanChart | |
Filler | |
GeomBatch | A mutable builder for a group of colored polygons. |
GfxCtx | |
LinePlot | |
LinearGradient | |
Menu | |
Panel | |
PersistentSplit | |
PlotOptions | |
Prerender | |
ScatterPlot | |
ScreenDims | ScreenDims is in units of logical pixels, as opposed to physical pixels. |
ScreenPt | ScreenPt is in units of logical pixels, as opposed to physical pixels. |
ScreenRectangle | ScreenRectangle is in units of logical pixels, as opposed to physical pixels. |
Series | |
Settings | |
Slider | |
Spinner | |
Style | |
Text | |
TextSpan | |
Texture | |
UserInput | |
Warper | |
Widget | |
WidgetOutput |
Enums
Event | |
Fill | |
HorizontalAlignment | |
Key | |
MultiKey | |
Outcome | |
RewriteColor | |
UpdateType | |
VerticalAlignment |
Traits
GUI | |
TextExt | |
WidgetImpl | Create a new widget by implementing this trait. You can instantiate your widget by calling
|
Functions
Line | |
hotkeys | |
lctrl | |
run |