Rise
The Vieneo Province
Screen Class Reference

#include <Screen.h>

Collaboration diagram for Screen:
[legend]

Public Member Functions

void Render ()
 
 ~Screen ()
 
bool HandleKeyPress (short key, bool shift)
 
void FrameMove (float fElapsed)
 
bool ChangePage (const std::string &pageName)
 
void OnPageChange (bool sendUpdate=true)
 
void ChangePage (int i)
 
void RestorePage ()
 
 Screen (Bus *prmBus)
 

Public Attributes

UINT currentPage = 0
 
std::string name
 
std::vector< Pagepages
 
int width = 0
 
int height = 0
 
int x = 0
 
int y = 0
 
RECT rect = RECT()
 

Private Attributes

int lastPage = -1
 
HRESULT hr = 0
 
Busbus
 

Detailed Description

Definition at line 5 of file Screen.h.

Constructor & Destructor Documentation

◆ ~Screen()

Screen::~Screen ( )
inline

Definition at line 40 of file Screen.h.

◆ Screen()

Screen::Screen ( Bus prmBus)
inline

Definition at line 112 of file Screen.h.

Member Function Documentation

◆ ChangePage() [1/2]

bool Screen::ChangePage ( const std::string &  pageName)
inline

Definition at line 59 of file Screen.h.

◆ ChangePage() [2/2]

void Screen::ChangePage ( int  i)
inline

Definition at line 86 of file Screen.h.

Here is the call graph for this function:

◆ FrameMove()

void Screen::FrameMove ( float  fElapsed)
inline

Definition at line 52 of file Screen.h.

◆ HandleKeyPress()

bool Screen::HandleKeyPress ( short  key,
bool  shift 
)
inline

Definition at line 45 of file Screen.h.

◆ OnPageChange()

void Screen::OnPageChange ( bool  sendUpdate = true)
inline

Definition at line 72 of file Screen.h.

Here is the caller graph for this function:

◆ Render()

void Screen::Render ( )
inline

Definition at line 33 of file Screen.h.

◆ RestorePage()

void Screen::RestorePage ( )
inline

Definition at line 100 of file Screen.h.

Here is the call graph for this function:

Member Data Documentation

◆ bus

Bus* Screen::bus
private

Definition at line 14 of file Screen.h.

◆ currentPage

UINT Screen::currentPage = 0

Definition at line 21 of file Screen.h.

◆ height

int Screen::height = 0

Definition at line 28 of file Screen.h.

◆ hr

HRESULT Screen::hr = 0
private

Definition at line 13 of file Screen.h.

◆ lastPage

int Screen::lastPage = -1
private

Definition at line 12 of file Screen.h.

◆ name

std::string Screen::name
Todo:
could configure defaultPage

Definition at line 24 of file Screen.h.

◆ pages

std::vector<Page> Screen::pages

Definition at line 25 of file Screen.h.

◆ rect

RECT Screen::rect = RECT()

Definition at line 31 of file Screen.h.

◆ width

int Screen::width = 0

Definition at line 27 of file Screen.h.

◆ x

int Screen::x = 0

Definition at line 29 of file Screen.h.

◆ y

int Screen::y = 0

Definition at line 30 of file Screen.h.


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