Public Types |
Public Member Functions |
Public Attributes |
Protected Member Functions |
List of all members
Graphics::Screen Class Reference
#include <Screen.h>
Collaboration diagram for Graphics::Screen:
Public Types | |
| using | DrawMethod = Delegate< bool(SceneObject &scene)> |
| Invoked when screen is drawn. More... | |
| using | ControlMethod = Delegate< bool(ControlEvent event, Control &control)> |
| Invoked in response to user input. More... | |
Public Member Functions | |
| Screen (RenderTarget &target) | |
| void | input (InputEvent event, Point pos) |
| void | update (bool fullRedraw=false) |
| void | onDraw (DrawMethod method) |
| void | onControl (ControlMethod method) |
Public Attributes | |
| Control::List | controls |
Protected Member Functions | |
| virtual void | draw (SceneObject &scene) |
| virtual void | handleControlEvent (ControlEvent event, Control &ctrl) |
Member Typedef Documentation
◆ ControlMethod
| using Graphics::Screen::ControlMethod = Delegate<bool(ControlEvent event, Control& control)> |
Invoked in response to user input.
- Parameters
-
event control
- Return values
-
bool Return true to continue default processing
◆ DrawMethod
| using Graphics::Screen::DrawMethod = Delegate<bool(SceneObject& scene)> |
Invoked when screen is drawn.
- Parameters
-
scene Where to compose screen
- Return values
-
bool Return true to continue default processing
Constructor & Destructor Documentation
◆ Screen()
|
inline |
Member Function Documentation
◆ draw()
|
protectedvirtual |
◆ handleControlEvent()
|
protectedvirtual |
◆ input()
| void Graphics::Screen::input | ( | InputEvent | event, |
| Point | pos | ||
| ) |
◆ onControl()
|
inline |
◆ onDraw()
|
inline |
◆ update()
| void Graphics::Screen::update | ( | bool | fullRedraw = false | ) |
Member Data Documentation
◆ controls
| Control::List Graphics::Screen::controls |
The documentation for this class was generated from the following file:
1.9.1