BasicWindowRenderingController Class
Basic implementation of a window rendering controller. More...
Declaration
Base class
| class | WindowRenderingController |
|
Abstract base controller for handling window related events. More... | |
Public Constructors Index
| BasicWindowRenderingController (helios::window::Window &window) | |
|
Constructs a new BasicWindowRenderingController instance. More... | |
Public Member Functions Index
| void | onFrameBufferResize (const helios::window::event::FrameBufferResizeEvent &e) override |
|
Handles framebuffer resize events. More... | |
| void | subscribeTo (helios::event::Dispatcher &dispatcher) override |
|
Registers this controller to the framebuffer resize event. More... | |
| bool | init () override |
|
Initializes this controller. More... | |
| std::string | toString () const noexcept override |
Private Member Attributes Index
| helios::window::Window & | window_ |
|
Reference to the window managed by this controller. More... | |
Description
Basic implementation of a window rendering controller.
This controller handles framebuffer resize events and manages rendering for a single window instance.
Definition at line 27 of file BasicWindowRenderingController.ixx.
Public Constructors
BasicWindowRenderingController()
| inline explicit |
Constructs a new BasicWindowRenderingController instance.
- Parameters
-
window Reference to the window to be managed by this controller.
Definition at line 41 of file BasicWindowRenderingController.ixx.
Public Member Functions
init()
| inline virtual |
Initializes this controller.
- Returns
True if initialization succeeded, otherwise false.
Definition at line 76 of file BasicWindowRenderingController.ixx.
onFrameBufferResize()
| inline virtual |
Handles framebuffer resize events.
- Parameters
-
e The framebuffer resize event containing the new dimensions.
Definition at line 50 of file BasicWindowRenderingController.ixx.
References helios::window::event::FrameBufferResizeEvent::height, helios::app::controller::WindowRenderingController::logger_ and helios::window::event::FrameBufferResizeEvent::width.
Referenced by subscribeTo.
subscribeTo()
| inline virtual |
Registers this controller to the framebuffer resize event.
- Parameters
-
dispatcher The event dispatcher to subscribe to.
- See Also
Definition at line 62 of file BasicWindowRenderingController.ixx.
References helios::app::controller::WindowRenderingController::logger_, onFrameBufferResize and helios::event::Dispatcher::subscribe.
toString()
| inline nodiscard noexcept virtual |
Definition at line 80 of file BasicWindowRenderingController.ixx.
Private Member Attributes
window_
|
Reference to the window managed by this controller.
Definition at line 33 of file BasicWindowRenderingController.ixx.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.