XII Release 0.1.0
Loading...
Searching...
No Matches
xiiWindowEvent Struct Reference

#include <Window.h>

Classes

union  Payload

Public Types

enum  Type : xiiUInt8 {
  WindowDestruction = 0U , VisibilityChanged , FocusChanged , SizeChanged ,
  PositionChanged , CloseButtonClicked , UserEvent = 0xFFU
}

Public Attributes

Type m_Type
class xiiWindow * m_pWindow = nullptr
union xiiWindowEvent::Payload m_Payload

Detailed Description

Broadcast when various things happen to a window.

Subscribe through the WindowEvents() function to be notified.

Member Enumeration Documentation

◆ Type

enum xiiWindowEvent::Type : xiiUInt8
Enumerator
WindowDestruction 

This is broadcast when a window is about to be destroyed. The window is still valid at this point, but will become invalid after the event has been processed.

VisibilityChanged 

This is broadcast when a window's visibility changes, e.g., when it is minimized or restored.

FocusChanged 

This is broadcast when a window's focus state changes, e.g., when it is activated or deactivated.

SizeChanged 

This is broadcast when a window's size changes.

PositionChanged 

This is broadcast when a window's position changes.

CloseButtonClicked 

This is broadcast when the user clicks the close button of a window. Note that this event is not guaranteed to be triggered for all platforms or window modes, e.g., it may not be triggered for fullscreen windows.


The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/Core/System/Window.h