1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Pushrod Widgets Library
// Core Widgets
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/// This is a `TextWidget`, which draws text in a clipped area.
/// This is an `ImageWidget`, which draws an Image in a clipped area.
/// This is a `ProgressWidget`, which draws a progress bar.
/// This is a `TimerWidget`, which times out after a specified duration, triggering a callback
/// after the timeout is exceeded.
/// This is a `PushButtonWidget`, which draws text in a `Widget` that can be clicked. It triggers an
/// `on_click` callback when the button is clicked.
/// This is a `ToggleButtonWidget`, which acts similar to a `PushButtonWidget` except that it triggers
/// `on_toggle` callbacks when the state changes.
/// This is an `ImageButtonWidget`, which acts like a `PushButtonWidget`, drawing an image on the left-hand
/// side of the bounds of the `Widget`, then the text next to it, justified left.
/// This is a `CheckboxWidget`, which acts similar to a `ToggleButtonWidget`, but does not fill the
/// box with a black/white color on select. Rather, it enables/disables a checkbox to indicate a
/// selected option.
/// This is a `SliderWidget` that displays a slider in a movable area, which changes values from min to
/// max bounds.
/// This is a `GridWidget` that contains a number of `Widget`s that can be repositioned and snapped to
/// a grid coordinate.
/// This is a `ListWidget` that displays a list of items in a selectable box.
/// This is a `TileWidget` that displays an image and some text below it, with a display change when
/// the widget is hovered over by a mouse enter event. This is mainly used in conjunction with the
/// `ToolbarWidget`, which contains a list of `TileWidget`s