Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | List of all members
sw::gui::INativeGUI Class Referenceabstract

Interface encasulates native GUI system. More...

#include <INativeGUI.h>

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

Public Member Functions

 INativeGUI ()=default
 
 ~INativeGUI ()=default
 
virtual bool MainLoop (bool blockingMode)=0
 Invokes main loop of native GUI. More...
 
virtual bool Init (const NativeGUIInitData &initData)=0
 Initializes native GUI. More...
 
virtual sw::input::IInputUseNativeInput ()=0
 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)=0
 Creates native GUI window. More...
 

Detailed Description

Interface encasulates native GUI system.

Constructor & Destructor Documentation

sw::gui::INativeGUI::INativeGUI ( )
default
sw::gui::INativeGUI::~INativeGUI ( )
default

Member Function Documentation

virtual INativeWindow* sw::gui::INativeGUI::CreateWindow ( NativeWindowDescriptor descriptor)
pure virtual

Creates native GUI window.

Implemented in sw::gui::WinAPIGUI, and sw::gui::MockGUI.

virtual bool sw::gui::INativeGUI::Init ( const NativeGUIInitData initData)
pure virtual

Initializes native GUI.

Returns
Returns false if initialization failed.

Implemented in sw::gui::WinAPIGUI, and sw::gui::MockGUI.

virtual bool sw::gui::INativeGUI::MainLoop ( bool  blockingMode)
pure virtual

Invokes main loop of native GUI.

Returns
Returns true if application should close.

Implemented in sw::gui::WinAPIGUI, and sw::gui::MockGUI.

virtual sw::input::IInput* sw::gui::INativeGUI::UseNativeInput ( )
pure virtual

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.

Implemented in sw::gui::WinAPIGUI, and sw::gui::MockGUI.


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