Crate gui

source ·
Expand description

A crate containing the basic infrastructure for user interfaces. It strives for being completely agnostic of the underlying system and its rendering machinery as well as event dispatching.

Structs

A bounding box representing the area that a widget may occupy. A bounding box always describes a rectangular area. The origin [x=0, y=0] is typically assumed to reside in the upper left corner of the screen, but it is really up to the individual Renderer to make do with whatever is provided.
An Id uniquely representing a widget.
A Ui is a container for related widgets.

Enums

An event potentially comprising multiple event objects.
An event that can be handled by a Handleable.
An object representing a key on the key board.
An event that the Ui can process.
An event that the Ui did not process.

Traits

A capability allowing for various widget related operations.
A trait for chaining of events.
A trait representing an object capable of handling events.
An Object represents a first-class entity in a UI.
A trait for chaining of optional events.
A trait representing a renderable object.
An abstraction for objects used for rendering widgets.
A widget as used by a Ui.

Type Definitions

An event potentially comprising multiple UiEvent objects.
An event potentially comprising multiple UnhandledEvent objects.