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

CSRoundedArea Class Reference

#include <CSArea.h>

Inheritance diagram for CSRoundedArea:

CSArea

Public Member Functions

virtual std::string getType ()
 CSRoundedArea ()
virtual void paint (SDL_Surface *destination, SDL_Rect *parentViewport)
void setCorner (int corner)

Static Public Attributes

const char * CLASS = "CSRoundedArea"

Protected Attributes

int mCorner

Constructor & Destructor Documentation

CSRoundedArea::CSRoundedArea  ) 
 

Definition at line 46 of file CSArea.cpp.

References LOG_ENTER, LOG_EXIT, and mCorner.

00047 {
00048     static char *functionName="CSRoundedArea";
00049     LOG_ENTER 
00050     mCorner = 4;
00051     LOG_EXIT
00052 }


Member Function Documentation

virtual std::string CSRoundedArea::getType  )  [inline, virtual]
 

Reimplemented from CSArea.

Definition at line 42 of file CSArea.h.

References CLASS.

00042 {return (std::string) CLASS;}

void CSRoundedArea::paint SDL_Surface *  destination,
SDL_Rect *  parentViewport
[virtual]
 

Reimplemented from CSArea.

Definition at line 54 of file CSArea.cpp.

References SDLMain::DrawRoundRectFill(), and mCorner.

00055 {
00056     static char *functionName="paint";
00057     SDLMain::DrawRoundRectFill(destination, area->x, area->y, area->w, area->h, mColor, mCorner);
00058 }

Here is the call graph for this function:

void CSRoundedArea::setCorner int  corner  )  [inline]
 

Definition at line 45 of file CSArea.h.

References mCorner.

Referenced by CSLAF::getAreaInternal().

00045 {mCorner = corner;}


Field Documentation

int CSRoundedArea::mCorner [protected]
 

Definition at line 38 of file CSArea.h.

Referenced by CSRoundedArea(), paint(), and setCorner().

const char * CSRoundedArea::CLASS = "CSRoundedArea" [static]
 

Reimplemented from CSArea.

Definition at line 12 of file CSArea.cpp.

Referenced by getType().


Generated on Wed Jul 14 00:45:00 2004 for CSLib by doxygen 1.3.6