Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
gte::WindowBase Class Reference

#include <GteWindowBase.h>

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

Classes

struct  Parameters
 

Public Types

typedef int MouseButton
 
typedef int MouseState
 

Public Member Functions

float GetAspectRatio () const
 
virtual void GetMousePosition (int &x, int &y) const
 
std::wstring GetTitle () const
 
int GetXOrigin () const
 
int GetXSize () const
 
int GetYOrigin () const
 
int GetYSize () const
 
bool IsMaximized () const
 
bool IsMinimized () const
 
virtual bool OnCharPress (unsigned char key, int x, int y)
 
virtual void OnClose ()
 
virtual void OnDisplay ()
 
virtual void OnIdle ()
 
virtual bool OnKeyDown (int key, int x, int y)
 
virtual bool OnKeyUp (int key, int x, int y)
 
virtual void OnMaximize ()
 
virtual void OnMinimize ()
 
virtual bool OnMouseClick (int button, int state, int x, int y, unsigned int modifiers)
 
virtual bool OnMouseMotion (int button, int x, int y, unsigned int modifiers)
 
virtual bool OnMouseWheel (int delta, int x, int y, unsigned int modifiers)
 
virtual void OnMove (int x, int y)
 
virtual bool OnResize (int xSize, int ySize)
 
virtual void SetMousePosition (int x, int y)
 
virtual void SetTitle (std::wstring const &title)
 
virtual ~WindowBase ()
 

Static Public Attributes

static int const KEY_ALT = 0xE9
 
static int const KEY_BACKSPACE = 0x08
 
static int const KEY_COMMAND = 0xEB
 
static int const KEY_CONTROL = 0xE3
 
static int const KEY_DELETE = 0x9F
 
static int const KEY_DOWN = 0x99
 
static int const KEY_END = 0x9C
 
static int const KEY_ENTER = 0x0D
 
static int const KEY_ESCAPE = 0x1B
 
static int const KEY_F1 = 0xBE
 
static int const KEY_F10 = 0xC7
 
static int const KEY_F11 = 0xC8
 
static int const KEY_F12 = 0xC9
 
static int const KEY_F2 = 0xBF
 
static int const KEY_F3 = 0xC0
 
static int const KEY_F4 = 0xC1
 
static int const KEY_F5 = 0xC2
 
static int const KEY_F6 = 0xC3
 
static int const KEY_F7 = 0xC4
 
static int const KEY_F8 = 0xC5
 
static int const KEY_F9 = 0xC6
 
static int const KEY_HOME = 0x95
 
static int const KEY_INSERT = 0x9E
 
static int const KEY_LEFT = 0x96
 
static int const KEY_PAGE_DOWN = 0x9B
 
static int const KEY_PAGE_UP = 0x9A
 
static int const KEY_RETURN = 0x0D
 
static int const KEY_RIGHT = 0x98
 
static int const KEY_SHIFT = 0xE1
 
static int const KEY_TAB = 0x09
 
static int const KEY_UP = 0x97
 
static int const MODIFIER_CONTROL = 0x0004
 
static int const MODIFIER_LBUTTON = 0x0001
 
static int const MODIFIER_MBUTTON = 0x0002
 
static int const MODIFIER_RBUTTON = 0x0003
 
static int const MODIFIER_SHIFT = 0x0001
 
static int const MOUSE_DOWN = 0x0004
 
static int const MOUSE_LEFT = 0x0001
 
static int const MOUSE_MIDDLE = 0x0002
 
static int const MOUSE_NONE = 0x0000
 
static int const MOUSE_RIGHT = 0x0003
 
static int const MOUSE_UP = 0x0005
 

Protected Member Functions

std::string GetGTEPath ()
 
 WindowBase (Parameters &parameters)
 

Protected Attributes

bool mAllowResize
 
std::shared_ptr< BaseEnginemBaseEngine
 
Environment mEnvironment
 
bool mIsMaximized
 
bool mIsMinimized
 
std::shared_ptr< ProgramFactorymProgramFactory
 
OnIdleTimer mTimer
 
std::wstring mTitle
 
int mXOrigin
 
int mXSize
 
int mYOrigin
 
int mYSize
 

Detailed Description

Definition at line 18 of file GteWindowBase.h.

Member Typedef Documentation

Definition at line 74 of file GteWindowBase.h.

Definition at line 75 of file GteWindowBase.h.

Constructor & Destructor Documentation

WindowBase::WindowBase ( Parameters parameters)
protected

Definition at line 42 of file GteWindowBase.cpp.

WindowBase::~WindowBase ( )
virtual

Definition at line 38 of file GteWindowBase.cpp.

Member Function Documentation

float gte::WindowBase::GetAspectRatio ( ) const
inline

Definition at line 199 of file GteWindowBase.h.

std::string WindowBase::GetGTEPath ( )
protected

Definition at line 173 of file GteWindowBase.cpp.

void WindowBase::GetMousePosition ( int x,
int y 
) const
virtual

Reimplemented in gte::Window, and gte::MSWWindow.

Definition at line 163 of file GteWindowBase.cpp.

std::wstring gte::WindowBase::GetTitle ( ) const
inline

Definition at line 164 of file GteWindowBase.h.

int gte::WindowBase::GetXOrigin ( ) const
inline

Definition at line 169 of file GteWindowBase.h.

int gte::WindowBase::GetXSize ( ) const
inline

Definition at line 179 of file GteWindowBase.h.

int gte::WindowBase::GetYOrigin ( ) const
inline

Definition at line 174 of file GteWindowBase.h.

int gte::WindowBase::GetYSize ( ) const
inline

Definition at line 184 of file GteWindowBase.h.

bool gte::WindowBase::IsMaximized ( ) const
inline

Definition at line 194 of file GteWindowBase.h.

bool gte::WindowBase::IsMinimized ( ) const
inline

Definition at line 189 of file GteWindowBase.h.

bool WindowBase::OnCharPress ( unsigned char  key,
int  x,
int  y 
)
virtual

Reimplemented in gte::Window3.

Definition at line 110 of file GteWindowBase.cpp.

void WindowBase::OnClose ( )
virtual

Reimplemented in gte::Window, and gte::MSWWindow.

Definition at line 168 of file GteWindowBase.cpp.

void WindowBase::OnDisplay ( )
virtual

Reimplemented in gte::Window2.

Definition at line 100 of file GteWindowBase.cpp.

void WindowBase::OnIdle ( )
virtual

Definition at line 105 of file GteWindowBase.cpp.

bool WindowBase::OnKeyDown ( int  key,
int  x,
int  y 
)
virtual

Reimplemented in gte::Window3.

Definition at line 128 of file GteWindowBase.cpp.

bool WindowBase::OnKeyUp ( int  key,
int  x,
int  y 
)
virtual

Reimplemented in gte::Window3.

Definition at line 134 of file GteWindowBase.cpp.

void WindowBase::OnMaximize ( )
virtual

Definition at line 94 of file GteWindowBase.cpp.

void WindowBase::OnMinimize ( )
virtual

Definition at line 88 of file GteWindowBase.cpp.

bool WindowBase::OnMouseClick ( int  button,
int  state,
int  x,
int  y,
unsigned int  modifiers 
)
virtual

Reimplemented in gte::Window3.

Definition at line 140 of file GteWindowBase.cpp.

bool WindowBase::OnMouseMotion ( int  button,
int  x,
int  y,
unsigned int  modifiers 
)
virtual

Reimplemented in gte::Window3.

Definition at line 146 of file GteWindowBase.cpp.

bool WindowBase::OnMouseWheel ( int  delta,
int  x,
int  y,
unsigned int  modifiers 
)
virtual

Definition at line 152 of file GteWindowBase.cpp.

void WindowBase::OnMove ( int  x,
int  y 
)
virtual

Definition at line 62 of file GteWindowBase.cpp.

bool WindowBase::OnResize ( int  xSize,
int  ySize 
)
virtual

Reimplemented in gte::Window3, and gte::Window2.

Definition at line 68 of file GteWindowBase.cpp.

void WindowBase::SetMousePosition ( int  x,
int  y 
)
virtual

Reimplemented in gte::Window, and gte::MSWWindow.

Definition at line 158 of file GteWindowBase.cpp.

void WindowBase::SetTitle ( std::wstring const &  title)
virtual

Reimplemented in gte::MSWWindow.

Definition at line 57 of file GteWindowBase.cpp.

Member Data Documentation

int const WindowBase::KEY_ALT = 0xE9
static

Definition at line 120 of file GteWindowBase.h.

int const WindowBase::KEY_BACKSPACE = 0x08
static

Definition at line 112 of file GteWindowBase.h.

int const WindowBase::KEY_COMMAND = 0xEB
static

Definition at line 121 of file GteWindowBase.h.

int const WindowBase::KEY_CONTROL = 0xE3
static

Definition at line 119 of file GteWindowBase.h.

int const WindowBase::KEY_DELETE = 0x9F
static

Definition at line 99 of file GteWindowBase.h.

int const WindowBase::KEY_DOWN = 0x99
static

Definition at line 93 of file GteWindowBase.h.

int const WindowBase::KEY_END = 0x9C
static

Definition at line 95 of file GteWindowBase.h.

int const WindowBase::KEY_ENTER = 0x0D
static

Definition at line 114 of file GteWindowBase.h.

int const WindowBase::KEY_ESCAPE = 0x1B
static

Definition at line 89 of file GteWindowBase.h.

int const WindowBase::KEY_F1 = 0xBE
static

Definition at line 100 of file GteWindowBase.h.

int const WindowBase::KEY_F10 = 0xC7
static

Definition at line 109 of file GteWindowBase.h.

int const WindowBase::KEY_F11 = 0xC8
static

