Skip to main content

Crate kas_core

Crate kas_core 

Source
Expand description

KAS GUI core

Re-exports:

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_core
Type of the widget’s core
widget_index
Index of a child widget

Structs§

ActionMoved
Action: widget has moved/opened/closed
ActionRedraw
Action: content must be redrawn
ActionResize
Action: widget must be resized
ChildIndices
An opaque type representing a set of usize indices
ChildIndicesIter
Owning iterator over ChildIndices
ConfigAction
Action: configuration data updates must be applied
Id
Widget identifier
Node
Type-erased widget with input data
WidgetPathIter
Iterator over Id path components

Enums§

Role
Describes a widget’s purpose and capabilities
TextOrSource
A copy-on-write text value or a reference to another source

Traits§

CellCollection
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
MacroDefinedLayout
Macro-defined layout
RoleCx
Context through which additional role properties may be specified
RoleCxExt
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
WidgetCore
Operations supported by a widget core
WidgetCoreRect
Extension for a widget core with a Rect

Attribute Macros§

autoimpl
A variant of the standard derive macro
extends
A limited form of class inheritance
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