Expand description
KAS widget library
§Complex widgets
EventConfig
provides an editor for event configurationkas::Window
is the root of any UI tree used as a windowkas::Popup
is the root of any popup
§Sub-modules
adapt
providesAdapt
,AdaptWidget
,AdaptWidgetAny
and supporting items (the items mentioned are re-export here).dialog
providesMessageBox
, …edit
providesEditBox
,EditField
widgets,EditGuard
trait and some implsmenu
provides aMenuBar
,SubMenu
, …
§Container widgets
Frame
,NavFrame
: frames around contentScrollRegion
,ScrollBarRegion
: larger on the insideStack
,TabStack
: a stack of widgets in the same rectList
: a row / column of childrenSplitter
: likeList
but with resizing handlesGrid
: a container using matrix layout
§Controls
Button
,MarkButton
: button widgetsCheckBox
,CheckButton
: checkable boxesRadioBox
,RadioButton
: linked checkable boxesComboBox
: a drop-down menu over a listScrollBar
: a scroll bar;ScrollBars
: a wrapper adding scroll bars around an inner widgetSlider
: a sliderSpinner
: numeric entry
§Displays
Filler
: an empty widget, sometimes used to fill spaceImage
: a pixmap imageLabel
,AccessLabel
: are static text labelsText
: a dynamic (input-data derived) text labelMark
: a small markScrollLabel
: static text label supporting scrolling and selectionScrollText
: dynamic text label supporting scrolling and selectionSeparator
: a visible bar to separate thingsformat_value
andformat_data
are constructors forText
, displaying a text label derived from input dataProgressBar
: show completion level
§Components
AccessLabel
: a label which parses access keysGripPart
: a handle (e.g. for a slider, splitter or scroll_bar)
Re-exports§
pub use adapt::Adapt;
pub use adapt::AdaptWidget;
pub use adapt::AdaptWidgetAny;
pub use edit::EditBox;
pub use edit::EditField;
pub use edit::EditGuard;
Modules§
- adapt
- Adapter widgets (wrappers)
- dialog
- Dialog boxes
- edit
- The
EditField
andEditBox
widgets, plus supporting items - menu
- Menu widgets
Macros§
- aligned_
column - Make an aligned column widget
- aligned_
row - Make an aligned row widget
- column
- Make a column widget
- float
- Make a float widget
- format_
data - A
Text
widget which formats a value from input - format_
value - A
Text
widget which formats a value from input - grid
- Make a grid widget
- list
- Make a list widget
- row
- Make a row widget
Structs§
- Access
Label - A label supporting an access key
- Button
- A push-button with a generic label
- Check
Box - A bare check box (no label)
- Check
Button - A check button with label
- Combo
Box - A pop-up multiple choice menu
- Event
Config - A widget for configuring event config
- Filler
- A space filler
- Frame
- A frame around content
- Grid
- A generic grid widget
- Grip
Part - A draggable grip part
- Image
- An image with margins
- Label
- A text label
- List
- A generic row/column widget
- Mark
- A mark
- Mark
Button - A mark which is also a button
- NavFrame
- Navigation Frame wrapper
- Progress
Bar - A progress bar
- Radio
Box - A bare radio box (no label)
- Radio
Button - A radio button with label
- Scroll
Bar - A scroll bar
- Scroll
BarRegion - A scrollable region with bars
- Scroll
Bars - Scroll bar controls
- Scroll
Label - A static text label supporting scrolling and selection
- Scroll
Msg - Message from a
ScrollBar
- Scroll
Region - A scrollable region
- Scroll
Text - A dynamic text label supporting scrolling and selection
- Separator
- A separator
- Slider
- A slider
- Spinner
- A numeric entry widget with up/down arrows
- Splitter
- A resizable row/column widget
- Stack
- A stack of widgets
- Tab
- A tab
- TabStack
- A tabbed stack of widgets
- Text
- A text label (derived from data)
Enums§
Traits§
- Slider
Value - Requirements on type used by
Slider
- Spinner
Value - Requirements on type used by
Spinner
Type Aliases§
- BoxStack
- A stack of boxed widgets
- BoxTab
Stack - A tabbed stack of boxed widgets
- Column
- A generic column widget
- Row
- A generic row widget