Expand description
This is the Callbacks mechanism for each Widget, providing a way to perform a function when
an action is intercepted (ie. mouse enter, exit, move, etc.)
Structs§
- Callback
Registry - This is a registry that contains a series of
FnMutdefinitions for actions that can be applied to aWidget. These can vary from a screen refresh (tick), to a mouse move event, etc. Each callback gains access to the list ofWidgetContainerobjects stored by the cache. This is important in case you wish to modify otherWidgets on the screen as a result of some action that took place.
Functions§
Type Aliases§
- Function
Click Parameters Type - This is an
FnMutthat takes a button click ID, the number of clicks, the click state (trueindicating the click was pressed,falseotherwise), returning a mutable reference to the currentWidget, and borrowing theWidgetContainerandLayoutContainerlists. - Function
NoParameters Type - This is an
FnMuttype that takes no additional parameters, returning a mutable reference to the currentWidget, and borrowing theWidgetContainerandLayoutContainerlists. - Function
Point Parameters Type - This is an
FnMutthat takes aPointas aVec<i32>of points: X and Y, returning a mutable reference to the currentWidget, and borrowing theWidgetContainerandLayoutContainerlists.