Definition at line 110 of file GteWindowBase.h.

int const WindowBase::KEY_F12 = 0xC9
static

Definition at line 111 of file GteWindowBase.h.

int const WindowBase::KEY_F2 = 0xBF
static

Definition at line 101 of file GteWindowBase.h.

int const WindowBase::KEY_F3 = 0xC0
static

Definition at line 102 of file GteWindowBase.h.

int const WindowBase::KEY_F4 = 0xC1
static

Definition at line 103 of file GteWindowBase.h.

int const WindowBase::KEY_F5 = 0xC2
static

Definition at line 104 of file GteWindowBase.h.

int const WindowBase::KEY_F6 = 0xC3
static

Definition at line 105 of file GteWindowBase.h.

int const WindowBase::KEY_F7 = 0xC4
static

Definition at line 106 of file GteWindowBase.h.

int const WindowBase::KEY_F8 = 0xC5
static

Definition at line 107 of file GteWindowBase.h.

int const WindowBase::KEY_F9 = 0xC6
static

Definition at line 108 of file GteWindowBase.h.

int const WindowBase::KEY_HOME = 0x95
static

Definition at line 94 of file GteWindowBase.h.

int const WindowBase::KEY_INSERT = 0x9E
static

Definition at line 98 of file GteWindowBase.h.

int const WindowBase::KEY_LEFT = 0x96
static

Definition at line 90 of file GteWindowBase.h.

int const WindowBase::KEY_PAGE_DOWN = 0x9B
static

Definition at line 97 of file GteWindowBase.h.

int const WindowBase::KEY_PAGE_UP = 0x9A
static

Definition at line 96 of file GteWindowBase.h.

int const WindowBase::KEY_RETURN = 0x0D
static

Definition at line 115 of file GteWindowBase.h.

int const WindowBase::KEY_RIGHT = 0x98
static

Definition at line 91 of file GteWindowBase.h.

int const WindowBase::KEY_SHIFT = 0xE1
static

Definition at line 118 of file GteWindowBase.h.

int const WindowBase::KEY_TAB = 0x09
static

Definition at line 113 of file GteWindowBase.h.

int const WindowBase::KEY_UP = 0x97
static

Definition at line 92 of file GteWindowBase.h.

bool gte::WindowBase::mAllowResize
protected

Definition at line 151 of file GteWindowBase.h.

std::shared_ptr<BaseEngine> gte::WindowBase::mBaseEngine
protected

Definition at line 159 of file GteWindowBase.h.

Environment gte::WindowBase::mEnvironment
protected

Definition at line 155 of file GteWindowBase.h.

bool gte::WindowBase::mIsMaximized
protected

Definition at line 153 of file GteWindowBase.h.

bool gte::WindowBase::mIsMinimized
protected

Definition at line 152 of file GteWindowBase.h.

int const WindowBase::MODIFIER_CONTROL = 0x0004
static

Definition at line 134 of file GteWindowBase.h.

int const WindowBase::MODIFIER_LBUTTON = 0x0001
static

Definition at line 135 of file GteWindowBase.h.

int const WindowBase::MODIFIER_MBUTTON = 0x0002
static

Definition at line 136 of file GteWindowBase.h.

int const WindowBase::MODIFIER_RBUTTON = 0x0003
static

Definition at line 137 of file GteWindowBase.h.

int const WindowBase::MODIFIER_SHIFT = 0x0001
static

Definition at line 138 of file GteWindowBase.h.

int const WindowBase::MOUSE_DOWN = 0x0004
static

Definition at line 131 of file GteWindowBase.h.

int const WindowBase::MOUSE_LEFT = 0x0001
static

Definition at line 125 of file GteWindowBase.h.

int const WindowBase::MOUSE_MIDDLE = 0x0002
static

Definition at line 126 of file GteWindowBase.h.

int const WindowBase::MOUSE_NONE = 0x0000
static

Definition at line 124 of file GteWindowBase.h.

int const WindowBase::MOUSE_RIGHT = 0x0003
static

Definition at line 127 of file GteWindowBase.h.

int const WindowBase::MOUSE_UP = 0x0005
static

Definition at line 130 of file GteWindowBase.h.

std::shared_ptr<ProgramFactory> gte::WindowBase::mProgramFactory
protected

Definition at line 160 of file GteWindowBase.h.

OnIdleTimer gte::WindowBase::mTimer
protected

Definition at line 156 of file GteWindowBase.h.

std::wstring gte::WindowBase::mTitle
protected

Definition at line 149 of file GteWindowBase.h.

int gte::WindowBase::mXOrigin
protected

Definition at line 150 of file GteWindowBase.h.

int gte::WindowBase::mXSize
protected

Definition at line 150 of file GteWindowBase.h.

int gte::WindowBase::mYOrigin
protected

Definition at line 150 of file GteWindowBase.h.

int gte::WindowBase::mYSize
protected

Definition at line 150 of file GteWindowBase.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:07