Expand description
KAS GUI core
Re-exports:
kas::cast
is a re-export ofeasy-cast
impl_self
,impl_scope!
,impl_anon!
,autoimpl
andimpl_default
are re-implementations ofimpl-tools
macros
Modules§
- cast
- Type conversion, success expected
- config
- Configuration items and utilities
- dir
- Direction types
- draw
- Draw APIs
- event
- Event handling
- geom
- Geometry data types
- layout
- Layout utilities
- messages
- Standard messages
- prelude
- KAS core prelude
- runner
- Runner, platforms and backends
- text
- Text functionality
- theme
- Theme API and sample implementations
- util
- Utilities
- widgets
- Kas core widgets
- 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 Self
and advanced attribute macros - widget_
index - Index of a child widget
- widget_
set_ rect - Macro to set the
rect
stored in the widget core
Structs§
- Action
- Action required after processing
- Child
Indices - An opaque type indexible over
usize
- Child
Indices Iter - Owning iterator over
ChildIndices
- Id
- Widget identifier
- Node
- Type-erased widget with input data
- Widget
Path Iter - Iterator over
Id
path 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
Widget
s - Macro
Defined Layout - Macro-defined layout
- RoleCx
- Context through which additional role properties may be specified
- Role
CxExt - Convenience methods over a
RoleCx
- Scrollable
- Additional functionality on scrollable widgets
- Tile
- A sizable, drawable, identifiable, introspectible 2D tree object
- TileExt
- Extension trait over 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
- impl_
self - Implement a type with
impl Self
syntax - layout
- Provide a default implementation of the
Layout
trait for a widget - widget
- Attribute to implement the
kas::Widget
family of traits