ezEngine Release 26.3
Loading...
Searching...
No Matches
ezWindowEvent Struct Reference

#include <Window.h>

Public Types

enum  Type : ezUInt32 {
  WindowDestruction , VisibilityChanged , FocusChanged , SizeChanged ,
  PositionChanged , CloseButtonClicked , UserEvent = 0xFF
}
 

Public Attributes

Type m_Type
 
ezWindowPlatformSharedm_pWindow = nullptr
 
ezInt32 m_iPayload1 = 0
 
ezInt32 m_iPayload2 = 0
 

Detailed Description

Broadcast when various things happen to a window.

Subscribe through the WindowEvents() function to be notified.

Member Enumeration Documentation

◆ Type

enum ezWindowEvent::Type : ezUInt32
Enumerator
WindowDestruction 

Sent shortly before the window gets destroyed.

VisibilityChanged 

visibility state is in m_iPayload1 (0 or 1)

FocusChanged 

focus state is in m_iPayload1 (0 or 1)

SizeChanged 

new size width/height in m_iPayload1/m_iPayload2

PositionChanged 

new position x/y in m_iPayload1/m_iPayload2


The documentation for this struct was generated from the following file: