10 releases
0.1.9 | Oct 28, 2019 |
---|---|
0.1.8 | Oct 27, 2019 |
0.1.0 | Sep 30, 2019 |
#68 in #sdl2
28 downloads per month
54KB
714 lines
rust-pushrod-render
Pushrod Rendering Engine
Purpose
This is the rendering system that is used by the Pushrod
library. This library is intended to be used with the
rust-pushrod
library, which contains the Widget
library and so much more.
Status
- Create
Widget
Skeleton library- Create
BaseWidget
that draws a border with a color and fills the background - Create
WidgetConfig
that storesWidget
configuration data - Create
CallbackRegistry
to storeWidget
callback actions onEvent
s - Modify widget macro to return
CallbackRegistry
automatically
- Create
- Create Widget Cache
- Add draw function to handle drawing of widgets in the cache
- Implement ability to hide/show widgets
- Implement ability to enable/disable widgets
- When
Widget
is hidden, do not process events for thatWidget
. - When
Widget
is disabled, do not process mouse events for thatWidget
, but allow drawing. - Modify draw so that it walks the
Widget
tree - Add ability to look up widgets by ID and name
- Add sample widgets to demo
- Demo should use
BaseWidget
with mouse over, exit, move, and click
- Demo should use
- Documentation
Prerequisites for pushrod-render
Library | Version |
---|---|
SDL2 | 0.32 |
Dependencies
~17MB
~359K SLoC