Expand description
pushrod is a GUI library for Rust.
§Dependencies
Pushrod uses the following dependency:
ⓘ
[dependencies.sdl2]
version = "^0.32"
features = ["ttf", "image"]To use the crate in your project, add the following dependencies:
ⓘ
[dependencies]
rust-pushrod = "^0.4"This will pull in the latest version.
§Core Components
pushrod::render is the core rendering components, containing the Widget base class, and
drawing loop logic.
pushrod::widgets is the extended Widget component library.
Modules§
- layouts
layoutsis the core layout managers included withPushrod.- render
renderis the core rendering/event loop portion ofPushrod.- widgets
widgetsis a core rendering library used byPushrod, containing the default set ofWidgets.
Macros§
- default_
widget_ properties - This macro is used by
Widgetimplementations, which auto-injects getter code for theWidget’s properties. Since allWidgetimplementations share these functions, and must implement them locally, thismacroserves as a quick way to implement the same reused code automatically.