Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

SDLXpSurfaceDriver Class Reference

#include <sdxpsdl.h>

Inheritance diagram for SDLXpSurfaceDriver:

Inheritance graph
[legend]
Collaboration diagram for SDLXpSurfaceDriver:

Collaboration graph
[legend]

Public Member Functions

void penstyle (const char *)
void line (double x1, double y1, double x2, double y2)
void rectangle (double x1, double y1, double x2, double y2)
void dot (double x1, double y1)
void circle (double x1, double y1, int radius)
void bezier (double x1, double y1, double x2, double y2, double x3, double y3)
virtual void fill_h_triangle (double x1, double y1, double x2, double y2, double x3)
virtual void fill_v_triangle (double x1, double y1, double x2, double y2, double y3)
void repaint (void)
void clear (void)
void clear_rect (int, int, int, int)
void repaint_rect (int, int, int, int)
virtual void textout (double x1, double y1, const char *text)
virtual void textrect (double x1, double y1, double x2, double y2, const char *text)
virtual void setfont (const char *font)
virtual void setfontsize (int)
virtual void setjustification (textjustify)
bool rectfits (double, double, double, double)
 SDLXpSurfaceDriver (int, int)
 SDLXpSurfaceDriver (SDL_Surface *)
 SDLXpSurfaceDriver (SDL_Surface *, int, int)
 ~SDLXpSurfaceDriver ()

Static Protected Member Functions

Uint16 rgb216b (char, char, char)

Protected Attributes

XpWindow * xw

Constructor & Destructor Documentation

SDLXpSurfaceDriver::SDLXpSurfaceDriver int  ,
int 
 

SDLXpSurfaceDriver::SDLXpSurfaceDriver SDL_Surface *   ) 
 

SDLXpSurfaceDriver::SDLXpSurfaceDriver SDL_Surface *  ,
int  ,
int 
 

SDLXpSurfaceDriver::~SDLXpSurfaceDriver  ) 
 


Member Function Documentation

Uint16 SDLXpSurfaceDriver::rgb216b char  ,
char  ,
char 
[static, protected]
 

void SDLXpSurfaceDriver::penstyle const char *   )  [virtual]
 

Implements SurfaceDriver.

void SDLXpSurfaceDriver::line double  x1,
double  y1,
double  x2,
double  y2
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::rectangle double  x1,
double  y1,
double  x2,
double  y2
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::dot double  x1,
double  y1
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::circle double  x1,
double  y1,
int  radius
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::bezier double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3
[virtual]
 

Implements SurfaceDriver.

void SDLXpSurfaceDriver::fill_h_triangle double  x1,
double  y1,
double  x2,
double  y2,
double  x3
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::fill_v_triangle double  x1,
double  y1,
double  x2,
double  y2,
double  y3
[virtual]
 

Implements SurfaceDriver.

Here is the call graph for this function:

void SDLXpSurfaceDriver::repaint void   )  [virtual]
 

Reimplemented from SDLSurfaceDriver.

void SDLXpSurfaceDriver::clear void   ) 
 

void SDLXpSurfaceDriver::clear_rect int  ,
int  ,
int  ,
int 
 

void SDLXpSurfaceDriver::repaint_rect int  ,
int  ,
int  ,
int 
[virtual]
 

Reimplemented from SDLSurfaceDriver.

void SDLXpSurfaceDriver::textout double  x1,
double  y1,
const char *  text
[virtual]
 

Implements SurfaceDriver.

Reimplemented in AEDXpSurfaceDriver.

void SDLXpSurfaceDriver::textrect double  x1,
double  y1,
double  x2,
double  y2,
const char *  text
[virtual]
 

Implements SurfaceDriver.

Reimplemented in AEDXpSurfaceDriver.

void SDLXpSurfaceDriver::setfont const char *  font  )  [virtual]
 

Implements SurfaceDriver.

Reimplemented in AEDXpSurfaceDriver.

void SDLXpSurfaceDriver::setfontsize int   )  [virtual]
 

Implements SurfaceDriver.

Reimplemented in AEDXpSurfaceDriver.

void SDLXpSurfaceDriver::setjustification textjustify   )  [virtual]
 

Implements SurfaceDriver.

Reimplemented in AEDXpSurfaceDriver.

bool SDLXpSurfaceDriver::rectfits double  ,
double  ,
double  ,
double 
[virtual]
 

This function returns true if the passed rectangle fits the surface. The default does a straight rectangle fit check. Depending on implementation details of your surface driver, you might want to change this function to return true if any overlap exists, or, like the Xp driver, use a safe bound area of x percent of the canvas.

Reimplemented from SurfaceDriver.


Field Documentation

XpWindow* SDLXpSurfaceDriver::xw [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:39 2004 for cZUI by doxygen 1.3.5