#include <vieport_resize_event.h>
Application viewports resize event class.
Definition at line 16 of file vieport_resize_event.h.
◆ viewport_resize_event()
scl::viewport_resize_event::viewport_resize_event |
( |
int |
Width, |
|
|
int |
Height, |
|
|
int |
ViewportId |
|
) |
| |
|
inline |
- Window resize vent constructor.
- Parameters
-
Width | - new width of window. |
Height | - new height of window. |
ViewportId | - id of resizeing viewport (zero viewport id is always window viewport). |
Definition at line 32 of file vieport_resize_event.h.
32 :
33 Width(Width), Height(Height), ViewportId(ViewportId) {}
◆ GetHeight()
u32 scl::viewport_resize_event::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetViewportId()
int scl::viewport_resize_event::GetViewportId |
( |
| ) |
const |
|
inline |
◆ GetWidth()
u32 scl::viewport_resize_event::GetWidth |
( |
| ) |
const |
|
inline |
◆ ToString()
std::string scl::viewport_resize_event::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
- Convert event to string (for debug).
- Parameters
-
- Returns
- string representation of event.
Reimplemented from scl::event.
Definition at line 48 of file vieport_resize_event.h.
49 {
50 std::stringstream ss;
51 ss <<
GetName() <<
": " << Width <<
", " << Height;
52 return ss.str();
53 }
virtual const char * GetName() const =0
The documentation for this class was generated from the following file: