Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Gradient Class Reference

Inheritance diagram for CP_Gradient:

CP_NoCopy List of all members.

Public Member Functions

 CP_Gradient ()
virtual ~CP_Gradient ()
CP_E_GradientType GetGradiientType ()
SInt16 GetGradientAngle ()
SInt16 GetNumberGradients ()
void Draw (CP_Canvas &inDestCanvas, CP_Rect &inDestBounds, CP_Region &inDestRegion)
virtual void BuildGradient (CP_Canvas &inDestCanvas, CP_Rect &inDestBounds, CP_Point &inCenterPoint)
void SetGradiientType (CP_E_GradientType inGradientType)
void SetGradientAngle (SInt16 inAngle)
void SetColor (const SInt16 inIndex, const CP_RGBColor &inColour)
void SetGradientCount (SInt16 inGradientCount)

Protected Attributes

CP_E_GradientType fGradientType
SInt16 fGradientCount
CP_RGBColor fColors [kCP_MaxGradientColors]
SInt16 fOffsets [kCP_MaxGradientColors]
SInt16 fGradientAngle
CP_Region fDestRegion
CP_OffscreenCanvasfGradientCanvas
bool fNeedsBuilding

Private Member Functions

void Init ()
SInt32 CalcGradientRange (CP_Rect &inBounds, CP_Point &inCenterPoint)
void CalcGradientColors (SInt32 inRange, CP_RGBColor &inOutColorOne, CP_RGBColor &inOutColorTwo, CP_E_GradientColorInfo *inOutGradientInfo)
void AdjustColor (CP_RGBColor &inOutColor, CP_E_GradientColorInfo *inOutGradientInfo)
void CalcEnclosingBounds (CP_Rect &inOutBounds, CP_Point &inCenterPoint)
void BuildRect (CP_Rect &inDestBounds, CP_Point &inCenterPoint, CP_E_GradientType inGradientType)
void BuildRadial (CP_Rect &inBounds, CP_Point &inCenterPoint)
void BuildSunburst (CP_Rect &inBounds, CP_Point &inCenterPoint, CP_E_GradientType inGradientType)
void BuildShapeburst (CP_Rect &inBounds, CP_Point &inCenterPoint)
void BuildAngled (CP_Rect &inBounds)
UInt16 CP_FixedToColor (CP_Fixed inValue)

Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_Gradient::CP_Gradient  ) 
 

CP_Gradient::~CP_Gradient  )  [virtual]
 


Member Function Documentation

CP_E_GradientType CP_Gradient::GetGradiientType  ) 
 

SInt16 CP_Gradient::GetGradientAngle  ) 
 

SInt16 CP_Gradient::GetNumberGradients  ) 
 

void CP_Gradient::Draw CP_Canvas inDestCanvas,
CP_Rect inDestBounds,
CP_Region inDestRegion
 

void CP_Gradient::BuildGradient CP_Canvas inDestCanvas,
CP_Rect inDestBounds,
CP_Point inCenterPoint
[virtual]
 

void CP_Gradient::SetGradiientType CP_E_GradientType  inGradientType  ) 
 

void CP_Gradient::SetGradientAngle SInt16  inAngle  ) 
 

void CP_Gradient::SetColor const SInt16  inIndex,
const CP_RGBColor inColour
 

void CP_Gradient::SetGradientCount SInt16  inGradientCount  ) 
 

void CP_Gradient::Init  )  [private]
 

SInt32 CP_Gradient::CalcGradientRange CP_Rect inBounds,
CP_Point inCenterPoint
[private]
 

void CP_Gradient::CalcGradientColors SInt32  inRange,
CP_RGBColor inOutColorOne,
CP_RGBColor inOutColorTwo,
CP_E_GradientColorInfo inOutGradientInfo
[private]
 

void CP_Gradient::AdjustColor CP_RGBColor inOutColor,
CP_E_GradientColorInfo inOutGradientInfo
[private]
 

void CP_Gradient::CalcEnclosingBounds CP_Rect inOutBounds,
CP_Point inCenterPoint
[private]
 

void CP_Gradient::BuildRect CP_Rect inDestBounds,
CP_Point inCenterPoint,
CP_E_GradientType  inGradientType
[private]
 

void CP_Gradient::BuildRadial CP_Rect inBounds,
CP_Point inCenterPoint
[private]
 

void CP_Gradient::BuildSunburst CP_Rect inBounds,
CP_Point inCenterPoint,
CP_E_GradientType  inGradientType
[private]
 

void CP_Gradient::BuildShapeburst CP_Rect inBounds,
CP_Point inCenterPoint
[private]
 

void CP_Gradient::BuildAngled CP_Rect inBounds  )  [private]
 

UInt16 CP_Gradient::CP_FixedToColor CP_Fixed  inValue  )  [private]
 


Member Data Documentation

CP_E_GradientType CP_Gradient::fGradientType [protected]
 

SInt16 CP_Gradient::fGradientCount [protected]
 

CP_RGBColor CP_Gradient::fColors[kCP_MaxGradientColors] [protected]
 

SInt16 CP_Gradient::fOffsets[kCP_MaxGradientColors] [protected]
 

SInt16 CP_Gradient::fGradientAngle [protected]
 

CP_Region CP_Gradient::fDestRegion [protected]
 

CP_OffscreenCanvas* CP_Gradient::fGradientCanvas [protected]
 

bool CP_Gradient::fNeedsBuilding [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:42 2005 for CPLAT by  doxygen 1.4.0