ReXGlue SDK
Loading...
Searching...
No Matches
rex::ui::UISetupEvent Class Reference

#include <rex/ui/ui_event.h>

Inheritance diagram for rex::ui::UISetupEvent:
[legend]

Public Member Functions

 UISetupEvent (Type type, bool is_initial_setup=false)
bool IsInitialSetup () const
Public Member Functions inherited from rex::ui::UIEvent
 UIEvent (Type type)
Type GetType () const
template<typename T>
const T * As () const

Static Public Member Functions

static constexpr bool Carries (Type type)

Additional Inherited Members

Public Types inherited from rex::ui::UIEvent
enum class  Type : u8 {
  kOpened , kDPIChanged , kMonitorUpdate , kMinimized ,
  kRestored , kClosing , kFileDrop , kResize ,
  kClose , kFocus , kTouch
}

Detailed Description

Carries the setup state for the window opening, DPI, resize, focus and monitor events.

Constructor & Destructor Documentation

◆ UISetupEvent()

rex::ui::UISetupEvent::UISetupEvent ( Type type,
bool is_initial_setup = false )
inline

Creates a setup event.

Parameters
typeOpened, DPIChanged, Resize, Focus or MonitorUpdate.
is_initial_setupTrue when the window is opening.

Member Function Documentation

◆ Carries()

constexpr bool rex::ui::UISetupEvent::Carries ( Type type)
inlinestaticconstexpr

Reports whether this class carries a type.

Returns
True for Opened, DPIChanged, Resize, Focus and MonitorUpdate.

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