Sleeping Wombat GUI  0.100
swGUI
TestFramework.h
Go to the documentation of this file.
1 #pragma once
2 
11 
12 
13 
85 namespace sw {
86 namespace gui
87 {
88 
89 
95 class TestFramework : public GUISystem
96 {
97 private:
98 
100 
101 protected:
102 public:
103  explicit TestFramework ( int argc, char** argv );
104  virtual ~TestFramework () = default;
105 
106 
107  virtual void Initialize ();
108 
109 
110 public:
111 
114 
118 
120  bool TesterMainStep ();
121 
124 
125 private:
126  bool InitTesterNativeGUI ();
127  void InitTesterDebugInput ();
128 
129  // Inherited via GUISystem
130  virtual void OnInitialized () override {};
131  virtual void OnClosing () override {};
132  virtual void OnIdle () override {};
133 };
134 
135 
136 } // gui
137 } // sw
138 
139 
virtual void OnInitialized() override
Definition: TestFramework.h:130
input::EventCapture * m_eventCapture
Definition: TestFramework.h:99
void InitTesterDebugInput()
Definition: TestFramework.cpp:56
Definition: DirectInputModule.cpp:11
This class provides functionality of capturing events for debug and test purposes.
Definition: EventCapture.h:37
HostWindow * CreateNativeHostWindow(uint16 width, uint16 height, const std::string &windowTitle)
Calls CreateNativeHostWindow with default values.
Definition: GUISystem.cpp:243
virtual void OnIdle() override
Definition: TestFramework.h:132
input::IInput * GetInput()
Definition: TestFramework.h:117
virtual void Initialize()
GUI subsystems initialization.
Definition: TestFramework.cpp:32
bool TesterMainStep()
Calls main loop but returns after making full step.
Definition: TestFramework.cpp:70
Main GUI application class.
Definition: GUISystem.h:243
input::IInput * m_input
Input processor.
Definition: GUISystem.h:254
TestFramework(int argc, char **argv)
Definition: TestFramework.cpp:24
input::EventCapture * GetEventCapturer()
Returns event capturer which can emulate events.
Definition: TestFramework.h:116
virtual void OnClosing() override
Definition: TestFramework.h:131
Interface for input classes for capturing user input.
Definition: IInput.h:65
virtual ~TestFramework()=default
bool InitTesterNativeGUI()
Definition: TestFramework.cpp:44
Class used as application entry point in tests.
Definition: TestFramework.h:95