FrameBufferResizeEvent Class
Event representing a change in the framebuffer's size. More...
Declaration
Base class
| class | WindowEvent |
Public Constructors Index
| FrameBufferResizeEvent (util::Guid sourceGuid, int width, int height) noexcept | |
|
Constructs a `FrameBufferResizeEvent`. More... | |
| FrameBufferResizeEvent (util::Guid sourceGuid, int width, int height, uint64_t tag) noexcept | |
|
Constructs a `FrameBufferResizeEvent`. More... | |
Public Member Functions Index
| std::string | toString () const noexcept override |
Public Member Attributes Index
| const int | width |
|
The width of the framebuffer in pixels. More... | |
| const int | height |
|
The height of the framebuffer in pixels. More... | |
Description
Event representing a change in the framebuffer's size.
The event should be triggered whenever a change in the underlying framebuffer of a window is detected, indicating that the rendering context (e.g. OpenGL) might need adjustments. FramebufferResizeEvents carry the width and the height of the framebuffer.
Definition at line 29 of file FrameBufferResizeEvent.ixx.
Public Constructors
FrameBufferResizeEvent()
| inline noexcept |
Constructs a `FrameBufferResizeEvent`.
- Parameters
-
sourceGuid The Guid of the source of the event.
width The new width of the framebuffer.
height The new height of the framebuffer.
Definition at line 51 of file FrameBufferResizeEvent.ixx.
References height, helios::window::event::WindowEvent::sourceGuid and width.
FrameBufferResizeEvent()
| inline noexcept |
Constructs a `FrameBufferResizeEvent`.
- Parameters
-
sourceGuid The Guid of the source of the event.
width The new width of the framebuffer.
height The new height of the framebuffer.
tag A `uint64_t` tag for identifying/categorizing the event.
Definition at line 68 of file FrameBufferResizeEvent.ixx.
References height, helios::window::event::WindowEvent::sourceGuid, helios::event::Event::tag and width.
Public Member Functions
toString()
| inline noexcept virtual |
Definition at line 78 of file FrameBufferResizeEvent.ixx.
References height, helios::window::event::WindowEvent::sourceGuid, helios::event::Event::tag and width.
Public Member Attributes
height
|
The height of the framebuffer in pixels.
Definition at line 41 of file FrameBufferResizeEvent.ixx.
Referenced by FrameBufferResizeEvent, FrameBufferResizeEvent, helios::app::controller::BasicWindowRenderingController::onFrameBufferResize and toString.
width
|
The width of the framebuffer in pixels.
Definition at line 35 of file FrameBufferResizeEvent.ixx.
Referenced by FrameBufferResizeEvent, FrameBufferResizeEvent, helios::app::controller::BasicWindowRenderingController::onFrameBufferResize and toString.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.