[][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

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 Widget::new(Box::new(instance of your new widget)), which gives you the usual style options.

Functions

Line
hotkeys
lctrl
run