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

CSGradientArea Class Reference

#include <CSArea.h>

Inheritance diagram for CSGradientArea:

CSArea

Public Member Functions

virtual std::string getType ()
 CSGradientArea ()
virtual void paint (SDL_Surface *destination, SDL_Rect *parentViewport)
void setType (int type)
void setSecondColor (int color)

Static Public Attributes

const char * CLASS = "CSGradientArea"

Protected Attributes

int mType
int mSecondColor

Constructor & Destructor Documentation

CSGradientArea::CSGradientArea  ) 
 

Definition at line 60 of file CSArea.cpp.

References LOG_ENTER, LOG_EXIT, mSecondColor, mType, and TYPE_HORIZONTAL.

00061 {
00062     static char *functionName="CSRoundedArea";
00063     LOG_ENTER 
00064     mType = TYPE_HORIZONTAL;
00065     mSecondColor = 0;
00066     LOG_EXIT
00067 }


Member Function Documentation

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

Reimplemented from CSArea.

Definition at line 57 of file CSArea.h.

References CLASS.

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

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

Reimplemented from CSArea.

Definition at line 69 of file CSArea.cpp.

References SDLMain::horizgradient(), mSecondColor, mType, TYPE_HORIZONTAL, and SDLMain::vertgradient().

00070 {
00071     static char *functionName="paint";
00072     if (mType == TYPE_HORIZONTAL)
00073     {
00074         SDLMain::horizgradient(destination, *area, mColor, mSecondColor, 255);
00075         return;
00076     }
00077     SDLMain::vertgradient(destination, *area, mColor, mSecondColor, 255);
00078 }

Here is the call graph for this function:

void CSGradientArea::setType int  type  )  [inline]
 

Definition at line 60 of file CSArea.h.

References mType.

Referenced by CSLAF::getAreaInternal().

00060 {mType = type;}

void CSGradientArea::setSecondColor int  color  )  [inline]
 

Definition at line 61 of file CSArea.h.

References mSecondColor.

Referenced by CSLAF::getAreaInternal().

00061 {mSecondColor = color;}


Field Documentation

int CSGradientArea::mType [protected]
 

Definition at line 52 of file CSArea.h.

Referenced by CSGradientArea(), paint(), and setType().

int CSGradientArea::mSecondColor [protected]
 

Definition at line 53 of file CSArea.h.

Referenced by CSGradientArea(), paint(), and setSecondColor().

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

Reimplemented from CSArea.

Definition at line 13 of file CSArea.cpp.

Referenced by getType().


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