Event dispatched when window state changed.
More...
#include <EventWindow.hpp>
|
| enum class | Type {
Resized = 0
, FramebufferResized
, Moved
, FocusReceived
,
FocusLost
, Minimized
, Maximized
, Restored
,
PixelRatioChanged
, CloseRequested
, Unknown
} |
| |
Event dispatched when window state changed.
◆ Type
Type of window event
| Enumerator |
|---|
| Resized | Triggered when window size changes
|
| FramebufferResized | Triggered when window framebuffer size changes
|
| Moved | Triggered when window position changes
|
| FocusReceived | Triggered when window receives input focus
|
| FocusLost | Triggered when window loses input focus
|
| Minimized | Triggered when the window is minimized (iconified)
|
| Maximized | Triggered when the window is expanded to cover the current screen
|
| Restored | Triggered when the window leaves minimized or maximized state
|
| PixelRatioChanged | Triggered when the pixel ration of the window is changed (usually happens when the window is moved to another monitor)
|
| CloseRequested | Triggered when the user wants to close the window
|
| Unknown | Unknown event
|
◆ EventWindow()
| BRK_API EventWindow::EventWindow |
( |
| ) |
|
|
default |
◆ ~EventWindow()
| BRK_API EventWindow::~EventWindow |
( |
| ) |
|
|
overridedefault |
◆ GetEventType()
◆ GetEventTypeStatic()
| const EventType & EventWindow::GetEventTypeStatic |
( |
| ) |
|
|
static |
◆ GetFocus()
| bool EventWindow::GetFocus |
( |
| ) |
const |
◆ GetFramebufferSize()
| const Size2i & EventWindow::GetFramebufferSize |
( |
| ) |
const |
◆ GetPixelRatio()
| const Vec2f & EventWindow::GetPixelRatio |
( |
| ) |
const |
◆ GetPosition()
| const Point2i & EventWindow::GetPosition |
( |
| ) |
const |
◆ GetType()
◆ GetWindow()
| const Ref< Window > & EventWindow::GetWindow |
( |
| ) |
const |
◆ GetWindowSize()
| const Size2i & EventWindow::GetWindowSize |
( |
| ) |
const |
◆ SetFocus()
| void EventWindow::SetFocus |
( |
bool |
focus | ) |
|
◆ SetFramebufferSize()
| void EventWindow::SetFramebufferSize |
( |
const Size2i & |
size | ) |
|
◆ SetPixelRatio()
| void EventWindow::SetPixelRatio |
( |
const Vec2f & |
ratio | ) |
|
◆ SetPosition()
| void EventWindow::SetPosition |
( |
const Point2i & |
position | ) |
|
◆ SetType()
| void EventWindow::SetType |
( |
Type |
type | ) |
|
◆ SetWindow()
| void EventWindow::SetWindow |
( |
Ref< Window > |
window | ) |
|
◆ SetWindowSize()
| void EventWindow::SetWindowSize |
( |
const Size2i & |
size | ) |
|
The documentation for this class was generated from the following files: