Expand description
render is the core rendering/event loop portion of Pushrod.
Modules§
- callbacks
- This is the
Callbacksmechanism for eachWidget, providing a way to perform a function when an action is intercepted (ie. mouse enter, exit, move, etc.) - canvas_
helper - This is the
CanvasHelpertrait that is used to help draw against aCanvas. - engine
- This is the
Enginethat is used to dispatch events from the screen to a corresponding list ofWidgets in aWindow. This is the main event loop. - layout
- This is a layout manager description module, describing rules for
Layoutmanagers to be used in the system, and havingWidgets added to them. - layout_
cache - This is a caching object that stores a container of
Layoutobjects, 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, theTexturestored within is used for blitting to the screen. - widget
- This is the
WidgetandBaseWidgetdefinitions forWidgetobjects to be defined by thepushrodproject, and other crates that may define or create their ownWidgets. - 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
PointsVecfor X position. - POINT_Y
- Quick reference in
PointsVecfor Y position. - SIZE_
HEIGHT - Quick reference in
SizeVecfor height. - SIZE_
WIDTH - Quick reference in
SizeVecfor width.
Functions§
- inverse_
color - Calculates the inverse of a color.
- make_
points - Convenience method to create a
Pointstype. - make_
points_ origin - Convenience method to create a
Pointstype at origin coordinates (0, 0) - make_
size - Convenience method to create a
Sizetype.