Sleeping Wombat GUI  0.100
swGUI
MockGUI.h
Go to the documentation of this file.
1 #pragma once
2 
10 
11 
12 
13 
19 namespace sw {
20 namespace gui
21 {
22 
23 
26 class MockGUI : public INativeGUI
27 {
28 private:
30 
31 protected:
32 public:
33  explicit MockGUI ();
34  virtual ~MockGUI () = default;
35 
36 
37 // Inherited via INativeGUI
38  virtual bool MainLoop ( bool blockingMode ) override;
39  virtual bool Init ( const NativeGUIInitData& initData ) override;
40  virtual sw::input::IInput* UseNativeInput () override;
41  virtual INativeWindow* CreateWindow ( NativeWindowDescriptor& descriptor ) override;
42 
43  static MockGUI* Create ();
44 
45 };
46 
47 } // GUI
48 } // sw
MockGUI()
Definition: MockGUI.cpp:24
virtual INativeWindow * CreateWindow(NativeWindowDescriptor &descriptor) override
Creates native GUI window.
Definition: MockGUI.cpp:58
Interface encasulates native GUI system.
Definition: INativeGUI.h:33
virtual bool Init(const NativeGUIInitData &initData) override
Initializes native GUI.
Definition: MockGUI.cpp:66
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: MockGUI.cpp:44
Dedcriptor used to create native GUI window.
Definition: INativeWindow.h:17
virtual ~MockGUI()=default
Provides data needed for native GUI system initialization.
Definition: INativeGUI.h:25
static MockGUI * Create()
Creates WinAPIGUI object.
Definition: MockGUI.cpp:29
NativeGUIInitData m_initData
Definition: MockGUI.h:29
virtual bool MainLoop(bool blockingMode) override
Invokes main loop of native GUI.
Definition: MockGUI.cpp:82
Interface for native window sing OS specific ffunctions.
Definition: INativeWindow.h:74
Interface for input classes for capturing user input.
Definition: IInput.h:65
Definition: MockGUI.h:26