27 class WinApiInputProxy;
59 virtual bool MainLoop (
bool blockingMode )
override;
78 void HandleEvent ( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam );
Interface encasulates native GUI system.
Definition: INativeGUI.h:33
Definition: DirectInputModule.cpp:11
virtual sw::input::IInput * UseNativeInput() override
Initalize native api for this gui system and return IInput object. GUI can use native input api for s...
Definition: WinAPIGUI.cpp:50
Definition: WinAPIGUI.h:46
virtual bool MainLoop(bool blockingMode) override
Invokes main loop of native GUI.
Definition: WinAPIGUI.cpp:198
NativeGUIInitData m_initData
Definition: WinAPIGUI.h:50
Dedcriptor used to create native GUI window.
Definition: INativeWindow.h:17
void HandleEvent(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Captures important events like changing focus.
Definition: WinAPIGUI.cpp:177
Provides data needed for native GUI system initialization.
Definition: INativeGUI.h:25
virtual bool Init(const NativeGUIInitData &initData) override
Initializes native GUI.
Definition: WinAPIGUI.cpp:140
static WinAPIGUI * Create()
Creates WinAPIGUI object.
Definition: WinAPIGUI.cpp:28
Interface for native window sing OS specific ffunctions.
Definition: INativeWindow.h:74
static const wchar_t * GetWindowClassName()
Window class registered in WinAPI.
Definition: WinAPIGUI.cpp:43
sw::input::WinApiInputProxy * m_input
Definition: WinAPIGUI.h:49
static void PrintLastError()
Gets last win api error and prints to debug window.
Definition: WinAPIGUI.cpp:115
void RegisterWindowClass()
Registers window class.
Definition: WinAPIGUI.cpp:90
bool MainLoopCore(MSG *msg)
Core functionality of main loop function.
Definition: WinAPIGUI.cpp:157
virtual ~WinAPIGUI()=default
WinAPIGUI()
Definition: WinAPIGUI.cpp:22
virtual INativeWindow * CreateWindow(NativeWindowDescriptor &descriptor) override
Creates native GUI window.
Definition: WinAPIGUI.cpp:70