Expand description
Application layer.
The Application trait defines the associated type of generic callback ID
that can be converted with concrete callback IDs and dereferenced into
associated Callback functions.
A Callback function takes a mutable reference to the Application, a
model data component (possibly empty), and an interface node ID.
Callbacks are submitted to the Application as Events in the output of
the Interface::update() function.
Additional Events notify the Application of changes in model data
components. It is left to application code to handle Events, including
callbacks, and is free to ignore them.
Applications can also optionally define custom controls for handling input
in interface widgets (see interface::controller::controls module).
Structs§
- Callback
Id - Concrete callback representation
- Default
- A default application definition with
Nilassociated callback types
Enums§
- Nil
- Type representing no callbacks
Traits§
- Application
- Implements a type context of application callbacks and control callbacks
Functions§
- callback
- Map a concrete callback ID into its call-able type parameter.
Type Aliases§
- Callback
- A parameterized application callback function signature
- Callback
Repr Type - Primitive index type of callback IDs