[][src]Module kas::prelude

KAS prelude

This module allows convenient importation of common unabiguous items:

use kas::prelude::*;

This prelude may be more useful when implementing widgets than when simply using widgets in a GUI.

Re-exports

pub use kas::event::VoidMsg;
pub use kas::geom::Coord;
pub use kas::geom::Rect;
pub use kas::geom::Size;
pub use kas::layout::AxisInfo;
pub use kas::macros::*;
pub use kas::string::AccelString;
pub use kas::string::CowString;
pub use kas::string::CowStringL;
pub use kas::string::LabelString;
pub use kas::class;
pub use kas::draw;
pub use kas::event;
pub use kas::geom;
pub use kas::layout;
pub use kas::widget;

Structs

AlignHints

Partial alignment information provided by the parent

CoreData

Common widget data

Manager

Manager of event-handling and toolkit actions

ManagerState

Event manager state

Margins

Margin sizes

SizeRules

Widget sizing information

WidgetId

Widget identifier

Enums

Align

Alignment of contents

Direction

Axis-aligned directions

Event

Events addressed to a widget

Response

Response type from Handler::handle.

StretchPolicy

Policy for stretching widgets beyond ideal size

TkAction

Action required after processing

Traits

Boxed

Provides a convenient .boxed() method on implementors

Directional

Trait over directional types

DrawHandle

Handle passed to objects during draw and sizing operations

Handler

Event handling for a Widget

Layout

Positioning and drawing routines for widgets

LayoutData

Trait to describe the type needed by the layout implementation.

SendEvent

Event routing

SizeHandle

Handle passed to objects during draw and sizing operations

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