[−][src]Crate kas
KAS, the toolKit Abstraction Library
KAS is a GUI library. This crate provides the following:
- a widget model:
WidgetCore
,Layout
,Widget
,event::Handler
traits - a
layout
engine (mostly configured throughmacros
) - a modular
draw
API - widget
event
handling - some data types:
geom
,Align
,Direction
- some pre-build widgets:
widget
module
See also these external crates:
Modules
class | Class-specific widget traits |
draw | Drawing API |
event | Event handling |
geom | Geometry data types |
layout | Layout solver |
macros | Library macros |
widget | Widgets |
Structs
AlignHints | Partial alignment information provided by the parent |
CompleteAlignment | Provides alignment information on both axes along with ideal size |
CoreData | Common widget data |
Horizontal | Fixed instantiation of |
Vertical | Fixed instantiation of |
WidgetId | Widget identifier |
WindowId | Identifier for a window added to a toolkit |
Enums
Align | Alignment of contents |
Direction | Horizontal / vertical direction |
ThemeAction | Return value of |
TkAction | Toolkit actions needed after event handling, if any. |
Traits
Directional | Trait over directional types |
Layout | Positioning and drawing routines for widgets |
LayoutData | Trait to describe the type needed by the layout implementation. |
ThemeApi | Interface through which a theme can be adjusted at run-time |
Widget | A widget is a UI element. |
WidgetCore | Base widget functionality |
Window | A window is a drawable interactive region provided by windowing system. |