Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Dasher::CDasherScreen Class Reference

#include <DasherScreen.h>

List of all members.

Public Types

typedef Dasher::CDasherScreen::tagpoint point
 Structure defining a point on the screen.


Public Member Functions

 CDasherScreen (int width, int height)
virtual void SetInterface (CDasherWidgetInterface *DasherInterface)
 Set the widget interface used for communication with the core.

int GetWidth () const
 Return the width of the screen.

int GetHeight () const
 Return the height of the screen.

virtual void SetFont (std::string Name)=0
virtual void SetFontSize (Dasher::Opts::FontSize fontsize)=0
 Set the Dasher font to Normal, Big or VBig.

virtual Dasher::Opts::FontSize GetFontSize ()=0
 Return the Dasher font size.

virtual void TextSize (symbol Character, int *Width, int *Height, int Size) const=0
 Set Width and Height to those of the character Character at size Size.

virtual void DrawText (symbol Character, int x1, int y1, int Size) const=0
 Draw character Character of size Size positioned at x1 and y1.

virtual void DrawRectangle (int x1, int y1, int x2, int y2, int Color, Opts::ColorSchemes ColorScheme) const=0
 Draw a filled rectangle.

virtual void Polyline (point *Points, int Number) const=0
 
Parameters:
Number the number of points in the array


virtual void DrawPolygon (point *Points, int Number, int Color, Opts::ColorSchemes ColorScheme) const=0
 Draw a filled polygon.

virtual void Blank () const=0
 Signal that a frame is being started.

virtual void Display ()=0
 Signal that a frame is finished - the screen should be updated.


Protected Attributes

const int m_iWidth
 Width and height of the screen.

const int m_iHeight
 Width and height of the screen.

CDasherWidgetInterfacem_DasherInterface
 Pointer to a widget interface for communication with the core.


Member Typedef Documentation

typedef struct Dasher::CDasherScreen::tagpoint Dasher::CDasherScreen::point
 


Constructor & Destructor Documentation

Dasher::CDasherScreen::CDasherScreen int    width,
int    height
[inline]
 

Parameters:
width Width of the screen
height Height of the screen


Member Function Documentation

virtual void Dasher::CDasherScreen::Blank   const [pure virtual]
 

virtual void Dasher::CDasherScreen::Display   [pure virtual]
 

virtual void Dasher::CDasherScreen::DrawPolygon point   Points,
int    Number,
int    Color,
Opts::ColorSchemes    ColorScheme
const [pure virtual]
 

Parameters:
Points array of points defining the edge of the polygon
Number number of points in the array
Color colour of the polygon (numeric)
Colorscheme Which colourscheme is to be used

virtual void Dasher::CDasherScreen::DrawRectangle int    x1,
int    y1,
int    x2,
int    y2,
int    Color,
Opts::ColorSchemes    ColorScheme
const [pure virtual]
 

Draw a coloured rectangle on the screen

Parameters:
x1 top left of rectangle (x coordinate)
y1 top left corner of rectangle (y coordinate)
x2 bottom right of rectangle (x coordinate)
y2 bottom right of rectangle (y coordinate)
Color the colour to be used (numeric)
ColorScheme Which colourscheme is to be used

virtual void Dasher::CDasherScreen::DrawText symbol    Character,
int    x1,
int    y1,
int    Size
const [pure virtual]
 

virtual Dasher::Opts::FontSize Dasher::CDasherScreen::GetFontSize   [pure virtual]
 

int Dasher::CDasherScreen::GetHeight   const [inline]
 

int Dasher::CDasherScreen::GetWidth   const [inline]
 

virtual void Dasher::CDasherScreen::Polyline point   Points,
int    Number
const [pure virtual]
 

virtual void Dasher::CDasherScreen::SetFont std::string    Name [pure virtual]
 

Set the Dasher font (ie, the screen font) to Name

This is the font used to render letters in the main screen

virtual void Dasher::CDasherScreen::SetFontSize Dasher::Opts::FontSize    fontsize [pure virtual]
 

virtual void Dasher::CDasherScreen::SetInterface CDasherWidgetInterface   DasherInterface [inline, virtual]
 

virtual void Dasher::CDasherScreen::TextSize symbol    Character,
int *    Width,
int *    Height,
int    Size
const [pure virtual]
 


Member Data Documentation

CDasherWidgetInterface* Dasher::CDasherScreen::m_DasherInterface [protected]
 

const int Dasher::CDasherScreen::m_iHeight [protected]
 

const int Dasher::CDasherScreen::m_iWidth [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 23:23:14 2003 for Dasher by doxygen1.3-rc3