Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::Window2 Class Reference

#include <GteWindow2.h>

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

Public Member Functions

void ClearScreen (unsigned int color)
 
void DrawCircle (int xCenter, int yCenter, int radius, unsigned int color, bool solid)
 
void DrawEllipse (int xCenter, int yCenter, int xExtent, int yExtent, unsigned int color)
 
void DrawFloodFill4 (int x, int y, unsigned int foreColor, unsigned int backColor)
 
void DrawLine (int x0, int y0, int x1, int y1, unsigned int color)
 
void DrawRectangle (int xMin, int yMin, int xMax, int yMax, unsigned int color, bool solid)
 
virtual void DrawScreenOverlay ()
 
void DrawThickPixel (int x, int y, int thick, unsigned int color)
 
unsigned int GetPixel (int x, int y)
 
virtual void OnDisplay () override
 
virtual bool OnResize (int xSize, int ySize) override
 
void SetPixel (int x, int y, unsigned int color)
 
- Public Member Functions inherited from gte::Window
virtual void GetMousePosition (int &x, int &y) const override
 
virtual void OnClose () override
 
int ProcessedEvent ()
 
virtual void SetMousePosition (int x, int y) override
 
void ShowWindow ()
 
virtual ~Window ()
 
virtual ~Window ()
 
virtual ~Window ()
 
- Public Member Functions inherited from gte::MSWWindow
HWND GetHandle () const
 
void GetScrollInterval (int bar, int &minValue, int &maxValue) const
 
int GetScrollPosition (int bar) const
 
int OnScrollDecrementHiRes (int bar)
 
int OnScrollDecrementLoRes (int bar)
 
int OnScrollEndTracking (int bar)
 
int OnScrollIncrementHiRes (int bar)
 
int OnScrollIncrementLoRes (int bar)
 
int OnScrollTracking (int bar)
 
void SetScrollInterval (int bar, int minValue, int maxValue)
 
int SetScrollPosition (int bar, int value)
 
virtual void SetTitle (std::wstring const &title) override
 
virtual ~MSWWindow ()
 
- Public Member Functions inherited from gte::WindowBase
float GetAspectRatio () 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 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 ~WindowBase ()
 

Protected Member Functions

 Window2 (Parameters &parameters)
 
- Protected Member Functions inherited from gte::Window
 Window (Parameters &parameters)
 
 Window (Parameters &parameters)
 
 Window (Parameters &parameters)
 
- Protected Member Functions inherited from gte::MSWWindow
 MSWWindow (Parameters &parameters)
 
- Protected Member Functions inherited from gte::WindowBase
std::string GetGTEPath ()
 
 WindowBase (Parameters &parameters)
 

Protected Attributes

bool mClampToWindow
 
bool mDoFlip
 
std::function< void(int, int)> mDrawPixel
 
std::shared_ptr< DepthStencilStatemNoDepthStencilState
 
std::shared_ptr< OverlayEffectmOverlay
 
unsigned int mPixelColor
 
std::shared_ptr< Texture2mScreenTexture
 
bool mScreenTextureNeedsUpdate
 
- Protected Attributes inherited from gte::Window
bool mAltDown
 
std::array< bool, 8 > mButtonDown
 
bool mCommandDown
 
bool mControlDown
 
_XDisplay * mDisplay
 
std::shared_ptr< GraphicsEnginemEngine
 
bool mShiftDown
 
unsigned long mWindow
 
- Protected Attributes inherited from gte::MSWWindow
HWND mHandle
 
bool mHasScroll [2]
 
int mScrollHiResDelta [2]
 
SCROLLINFO mScrollInfo [2]
 
int mScrollLoResDelta [2]
 
- Protected Attributes inherited from gte::WindowBase
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
 

Additional Inherited Members

- Public Types inherited from gte::Window
enum  { EVT_NONE_PENDING, EVT_PROCESSED, EVT_QUIT }
 
- Public Types inherited from gte::WindowBase
typedef int MouseButton
 
typedef int MouseState
 
- Static Public Attributes inherited from gte::WindowBase
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
 

Detailed Description

Definition at line 22 of file GteWindow2.h.

Constructor & Destructor Documentation

Window2::Window2 ( Parameters parameters)
protected

Definition at line 13 of file GteWindow2.cpp.

Member Function Documentation

void Window2::ClearScreen ( unsigned int  color)

Definition at line 70 of file GteWindow2.cpp.

void Window2::DrawCircle ( int  xCenter,
int  yCenter,
int  radius,
unsigned int  color,
bool  solid 
)

Definition at line 134 of file GteWindow2.cpp.

void Window2::DrawEllipse ( int  xCenter,
int  yCenter,
int  xExtent,
int  yExtent,
unsigned int  color 
)

Definition at line 140 of file GteWindow2.cpp.

void Window2::DrawFloodFill4 ( int  x,
int  y,
unsigned int  foreColor,
unsigned int  backColor 
)

Definition at line 146 of file GteWindow2.cpp.

void Window2::DrawLine ( int  x0,
int  y0,
int  x1,
int  y1,
unsigned int  color 
)

Definition at line 122 of file GteWindow2.cpp.

void Window2::DrawRectangle ( int  xMin,
int  yMin,
int  xMax,
int  yMax,
unsigned int  color,
bool  solid 
)

Definition at line 128 of file GteWindow2.cpp.

void Window2::DrawScreenOverlay ( )
virtual

Definition at line 65 of file GteWindow2.cpp.

void Window2::DrawThickPixel ( int  x,
int  y,
int  thick,
unsigned int  color 
)

Definition at line 116 of file GteWindow2.cpp.

unsigned int Window2::GetPixel ( int  x,
int  y 
)

Definition at line 98 of file GteWindow2.cpp.

void Window2::OnDisplay ( )
overridevirtual

Reimplemented from gte::WindowBase.

Definition at line 52 of file GteWindow2.cpp.

bool Window2::OnResize ( int  xSize,
int  ySize 
)
overridevirtual

Reimplemented from gte::WindowBase.

Definition at line 46 of file GteWindow2.cpp.

void Window2::SetPixel ( int  x,
int  y,
unsigned int  color 
)

Definition at line 80 of file GteWindow2.cpp.

Member Data Documentation

bool gte::Window2::mClampToWindow
protected

Definition at line 93 of file GteWindow2.h.

bool gte::Window2::mDoFlip
protected

Definition at line 94 of file GteWindow2.h.

std::function<void(int, int)> gte::Window2::mDrawPixel
protected

Definition at line 91 of file GteWindow2.h.

std::shared_ptr<DepthStencilState> gte::Window2::mNoDepthStencilState
protected

Definition at line 90 of file GteWindow2.h.

std::shared_ptr<OverlayEffect> gte::Window2::mOverlay
protected

Definition at line 88 of file GteWindow2.h.

unsigned int gte::Window2::mPixelColor
protected

Definition at line 92 of file GteWindow2.h.

std::shared_ptr<Texture2> gte::Window2::mScreenTexture
protected

Definition at line 89 of file GteWindow2.h.

bool gte::Window2::mScreenTextureNeedsUpdate
protected

Definition at line 95 of file GteWindow2.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