Sleeping Wombat GUI
0.100
swGUI
|
#include <WinAPIGUI.h>
Public Member Functions | |
WinAPIGUI () | |
virtual | ~WinAPIGUI ()=default |
virtual bool | MainLoop (bool blockingMode) override |
Invokes main loop of native GUI. More... | |
virtual bool | Init (const NativeGUIInitData &initData) override |
Initializes native GUI. More... | |
virtual sw::input::IInput * | UseNativeInput () override |
Initalize native api for this gui system and return IInput object. GUI can use native input api for specific gui system or provide different library to deal directly with hardware. Classes derived from INativeGUI are reposible for updating native inputs in main loop. In case of using separate hardware input library INativeGUI does nothing. More... | |
virtual INativeWindow * | CreateWindow (NativeWindowDescriptor &descriptor) override |
Creates native GUI window. More... | |
void | HandleEvent (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
Captures important events like changing focus. More... | |
Public Member Functions inherited from sw::gui::INativeGUI | |
INativeGUI ()=default | |
~INativeGUI ()=default | |
Static Public Member Functions | |
static WinAPIGUI * | Create () |
Creates WinAPIGUI object. More... | |
static void | PrintLastError () |
Gets last win api error and prints to debug window. More... | |
static const wchar_t * | GetWindowClassName () |
Window class registered in WinAPI. More... | |
Private Member Functions | |
void | RegisterWindowClass () |
Registers window class. More... | |
bool | MainLoopCore (MSG *msg) |
Core functionality of main loop function. More... | |
Private Attributes | |
sw::input::WinApiInputProxy * | m_input |
NativeGUIInitData | m_initData |
|
explicit |
|
virtualdefault |
|
overridevirtual |
Creates native GUI window.
Implements sw::gui::INativeGUI.
|
static |
Window class registered in WinAPI.
void sw::gui::WinAPIGUI::HandleEvent | ( | HWND | hWnd, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Captures important events like changing focus.
|
overridevirtual |
Initializes native GUI.
Implements sw::gui::INativeGUI.
|
overridevirtual |
Invokes main loop of native GUI.
Implements sw::gui::INativeGUI.
|
private |
Core functionality of main loop function.
|
static |
Gets last win api error and prints to debug window.
|
private |
Registers window class.
|
overridevirtual |
Initalize native api for this gui system and return IInput object. GUI can use native input api for specific gui system or provide different library to deal directly with hardware. Classes derived from INativeGUI are reposible for updating native inputs in main loop. In case of using separate hardware input library INativeGUI does nothing.
Implements sw::gui::INativeGUI.
|
private |
|
private |