Crate kas_core

Source
Expand description

KAS GUI core

Re-exports:

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 core prelude
runner
Runner, platforms and backends
text
Text functionality
theme
Theme API and sample implementations
util
Utilities

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
CoreData
Common widget data
Iconwinit
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)
WidgetPathIter
Iterator over Id path components
Window
The window widget
WindowId
Identifier for a window or pop-up

Enums§

ScrollBarMode
Scroll bar mode
WindowCommand
Commands supported by the Window

Traits§

CellCollection
A collection with attached cell info
Collection
A collection of (child) widgets
Events
Widget event-handling
HasId
Types supporting conversion to Id
HasScrollBars
Scroll bar control
Layout
Positioning and drawing routines for Widgets
LayoutExt
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