[][src]Module pushrod::render::callbacks

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

CallbackRegistry

This is a registry that contains a series of FnMut definitions for actions that can be applied to a Widget. These can vary from a screen refresh (tick), to a mouse move event, etc. Each callback gains access to the list of WidgetContainer objects stored by the cache. This is important in case you wish to modify other Widgets on the screen as a result of some action that took place.

Functions

widget_id_for_name

Type Definitions

FunctionClickParametersType

This is an FnMut that takes a button click ID, the number of clicks, the click state (true indicating the click was pressed, false otherwise), returning a mutable reference to the current Widget, and borrowing the WidgetContainer and LayoutContainer lists.

FunctionNoParametersType

This is an FnMut type that takes no additional parameters, returning a mutable reference to the current Widget, and borrowing the WidgetContainer and LayoutContainer lists.

FunctionPointParametersType

This is an FnMut that takes a Point as a Vec<i32> of points: X and Y, returning a mutable reference to the current Widget, and borrowing the WidgetContainer and LayoutContainer lists.