Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DisplayView Class Reference

#include <DisplayView.h>

Inheritance diagram for DisplayView:
View

List of all members.

Public Member Functions

 DisplayView (Window *c)
virtual ~DisplayView ()
virtual void Refresh ()
virtual void OnWindowMove ()
virtual void ExecFrame ()
virtual void ClearDisplay ()
virtual void AddText (const char *txt, Font *font, Color color, const Rect &rect, double hold=1e9, double fade_in=0, double fade_out=0)
virtual void AddImage (Bitmap *bmp, Color color, int blend, const Rect &rect, double hold=1e9, double fade_in=0, double fade_out=0)
- Public Member Functions inherited from View
 View (Window *c)
virtual ~View ()
int operator== (const View &that) const
virtual void OnShow ()
virtual void OnHide ()
virtual void SetWindow (Window *w)
virtual WindowGetWindow ()

Static Public Member Functions

static DisplayViewGetInstance ()
- Static Public Member Functions inherited from View
static const char * TYPENAME ()

Protected Attributes

int width
int height
double xcenter
double ycenter
List< DisplayElementelements
- Protected Attributes inherited from View
Windowwindow

Detailed Description

Definition at line 32 of file DisplayView.h.


Constructor & Destructor Documentation

DisplayView::DisplayView ( Window c)

Definition at line 62 of file DisplayView.cpp.

DisplayView::~DisplayView ( )
virtual

Definition at line 69 of file DisplayView.cpp.


Member Function Documentation

void DisplayView::AddImage ( Bitmap bmp,
Color  color,
int  blend,
const Rect rect,
double  hold = 1e9,
double  fade_in = 0,
double  fade_out = 0 
)
virtual

Definition at line 217 of file DisplayView.cpp.

void DisplayView::AddText ( const char *  txt,
Font font,
Color  color,
const Rect rect,
double  hold = 1e9,
double  fade_in = 0,
double  fade_out = 0 
)
virtual

Definition at line 192 of file DisplayView.cpp.

void DisplayView::ClearDisplay ( )
virtual

Definition at line 184 of file DisplayView.cpp.

void DisplayView::ExecFrame ( )
virtual

Definition at line 159 of file DisplayView.cpp.

DisplayView * DisplayView::GetInstance ( )
static

Definition at line 78 of file DisplayView.cpp.

void DisplayView::OnWindowMove ( )
virtual

Reimplemented from View.

Definition at line 87 of file DisplayView.cpp.

void DisplayView::Refresh ( )
virtual

Reimplemented from View.

Definition at line 100 of file DisplayView.cpp.


Member Data Documentation

List<DisplayElement> DisplayView::elements
protected

Definition at line 67 of file DisplayView.h.

int DisplayView::height
protected

Definition at line 63 of file DisplayView.h.

int DisplayView::width
protected

Definition at line 63 of file DisplayView.h.

double DisplayView::xcenter
protected

Definition at line 64 of file DisplayView.h.

double DisplayView::ycenter
protected

Definition at line 64 of file DisplayView.h.


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