#include <CSArea.h>
Inheritance diagram for CSGradientArea:
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 |
|
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 } |
|
Reimplemented from CSArea. Definition at line 57 of file CSArea.h. References CLASS.
00057 {return (std::string) CLASS;} |
|
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:
|
Definition at line 60 of file CSArea.h. References mType. Referenced by CSLAF::getAreaInternal().
00060 {mType = type;} |
|
Definition at line 61 of file CSArea.h. References mSecondColor. Referenced by CSLAF::getAreaInternal().
00061 {mSecondColor = color;} |
|
Definition at line 52 of file CSArea.h. Referenced by CSGradientArea(), paint(), and setType(). |
|
Definition at line 53 of file CSArea.h. Referenced by CSGradientArea(), paint(), and setSecondColor(). |
|
Reimplemented from CSArea. Definition at line 13 of file CSArea.cpp. Referenced by getType(). |