Crate kas

Source
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:

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
resvgresvg or tiny-skia
Canvas and Svg widgets over tiny-skia and resvg
runner
Runner, platforms and backends
text
Text functionality
theme
Theme API and sample implementations
util
Utilities
viewview
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
CoreData
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)
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