Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sw::gui::MockGUI Class Reference

#include <MockGUI.h>

Inheritance diagram for sw::gui::MockGUI:
sw::gui::INativeGUI

Public Member Functions

 MockGUI ()
 
virtual ~MockGUI ()=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::IInputUseNativeInput () 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 INativeWindowCreateWindow (NativeWindowDescriptor &descriptor) override
 Creates native GUI window. More...
 
- Public Member Functions inherited from sw::gui::INativeGUI
 INativeGUI ()=default
 
 ~INativeGUI ()=default
 

Static Public Member Functions

static MockGUICreate ()
 Creates WinAPIGUI object. More...
 

Private Attributes

NativeGUIInitData m_initData
 

Constructor & Destructor Documentation

sw::gui::MockGUI::MockGUI ( )
explicit
virtual sw::gui::MockGUI::~MockGUI ( )
virtualdefault

Member Function Documentation

MockGUI * sw::gui::MockGUI::Create ( )
static

Creates WinAPIGUI object.

INativeWindow * sw::gui::MockGUI::CreateWindow ( NativeWindowDescriptor descriptor)
overridevirtual

Creates native GUI window.

Implements sw::gui::INativeGUI.

bool sw::gui::MockGUI::Init ( const NativeGUIInitData initData)
overridevirtual

Initializes native GUI.

Returns
Returns false if initialization failed.

Implements sw::gui::INativeGUI.

bool sw::gui::MockGUI::MainLoop ( bool  blockingMode)
overridevirtual

Invokes main loop of native GUI.

Returns
Returns true if application should close.

Implements sw::gui::INativeGUI.

sw::input::IInput * sw::gui::MockGUI::UseNativeInput ( )
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.

Member Data Documentation

NativeGUIInitData sw::gui::MockGUI::m_initData
private

The documentation for this class was generated from the following files: