9 unstable releases
0.14.2 | Dec 12, 2023 |
---|---|
0.14.1 | Dec 12, 2023 |
0.14.0-alpha | Sep 8, 2023 |
0.13.0 | Feb 28, 2023 |
0.10.1 | Sep 7, 2021 |
#346 in GUI
69 downloads per month
Used in 3 crates
1MB
23K
SLoC
KAS Widgets
This is KAS's widget library.
For documentation of feature flags, see Cargo.toml.
Copyright and Licence
The COPYRIGHT file includes a list of contributors who claim copyright on this project. This list may be incomplete; new contributors may optionally add themselves to this list.
The KAS library is published under the terms of the Apache License, Version 2.0. You may obtain a copy of this licence from the LICENSE file or on the following webpage: https://www.apache.org/licenses/LICENSE-2.0
lib.rs
:
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)
Dependencies
~2.6–4MB
~76K SLoC