Crate kas_widgets
source ·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
- Adapter widgets (wrappers)
- Dialog boxes
- Menu widgets
Macros
Structs
- A label supporting an access key
- A push-button with a generic label
- A bare check box (no label)
- A check button with label
- A pop-up multiple choice menu
- A widget for configuring event config
- A space filler
- A frame around content
- A generic grid widget
- A draggable grip part
- An image with margins
- A text label
- A generic row/column widget
- A mark
- A mark which is also a button
- Navigation Frame wrapper
- A progress bar
- A bare radio box (no label)
- A radio button with label
- A scroll bar
- A scrollable region with bars
- Scroll bar controls
- A static text label supporting scrolling and selection
- Message from a
ScrollBar
- A scrollable region
- A dynamic text label supporting scrolling and selection
- A separator
- A slider
- A numeric entry widget with up/down arrows
- A resizable row/column widget
- A stack of widgets
- A tab
- A tabbed stack of widgets
- A text label (derived from data)
Enums
- A message from a
GripPart
Traits
Functions
- Construct a
Label
which accepts any data
Type Aliases
- A column of boxed widgets
- A grid of boxed widgets
- A row/column of boxed widgets
- A row of boxed widgets
- A row/column of boxed widgets
- A stack of boxed widgets
- A tabbed stack of boxed widgets
- A generic column widget
- A generic row widget
- Label with
&'static str
as backing type - Text with
&'static str
as backing type - Label with
String
as backing type - Text with
String
as backing type