Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
gte::MSWWindowSystem Class Referenceabstract

#include <GteMSWWindowSystem.h>

Inheritance diagram for gte::MSWWindowSystem:
Inheritance graph
[legend]

Public Types

enum  { DEFAULT_ACTION = 0, NO_IDLE_LOOP = 1 }
 

Public Member Functions

template<typename WindowType >
std::shared_ptr< WindowType > Create (typename WindowType::Parameters &parameters)
 
template<typename WindowType >
void Destroy (std::shared_ptr< WindowType > &window)
 
template<typename WindowType >
void MessagePump (std::shared_ptr< WindowType > const &window, unsigned int flags)
 
virtual ~MSWWindowSystem ()
 

Protected Member Functions

virtual void CreateEngineAndProgramFactory (MSWWindow::Parameters &parameters)=0
 
void CreateFrom (MSWWindow::Parameters &parameters)
 
 MSWWindowSystem ()
 

Static Protected Member Functions

static void Extract (LPARAM lParam, int &x, int &y)
 
static void Extract (WPARAM wParam, int &x, int &y)
 
static bool GetWindowRectangle (int xClientSize, int yClientSize, DWORD style, RECT &windowRectangle)
 
static LRESULT CALLBACK WindowProcedure (HWND handle, UINT message, WPARAM wParam, LPARAM lParam)
 

Protected Attributes

ATOM mAtom
 
std::map< HWND, std::shared_ptr< MSWWindow > > mHandleMap
 
wchar_t const * mWindowClassName
 

Detailed Description

Definition at line 17 of file GteMSWWindowSystem.h.

Member Enumeration Documentation

anonymous enum
Enumerator
DEFAULT_ACTION 
NO_IDLE_LOOP 

Definition at line 35 of file GteMSWWindowSystem.h.

Constructor & Destructor Documentation

MSWWindowSystem::~MSWWindowSystem ( )
virtual

Definition at line 12 of file GteMSWWindowSystem.cpp.

MSWWindowSystem::MSWWindowSystem ( )
protected

Definition at line 20 of file GteMSWWindowSystem.cpp.

Member Function Documentation

template<typename WindowType >
std::shared_ptr< WindowType > gte::MSWWindowSystem::Create ( typename WindowType::Parameters &  parameters)

Definition at line 72 of file GteMSWWindowSystem.h.

virtual void gte::MSWWindowSystem::CreateEngineAndProgramFactory ( MSWWindow::Parameters parameters)
protectedpure virtual

Implemented in gte::WindowSystem, and gte::WindowSystem.

void MSWWindowSystem::CreateFrom ( MSWWindow::Parameters parameters)
protected

Definition at line 49 of file GteMSWWindowSystem.cpp.

template<typename WindowType >
void gte::MSWWindowSystem::Destroy ( std::shared_ptr< WindowType > &  window)

Definition at line 90 of file GteMSWWindowSystem.h.

void MSWWindowSystem::Extract ( LPARAM  lParam,
int x,
int y 
)
staticprotected

Definition at line 118 of file GteMSWWindowSystem.cpp.

void MSWWindowSystem::Extract ( WPARAM  wParam,
int x,
int y 
)
staticprotected

Definition at line 124 of file GteMSWWindowSystem.cpp.

bool MSWWindowSystem::GetWindowRectangle ( int  xClientSize,
int  yClientSize,
DWORD  style,
RECT &  windowRectangle 
)
staticprotected

Definition at line 39 of file GteMSWWindowSystem.cpp.

template<typename WindowType >
void gte::MSWWindowSystem::MessagePump ( std::shared_ptr< WindowType > const &  window,
unsigned int  flags 
)

Definition at line 102 of file GteMSWWindowSystem.h.

LRESULT CALLBACK MSWWindowSystem::WindowProcedure ( HWND  handle,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
staticprotected

Definition at line 130 of file GteMSWWindowSystem.cpp.

Member Data Documentation

ATOM gte::MSWWindowSystem::mAtom
protected

Definition at line 66 of file GteMSWWindowSystem.h.

std::map<HWND, std::shared_ptr<MSWWindow> > gte::MSWWindowSystem::mHandleMap
protected

Definition at line 67 of file GteMSWWindowSystem.h.

wchar_t const* gte::MSWWindowSystem::mWindowClassName
protected

Definition at line 65 of file GteMSWWindowSystem.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06