Expand description
KAS GUI Toolkit
This, the main KAS crate, is a wrapper over other crates designed to make content easily available while remaining configurable. The following crates (some optional, dependant on a feature flag) are re-exported by this crate:
kas_core
is re-export at the top-leveleasy-cast
is re-export ascast
kas_macros
is an extended version ofimpl-tools
, re-export at the top-levelkas_widgets
is re-export aswidgets
kas_resvg
is re-export asresvg
(resvg
ortiny-skia
feature)kas_view
is re-export asview
(view
feature)
Also refer to:
Modules§
- cast
- Type conversion, success expected
- classes
- Class-specific widget traits
- config
- Configuration items and utilities
- decorations
- Window title-bar and border decorations
- dir
- Direction types
- draw
- Draw APIs
- event
- Event handling
- geom
- Geometry data types
- layout
- Layout utilities
- messages
- Standard messages
- prelude
- KAS prelude
- resvg
resvg
ortiny-skia
Canvas
andSvg
widgets overtiny-skia
andresvg
- runner
Runner
, platforms and backends- text
- Text functionality
- theme
- Theme API and sample implementations
- util
- Utilities
- view
view
- View widgets and shared data
- widgets
- KAS widget library
Macros§
- cell_
collection - Generate an anonymous struct which implements
kas::CellCollection
- collection
- Generate an anonymous struct which implements
kas::Collection
- impl_
anon - Construct a single-instance struct
- impl_
scope - Scope supporting
impl Self
and advanced attribute macros - widget_
index - Index of a child widget
Structs§
- Action
- Action required after processing
- Core
Data - Common widget data
- Icon
- An icon used for the window titlebar, taskbar, etc.
- Id
- Widget identifier
- Node
- Type-erased widget with input data
- Popup
- A popup (e.g. menu or tooltip)
- Widget
Path Iter - Iterator over
Id
path components - Window
- The window widget
- Window
Id - Identifier for a window or pop-up
Enums§
- Scroll
BarMode - Scroll bar mode
- Window
Command - Commands supported by the
Window
Traits§
- Cell
Collection - A collection with attached cell info
- Collection
- A collection of (child) widgets
- Events
- Widget event-handling
- HasId
- Types supporting conversion to
Id
- HasScroll
Bars - Scroll bar control
- Layout
- Positioning and drawing routines for
Widget
s - Layout
Ext - Extension trait over widgets
- Scrollable
- Additional functionality on scrollable widgets
- Widget
- The Widget trait
Attribute Macros§
- autoimpl
- A variant of the standard
derive
macro - extends
- A trait implementation is an extension over some base
- impl_
default - Implement
Default
- widget
- Attribute to implement the
kas::Widget
family of traits