Module render

Source
Expand description

render is the core rendering/event loop portion of Pushrod.

Modules§

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.)
canvas_helper
This is the CanvasHelper trait that is used to help draw against a Canvas.
engine
This is the Engine that is used to dispatch events from the screen to a corresponding list of Widgets in a Window. This is the main event loop.
layout
This is a layout manager description module, describing rules for Layout managers to be used in the system, and having Widgets added to them.
layout_cache
This is a caching object that stores a container of Layout objects, managed by the Pushrod engine.
texture_cache
This is a caching object that stores Textures for fonts and images.
texture_store
This is a store used by Widgets for drawing against. Once the drawing is complete, the Texture stored within is used for blitting to the screen.
widget
This is the Widget and BaseWidget definitions for Widget objects to be defined by the pushrod project, and other crates that may define or create their own Widgets.
widget_cache
This is the caching object that stores a list of Widgets that the Pushrod engine manages.
widget_config
This is a configuration object that stores information about Widgets.

Constants§

POINT_X
Quick reference in Points Vec for X position.
POINT_Y
Quick reference in Points Vec for Y position.
SIZE_HEIGHT
Quick reference in Size Vec for height.
SIZE_WIDTH
Quick reference in Size Vec for width.

Functions§

inverse_color
Calculates the inverse of a color.
make_points
Convenience method to create a Points type.
make_points_origin
Convenience method to create a Points type at origin coordinates (0, 0)
make_size
Convenience method to create a Size type.

Type Aliases§

Points
This is a type that defines two points: X and Y coordinates.
Size
This is a type that defines two size: width and height.