Module widget_cache

Source
Expand description

This is the caching object that stores a list of Widgets that the Pushrod engine manages.

Structs§

WidgetCache
This is the WidgetCache struct, which contains a list of Widgets that are managed by the Pushrod Engine. Widget IDs are automatically generated by the WidgetCache, which automatically assigns the Widget ID at the time it’s added to the cache. Parent IDs must already exist, otherwise, an error is thrown at the time the Widget is attempted to be added. Widget IDs always start at 1.
WidgetContainer
This is a container that stores information about a Widget that will be drawn on the screen. It stores the Widget object, the actual point of origin inside the Window (as a Vec<i32> of X and Y points), the parent ID of this Widget, if it is being added as a child.