Module unsegen::widget::widget[][src]

Expand description

The Widget abstraction and some related types.

Structs

Centered

Center the widget according to the specified maximum demand within the supplied window. This is only useful if the widget has a defined maximum size and the window is larger than that.

Demand

A one dimensional description of spatial demand of a widget.

Demand2D

A two dimensional (rectangular) Demand (composed of Demands for columns and rows).

RenderingHints

Hints that can be used by applications to control how Widgets are rendered and used by Widgets to deduce how to render to best show the current application state.

WithDemand

Alter the reported demand of the widget. This can be useful, for example, to force a widget to assume all space in the window or to artificially restrict the size of a widget.

WithWindow

Alter the window before letting the widget draw itself in it.

Enums

Blink

A value from a periodic boolean signal.

Traits

Widget

A widget is something that can be drawn to a window.

WidgetExt

An extension trait to Widget which access to convenience methods that alters the behavior of the wrapped widgets.

Type Definitions

ColDemand

Horizontal Demand

RowDemand

Vertical Demand