Module suzy::widget [−][src]
This module contains all the types associated with defining custom widgets.
Modules
layout | This module provides shorthand to create layout groups to organize widgets in common configurations. |
Structs
Watched | This represents some value which will be interesting to watch. Watcher functions that reference this value will be re-run when this value changes. |
Widget | A basic structure to wrap some data and turn it into a widget. |
WidgetExtra | This type is provided to widget event methods, providing access to the widget’s Rect and other functionality. |
WidgetId | A unique id for a widget |
WidgetRect | A version of Rect where each dimension will trigger watching functions |
Traits
AnonWidget | A trait which represents a Widget with an unknown content type. |
WidgetChildReceiver | An internal iterator style receiver. Types of this trait are passed to
|
WidgetContent | This trait provides the “glue” between the data you define in custom
widgets and the behavior suzy defines for widgets. There are three
required methods: |
WidgetGraphic | A trait which represents a graphic a widget might contain. |
WidgetGraphicReceiver | An internal iterator style receiver. Types of this trait are passed to
|
WidgetInit | Instances of this trait are provided to
|