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