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_coreis re-export at the top-leveleasy-castis re-export ascastkas_macrosis an extended version ofimpl-tools, re-export at the top-levelkas_widgetsis re-export aswidgetskas_imageis re-export asimage(svgorcanvasfeature)kas_viewis re-export asview(viewfeature)
Also refer to:
Modules§
- cast
- Type conversion, success expected
- config
- Configuration items and utilities
- dir
- Direction types
- draw
- Draw APIs
- event
- Event handling
- geom
- Geometry data types
- image
imageorsvgorcanvas CanvasandSvgwidgets overtiny-skiaandresvg- layout
- Layout utilities
- messages
- Standard messages
- prelude
- KAS prelude
- runner
Runner, platforms and backends- text
- Text functionality
- theme
- Theme API and sample implementations
- util
- Utilities
- view
view - Views
- widgets
- KAS widget library
- window
- Special window widgets
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 Selfand advanced attribute macros - widget_
core - Type of the widget’s core
- widget_
index - Index of a child widget
Structs§
- Action
Moved - Action: widget has moved/opened/closed
- Action
Redraw - Action: content must be redrawn
- Action
Resize - Action: widget must be resized
- Child
Indices - An opaque type representing a set of
usizeindices - Child
Indices Iter - Owning iterator over
ChildIndices - Config
Action - Action: configuration data updates must be applied
- Id
- Widget identifier
- Node
- Type-erased widget with input data
- Widget
Path Iter - Iterator over
Idpath components
Enums§
- Role
- Describes a widget’s purpose and capabilities
- Text
OrSource - A copy-on-write text value or a reference to another source
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 - Layout
- Positioning and drawing routines for
Widgets - Macro
Defined Layout - Macro-defined layout
- RoleCx
- Context through which additional role properties may be specified
- Role
CxExt - Convenience methods over a
RoleCx - Tile
- A sizable, drawable, identifiable, introspectible 2D tree object
- TileExt
- Extension trait over widgets
- Viewport
- Layout routines for scrollable content
- Widget
- The Widget trait
- Widget
Core - Operations supported by a widget core
- Widget
Core Rect - Extension for a widget core with a
Rect