[][src]Crate kas

KAS, the toolKit Abstraction Library

KAS is a GUI library. This crate provides the following:

  • the Widget trait family, with macros to implement them
  • a layout solver and event handling for widgets
  • building blocks including geom types and a draw API
  • some pre-build widgets: the widget module

See also these external crates:

This document is a reference manual. There is currently no tutorial, but the examples provide a starting point.

Modules

class

Class-specific widget traits

draw

Drawing APIs

event

Event handling

geom

Geometry data types

layout

Layout solver

macros

Library macros

prelude

KAS prelude

text

Abstractions over kas-text

widget

Widget library

Structs

AlignHints

Partial alignment information provided by the parent

CompleteAlignment

Provides alignment information on both axes along with ideal size

CoreData

Common widget data

Down

Fixed instantiation of Directional

Future

A future value, pending UI operation

Left

Fixed instantiation of Directional

Popup

A widget which escapes its parent's rect

Right

Fixed instantiation of Directional

Up

Fixed instantiation of Directional

WidgetId

Widget identifier

WindowId

Identifier for a window or pop-up

Enums

Align

Alignment of contents

Direction

Axis-aligned directions

ThemeAction

Return value of ThemeApi functions

TkAction

Action required after processing

Traits

Boxed

Provides a convenient .boxed() method on implementors

Directional

Trait over directional types

Layout

Positioning and drawing routines for widgets

LayoutData

Trait to describe the type needed by the layout implementation.

ThemeApi

Interface through which a theme can be adjusted at run-time

Widget

Widget trait

WidgetChildren

Listing of a widget's children

WidgetConfig

Widget configuration

WidgetCore

Base widget functionality

Window

Functionality required by a window