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

CGfxScreen Class Reference

#include <CGfxScreen.h>

List of all members.

Public Methods

 CGfxScreen ()
 Constructor. More...

 CGfxScreen (int ScreenID, int xsize, int ysize)
 Constructor. More...

 ~CGfxScreen ()
 Destructor. More...

void setScreen (int ScreenID, int xsize, int ysize)
 Set the paramets of the screen. More...

void drawText (string str, int x, int y, int style=TS_NOSTYLE)
 Draws text to the display. More...

void putPixel (int x, int y)
 Puts a pixel on the screen at (x,y). More...

void drawLine (int x1, int y1, int x2, int y2)
 Draws a line on the screen. More...

void drawBox (int x1, int y1, int x2, int y2)
 Draws a box on the screen. More...

void clear ()
 Clears the screen. More...

int getXSize ()
 Returns x size of screen. More...

int getYSize ()
 Returns y size of screen. More...

void drawGrid (int x1, int y1, int x2, int y2, int rows, int cols)
 Draws a grid from (x1,y1) to (x2,y2) with given # of rows and columns. More...


Detailed Description

Class to encapsulate the 2 graphics screen on the inside of the device


Constructor & Destructor Documentation

CGfxScreen::CGfxScreen  
 

Constructor.

CGfxScreen::CGfxScreen int    ScreenID,
int    xsize,
int    ysize
 

Constructor.

Parameters:
ScreenID  Dijinni API ID of the screen
xsize  Width of the screen
ysize  Height of the screen

CGfxScreen::~CGfxScreen  
 

Destructor.


Member Function Documentation

void CGfxScreen::clear  
 

Clears the screen.

void CGfxScreen::drawBox int    x1,
int    y1,
int    x2,
int    y2
 

Draws a box on the screen.

Parameters:
x1  Start point x
y1  Start point y
x2  End point x
y2  End point y

void CGfxScreen::drawGrid int    x1,
int    y1,
int    x2,
int    y2,
int    rows,
int    cols
 

Draws a grid from (x1,y1) to (x2,y2) with given # of rows and columns.

void CGfxScreen::drawLine int    x1,
int    y1,
int    x2,
int    y2
 

Draws a line on the screen.

Parameters:
x1  Start point x
y1  Start point y
x2  End point x
y2  End point y

void CGfxScreen::drawText string    str,
int    x,
int    y,
int    style = TS_NOSTYLE
 

Draws text to the display.

Parameters:
str  Text to draw
x  X-position to draw text to
y  Y-position to draw text to
style  Style of text (TS_*)

int CGfxScreen::getXSize  
 

Returns x size of screen.

int CGfxScreen::getYSize  
 

Returns y size of screen.

void CGfxScreen::putPixel int    x,
int    y
 

Puts a pixel on the screen at (x,y).

Parameters:
x  X-position of pixel
y  Y-position of pixel

void CGfxScreen::setScreen int    ScreenID,
int    xsize,
int    ysize
 

Set the paramets of the screen.

Parameters:
ScreenID  Dijinni API ID of the screen
xsize  Width of the screen
ysize  Height of the screen


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:53 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001