Crate kas_core

source ·
Expand description

KAS GUI core

This core library provides:

  • the Widget trait family, along with the widget macro to implement them
  • high-level themable and mid-level draw APIs
  • event handling code
  • geom-etry types and widget layout solvers

Crate easy-cast: Conv, Cast traits and related functionality (always included), available as kas::cast.

Re-exports

pub extern crate easy_cast as cast;

Modules

Class-specific widget traits
configconfig
Configuration read/write utilities
Direction types
Draw APIs
Event handling
Geometry data types
Layout utilities
Shared data models
KAS core prelude
Text functionality
Theme interface
Utilities

Macros

Scope supporting impl Self and advanced attribute macros
Construct a single-instance struct
Index of a child widget

Structs

Common widget data
An icon used for the window titlebar, taskbar, etc.
A widget which escapes its parent’s rect
Action required after processing
Widget identifier
Iterator over WidgetId path components
Identifier for a window or pop-up

Enums

Scroll bar mode

Traits

Scroll bar control
Positioning and drawing routines for Widgets
Additional functionality on scrollable widgets
The Widget trait
Listing of a Widget’s children
Base functionality for Widgets
Extension trait over widgets
Functionality required by a window

Attribute Macros

A variant of the standard derive macro
A trait implementation is an extension over some base
Implement Default
Attribute to implement the kas::Widget family of traits