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

Fake window for tests. More...

#include <MockWindow.h>

Inheritance diagram for sw::gui::MockWindow:
sw::gui::INativeWindow

Public Member Functions

 MockWindow ()
 
 ~MockWindow ()
 
virtual uint16 GetWidth () const override
 
virtual uint16 GetHeight () const override
 
virtual uint16 GetClientWidth () const override
 
virtual uint16 GetClientHeight () const override
 
virtual WindowHandler GetHandle () const override
 
virtual std::string GetTitle () const override
 
virtual void Show () override
 
virtual void Hide () override
 
virtual void SetTitle (const std::string &newTitle) override
 
- Public Member Functions inherited from sw::gui::INativeWindow
 INativeWindow ()=default
 
 ~INativeWindow ()=default
 

Static Public Member Functions

static MockWindowCreateWindowInstance (NativeWindowDescriptor &descriptor)
 

Private Member Functions

void ShowAppWindow ()
 
void HideAppWindow ()
 
bool Initialize (NativeWindowDescriptor &descriptor)
 

Private Attributes

std::wstring m_title
 
WindowHandler m_windowHandle
 
uint16 m_width
 
uint16 m_height
 

Detailed Description

Fake window for tests.

Constructor & Destructor Documentation

sw::gui::MockWindow::MockWindow ( )
explicit
sw::gui::MockWindow::~MockWindow ( )

Member Function Documentation

MockWindow * sw::gui::MockWindow::CreateWindowInstance ( NativeWindowDescriptor descriptor)
static
uint16 sw::gui::MockWindow::GetClientHeight ( ) const
overridevirtual
uint16 sw::gui::MockWindow::GetClientWidth ( ) const
overridevirtual
WindowHandler sw::gui::MockWindow::GetHandle ( ) const
overridevirtual
uint16 sw::gui::MockWindow::GetHeight ( ) const
overridevirtual
std::string sw::gui::MockWindow::GetTitle ( ) const
overridevirtual
uint16 sw::gui::MockWindow::GetWidth ( ) const
overridevirtual
void sw::gui::MockWindow::Hide ( )
overridevirtual
void sw::gui::MockWindow::HideAppWindow ( )
private
bool sw::gui::MockWindow::Initialize ( NativeWindowDescriptor descriptor)
private
void sw::gui::MockWindow::SetTitle ( const std::string &  newTitle)
overridevirtual
void sw::gui::MockWindow::Show ( )
overridevirtual
void sw::gui::MockWindow::ShowAppWindow ( )
private

Member Data Documentation

uint16 sw::gui::MockWindow::m_height
private
std::wstring sw::gui::MockWindow::m_title
private
uint16 sw::gui::MockWindow::m_width
private
WindowHandler sw::gui::MockWindow::m_windowHandle
private

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