|
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_OffscreenCanvas * | fGradientCanvas |
| 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) |