#include <WinAPIGUI.h>
sw::gui::WinAPIGUI::WinAPIGUI |
( |
| ) |
|
|
explicit |
virtual sw::gui::WinAPIGUI::~WinAPIGUI |
( |
| ) |
|
|
virtualdefault |
const wchar_t * sw::gui::WinAPIGUI::GetWindowClassName |
( |
| ) |
|
|
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.
Initializes native GUI.
- Returns
- Returns false if initialization failed.
Implements sw::gui::INativeGUI.
bool sw::gui::WinAPIGUI::MainLoop |
( |
bool |
blockingMode | ) |
|
|
overridevirtual |
Invokes main loop of native GUI.
- Returns
- Returns true if application should close.
Implements sw::gui::INativeGUI.
bool sw::gui::WinAPIGUI::MainLoopCore |
( |
MSG * |
msg | ) |
|
|
private |
Core functionality of main loop function.
void sw::gui::WinAPIGUI::PrintLastError |
( |
| ) |
|
|
static |
Gets last win api error and prints to debug window.
void sw::gui::WinAPIGUI::RegisterWindowClass |
( |
| ) |
|
|
private |
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.
The documentation for this class was generated from the following files: