GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::WindowHolder Class Referencefinal

Provides runMainLoop for top level window. More...

#include <WindowHolder.h>

Public Member Functions

 WindowHolder (std::unique_ptr< BaseComposite > &&compositeWindow, bool unregisterClass=false) noexcept
 
template<std::derived_from< BaseComposite > T>
T * get ()
 
template<std::derived_from< BaseComposite > T>
const T * get () const
 
BaseCompositeget ()
 
const BaseCompositeget () const
 
int runMainLoop (const std::vector< uint32_t > &registeredHotkeyIds={})
 Process messages. Must be called after initialization.
 
 ~WindowHolder ()
 

Friends

class BaseDialogBox
 

Detailed Description

Provides runMainLoop for top level window.

Definition at line 9 of file WindowHolder.h.

Constructor & Destructor Documentation

◆ WindowHolder()

gui_framework::WindowHolder::WindowHolder ( std::unique_ptr< BaseComposite > && compositeWindow,
bool unregisterClass = false )
noexcept
Parameters
compositeWindow
clearClassUnregister class after window destroy

◆ ~WindowHolder()

gui_framework::WindowHolder::~WindowHolder ( )

Definition at line 102 of file WindowHolder.cpp.

Member Function Documentation

◆ get() [1/4]

template<std::derived_from< BaseComposite > T>
T * gui_framework::WindowHolder::get ( )

Definition at line 44 of file WindowHolder.h.

◆ get() [2/4]

BaseComposite * gui_framework::WindowHolder::get ( )

Definition at line 28 of file WindowHolder.cpp.

◆ get() [3/4]

template<std::derived_from< BaseComposite > T>
const T * gui_framework::WindowHolder::get ( ) const

Definition at line 50 of file WindowHolder.h.

◆ get() [4/4]

const BaseComposite * gui_framework::WindowHolder::get ( ) const

Definition at line 33 of file WindowHolder.cpp.

◆ runMainLoop()

int gui_framework::WindowHolder::runMainLoop ( const std::vector< uint32_t > & registeredHotkeyIds = {})

Process messages. Must be called after initialization.

Parameters
registeredHotkeyIdsYou may pass all registered hotkeys for unregister them after window destroy
Exceptions
GetLastErrorException

Definition at line 38 of file WindowHolder.cpp.

Friends And Related Symbol Documentation

◆ BaseDialogBox

friend class BaseDialogBox
friend

Definition at line 40 of file WindowHolder.h.


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