Screen Class Reference

#include <screen.h>

List of all members.

Public Member Functions

 Screen ()
 ~Screen ()
int get_height ()
int get_width ()
int get_depth ()
int configure (int width, int height, int depth)
void update_screen ()
void update_rect (SDL_Rect dest)
SDL_Surface * get_screen ()
int draw (SDL_Surface *s, SDL_Rect src, SDL_Rect dest)
int blankblit (SDL_Surface *s, SDL_Rect src)
int blank (SDL_Rect src)
int blit (SDL_Surface *s, SDL_Rect dest)
int textwidth (char *string)
int textwidthsy (char *string)
int textwidthsb (char *string)
void write (char *string, int x, int y, int color, int scale)
void writesy (char *string, int x, int y)
void writesb (char *string, int x, int y)
void operator= (Screen &source)

Public Attributes

SDL_Surface * screen

Private Attributes

int height
int width
int depth
SFont_Font * YFont
SFont_Font * BFont

Friends

class Coolfont


Detailed Description

Definition at line 45 of file screen.h.


Constructor & Destructor Documentation

Screen::Screen (  ) 

Definition at line 32 of file screen.cpp.

References BFont, depth, height, screen, width, and YFont.

Screen::~Screen (  ) 

Definition at line 48 of file screen.cpp.

References BFont, screen, and YFont.


Member Function Documentation

int Screen::get_height (  ) 

Definition at line 54 of file screen.cpp.

References height.

Referenced by BGDraw::initialize(), and Menu::run().

int Screen::get_width (  ) 

Definition at line 58 of file screen.cpp.

References width.

Referenced by BGDraw::initialize(), and Menu::run().

int Screen::get_depth (  ) 

Definition at line 62 of file screen.cpp.

References depth.

int Screen::configure ( int  width,
int  height,
int  depth 
)

Definition at line 66 of file screen.cpp.

References depth, height, screen, and width.

Referenced by main().

void Screen::update_screen (  ) 

Definition at line 80 of file screen.cpp.

References screen.

Referenced by main(), and Menu::run().

void Screen::update_rect ( SDL_Rect  dest  ) 

Definition at line 86 of file screen.cpp.

References screen.

Referenced by Menu::run().

SDL_Surface * Screen::get_screen (  ) 

Definition at line 90 of file screen.cpp.

References screen.

int Screen::draw ( SDL_Surface *  s,
SDL_Rect  src,
SDL_Rect  dest 
)

Definition at line 94 of file screen.cpp.

References screen.

int Screen::blankblit ( SDL_Surface *  s,
SDL_Rect  src 
)

Definition at line 105 of file screen.cpp.

References blank(), makerect(), and screen.

Referenced by Menu::run().

int Screen::blank ( SDL_Rect  src  ) 

Definition at line 112 of file screen.cpp.

References screen.

Referenced by blankblit(), BGDraw::initialize(), and Menu::run().

int Screen::blit ( SDL_Surface *  s,
SDL_Rect  dest 
)

int Screen::textwidth ( char *  string  ) 

Definition at line 118 of file screen.cpp.

int Screen::textwidthsy ( char *  string  ) 

Definition at line 122 of file screen.cpp.

References YFont.

int Screen::textwidthsb ( char *  string  ) 

Definition at line 126 of file screen.cpp.

References BFont.

void Screen::write ( char *  string,
int  x,
int  y,
int  color,
int  scale 
)

Definition at line 130 of file screen.cpp.

References screen.

Referenced by Menu::run(), and Stats::update().

void Screen::writesy ( char *  string,
int  x,
int  y 
)

Definition at line 136 of file screen.cpp.

References screen, and YFont.

void Screen::writesb ( char *  string,
int  x,
int  y 
)

Definition at line 140 of file screen.cpp.

References BFont, and screen.

void Screen::operator= ( Screen source  ) 

Definition at line 144 of file screen.cpp.

References BFont, depth, height, screen, width, and YFont.


Friends And Related Function Documentation

friend class Coolfont [friend]

Definition at line 46 of file screen.h.


Member Data Documentation

int Screen::height [private]

Definition at line 48 of file screen.h.

Referenced by configure(), get_height(), operator=(), and Screen().

int Screen::width [private]

Definition at line 48 of file screen.h.

Referenced by configure(), get_width(), operator=(), and Screen().

int Screen::depth [private]

Definition at line 48 of file screen.h.

Referenced by configure(), get_depth(), operator=(), and Screen().

SFont_Font* Screen::YFont [private]

Definition at line 49 of file screen.h.

Referenced by operator=(), Screen(), textwidthsy(), writesy(), and ~Screen().

SFont_Font* Screen::BFont [private]

Definition at line 50 of file screen.h.

Referenced by operator=(), Screen(), textwidthsb(), writesb(), and ~Screen().

SDL_Surface* Screen::screen


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

Generated on Thu May 22 10:42:43 2008 for piedmont by  doxygen 1.5.5