class CHuiCanvasGc : public CBase |
Public Member Functions | |
---|---|
CHuiCanvasGc() | |
~CHuiCanvasGc() | |
IMPORT_C void | CancelClipping() |
IMPORT_C void | Clear(const THuiRealRect &) |
IMPORT_C void | ClearRenderBuffer(CHuiCanvasRenderBuffer &, const TRect &) |
IMPORT_C void | ClearWithBackgroundItems(const THuiRealRect &, const RArray< THuiDisplayBackgroundItem > &) |
IMPORT_C void | ClearWithSkinBackground(const THuiRealRect &) |
IMPORT_C void | Clip(const TRect &) |
IMPORT_C void | ClipRegion(const TRegion &) |
IMPORT_C CHuiCanvasRenderBuffer * | CreateRenderBufferL(const TSize &) |
IMPORT_C void | DrawArc(const THuiRealRect &, const THuiRealPoint &, const THuiRealPoint &) |
IMPORT_C void | DrawEllipse(const THuiRealRect &) |
IMPORT_C void | DrawImage(const CHuiTexture &, const THuiRealRect &) |
IMPORT_C void | DrawImage(const CHuiTexture &, const THuiRealRect &, const THuiRealRect &) |
IMPORT_C void | DrawImage(const CHuiTexture &, const THuiRealRect &, const THuiRealRect &, CHuiGc::TStretchMode) |
IMPORT_C void | DrawImage(const CHuiCanvasRenderBuffer &, const THuiRealPoint &) |
IMPORT_C void | DrawLines(RArray< THuiRealLine > &) |
THuiCanvasDrawMode | DrawMode() |
IMPORT_C void | DrawPie(const THuiRealRect &, const THuiRealPoint &, const THuiRealPoint &) |
IMPORT_C void | DrawPoints(RArray< THuiRealPoint > &) |
IMPORT_C void | DrawPolygon(RArray< THuiRealPoint > &) |
IMPORT_C void | DrawRects(RArray< THuiRealRect > &) |
IMPORT_C void | DrawRoundRect(const THuiRealRect &, const THuiRealSize &) |
IMPORT_C void | DrawText(const CHuiTextMesh &, const THuiRealRect &) |
IMPORT_C void | EnableBlendingIfNeeded(const CHuiTexture *) |
void | EnableEffectiveOpacity(TBool) |
CHuiGc * | Gc() |
TClipRectVisibility | IsClipped(const TRegion &, const TRegion &) |
IMPORT_C void | LoadIdentity() |
TReal32 | Opacity() |
TRgb | PenColor() |
IMPORT_C TReal32 | PenWidth() |
IMPORT_C THuiFillMode | PolygonDrawMode() |
IMPORT_C CHuiTexture * | PolygonFillTexture() |
IMPORT_C TPoint | PolygonFillTextureOrigin() |
IMPORT_C void | PopTransformationMatrix() |
IMPORT_C void | PushTransformationMatrix() |
IMPORT_C void | RestoreFlaggedState() |
void | RestoreState() |
IMPORT_C void | Rotate(const TReal32 &, const TReal32 &, const TReal32 &, const TReal32 &) |
IMPORT_C void | Scale(const TReal32 &, const TReal32 &, const TReal32 &) |
IMPORT_C void | SetClippingMode(THuiCanvasClipMode) |
IMPORT_C void | SetDefaults() |
IMPORT_C void | SetDrawMode(THuiCanvasDrawMode) |
IMPORT_C void | SetGc(CHuiGc &) |
IMPORT_C void | SetOpacity(const TReal32 &) |
IMPORT_C void | SetPenColor(const TRgb &) |
IMPORT_C void | SetPenWidth(const TReal32 &) |
IMPORT_C void | SetPolygonDrawMode(THuiFillMode) |
IMPORT_C void | SetPolygonFillTexture(CHuiTexture *) |
IMPORT_C void | SetPolygonFillTextureOrigin(const TPoint &) |
IMPORT_C void | SetTextAlign(THuiAlignHorizontal, THuiAlignVertical) |
IMPORT_C void | SetTextStyle(TInt) |
IMPORT_C void | SetVisual(const CHuiCanvasVisual &) |
IMPORT_C TInt | TextHorizontalAlign() |
IMPORT_C TInt | TextStyle() |
IMPORT_C TInt | TextVerticalAlign() |
IMPORT_C void | Translate(const TReal32 &, const TReal32 &, const TReal32 &) |
CHuiCanvasVisual * | Visual() |
Public Member Enumerations | |
---|---|
enum | TClipRectVisibility { EFullyOutside, EFullyInside, EPartialOverlap, EUnknown } |
IMPORT_C void | Clear | ( | const THuiRealRect & | aRect | ) | [virtual] |
Background drawing
const THuiRealRect & aRect |
IMPORT_C void | ClearRenderBuffer | ( | CHuiCanvasRenderBuffer & | aImage, |
const TRect & | aRect | |||
) | [virtual] |
CHuiCanvasRenderBuffer & aImage | |
const TRect & aRect |
IMPORT_C void | ClearWithBackgroundItems | ( | const THuiRealRect & | aRect, |
const RArray< THuiDisplayBackgroundItem > & | aItems | |||
) | [virtual] |
const THuiRealRect & aRect | |
const RArray< THuiDisplayBackgroundItem > & aItems |
IMPORT_C void | ClearWithSkinBackground | ( | const THuiRealRect & | aRect | ) | [virtual] |
const THuiRealRect & aRect |
IMPORT_C void | ClipRegion | ( | const TRegion & | aClipRegion | ) |
const TRegion & aClipRegion |
IMPORT_C CHuiCanvasRenderBuffer * | CreateRenderBufferL | ( | const TSize & | aSize | ) | [virtual] |
Render buffer handling
const TSize & aSize |
IMPORT_C void | DoClearRenderBuffer | ( | CHuiCanvasRenderBuffer & | aImage, |
const TRect & | aRect | |||
) | [protected, virtual] |
CHuiCanvasRenderBuffer & aImage | |
const TRect & aRect |
IMPORT_C void | DoDrawArc | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealPoint & | aStart, | |||
const THuiRealPoint & | aEnd | |||
) | [protected, virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealPoint & aStart | |
const THuiRealPoint & aEnd |
IMPORT_C void | DoDrawLines | ( | RArray< THuiRealLine > & | aLines | ) | [protected, virtual] |
RArray< THuiRealLine > & aLines |
IMPORT_C void | DoDrawPie | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealPoint & | aStart, | |||
const THuiRealPoint & | aEnd | |||
) | [protected, virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealPoint & aStart | |
const THuiRealPoint & aEnd |
IMPORT_C void | DoDrawPoints | ( | RArray< THuiRealPoint > & | aPoints | ) | [protected, virtual] |
RArray< THuiRealPoint > & aPoints |
IMPORT_C void | DoDrawPolygon | ( | RArray< THuiRealPoint > & | aPoints | ) | [protected, virtual] |
RArray< THuiRealPoint > & aPoints |
IMPORT_C void | DoDrawRects | ( | RArray< THuiRealRect > & | aRects | ) | [protected, virtual] |
Drawing ops implementations, render specific code typically overrides these
RArray< THuiRealRect > & aRects |
IMPORT_C void | DoDrawRenderBuffer | ( | const CHuiCanvasRenderBuffer & | aImage, |
const THuiRealPoint & | aDestinationPoint | |||
) | [protected, virtual] |
const CHuiCanvasRenderBuffer & aImage | |
const THuiRealPoint & aDestinationPoint |
IMPORT_C void | DoDrawRoundRect | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealSize & | aSize | |||
) | [protected, virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealSize & aSize |
IMPORT_C void | DrawArc | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealPoint & | aStart, | |||
const THuiRealPoint & | aEnd | |||
) | [virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealPoint & aStart | |
const THuiRealPoint & aEnd |
IMPORT_C void | DrawEllipse | ( | const THuiRealRect & | aDestinationRect | ) | [virtual] |
const THuiRealRect & aDestinationRect |
IMPORT_C void | DrawImage | ( | const CHuiTexture & | aImage, |
const THuiRealRect & | aDestinationRect | |||
) | [virtual] |
Drawing ops. Although these are virtual, render specific code is typically at DoDrawXXX method overrides
const CHuiTexture & aImage | |
const THuiRealRect & aDestinationRect |
IMPORT_C void | DrawImage | ( | const CHuiTexture & | aImage, |
const THuiRealRect & | aDestinationRect, | |||
const THuiRealRect & | aSourceRect | |||
) | [virtual] |
const CHuiTexture & aImage | |
const THuiRealRect & aDestinationRect | |
const THuiRealRect & aSourceRect |
IMPORT_C void | DrawImage | ( | const CHuiTexture & | aImage, |
const THuiRealRect & | aDestinationRect, | |||
const THuiRealRect & | aSourceRect, | |||
CHuiGc::TStretchMode | aStretchMode | |||
) | [virtual] |
const CHuiTexture & aImage | |
const THuiRealRect & aDestinationRect | |
const THuiRealRect & aSourceRect | |
CHuiGc::TStretchMode aStretchMode |
IMPORT_C void | DrawImage | ( | const CHuiCanvasRenderBuffer & | aImage, |
const THuiRealPoint & | aDestinationPoint | |||
) | [virtual] |
const CHuiCanvasRenderBuffer & aImage | |
const THuiRealPoint & aDestinationPoint |
IMPORT_C void | DrawLines | ( | RArray< THuiRealLine > & | aLines | ) | [virtual] |
RArray< THuiRealLine > & aLines |
IMPORT_C void | DrawPie | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealPoint & | aStart, | |||
const THuiRealPoint & | aEnd | |||
) | [virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealPoint & aStart | |
const THuiRealPoint & aEnd |
IMPORT_C void | DrawPoints | ( | RArray< THuiRealPoint > & | aPoints | ) | [virtual] |
RArray< THuiRealPoint > & aPoints |
IMPORT_C void | DrawPolygon | ( | RArray< THuiRealPoint > & | aPoints | ) | [virtual] |
RArray< THuiRealPoint > & aPoints |
IMPORT_C void | DrawRects | ( | RArray< THuiRealRect > & | aRects | ) | [virtual] |
RArray< THuiRealRect > & aRects |
IMPORT_C void | DrawRoundRect | ( | const THuiRealRect & | aDestinationRect, |
const THuiRealSize & | aSize | |||
) | [virtual] |
const THuiRealRect & aDestinationRect | |
const THuiRealSize & aSize |
IMPORT_C void | DrawText | ( | const CHuiTextMesh & | aTextMesh, |
const THuiRealRect & | aDestinationRect | |||
) | [virtual] |
const CHuiTextMesh & aTextMesh | |
const THuiRealRect & aDestinationRect |
IMPORT_C void | EnableBlendingIfNeeded | ( | const CHuiTexture * | aTexture = NULL | ) |
Misc
const CHuiTexture * aTexture = NULL |
IMPORT_C TClipRectVisibility | EnableDelayedClippingIfNeeded | ( | const THuiRealRect & | aUpdatedRect | ) | [protected] |
const THuiRealRect & aUpdatedRect |
IMPORT_C TClipRectVisibility | EnableDelayedClippingIfNeeded | ( | const RArray< THuiRealPoint > & | aUpdatedPoints | ) | [protected] |
const RArray< THuiRealPoint > & aUpdatedPoints |
IMPORT_C TClipRectVisibility | EnableDelayedClippingIfNeeded | ( | const RArray< THuiRealLine > & | aUpdatedLines | ) | [protected] |
const RArray< THuiRealLine > & aUpdatedLines |
IMPORT_C TClipRectVisibility | EnableDelayedClippingIfNeeded | ( | const RArray< THuiRealRect > & | aUpdatedRects | ) | [protected] |
const RArray< THuiRealRect > & aUpdatedRects |
void | EnableEffectiveOpacity | ( | TBool | aEnable | ) |
Enables (or disables) effective opacity, which means that visuals effective opacity is used to calculate real pen opacity. By default effective opacity is enabled.
TBool aEnable |
TClipRectVisibility | IsClipped | ( | const TRegion & | aTestedRegion, |
const TRegion & | aClippingRegion | |||
) | const |
Clipping helpers
TClipRectVisibility | IsClipped | ( | const TRect & | aRect | ) | const [protected] |
Clipping helpers
const TRect & aRect |
TClipRectVisibility | IsClipped | ( | const TPoint & | aPoint | ) | const [protected] |
const TPoint & aPoint |
TClipRectVisibility | IsClipped | ( | const TRect & | aRect, |
const TRegion & | aClippingRegion | |||
) | const [protected] |
TClipRectVisibility | IsClipped | ( | const TPoint & | aPoint, |
const TRegion & | aClippingRegion | |||
) | const [protected] |
IMPORT_C TInt | MaxNumberOfClipRects | ( | ) | const [protected, virtual] |
Misc clipping related methods
IMPORT_C void | RestoreFlaggedState | ( | ) | const [virtual] |
Restores gc state (uses gc state dirty flags (if renderer supports) to avoid unnecessary restore ops
IMPORT_C void | Rotate | ( | const TReal32 & | aAngle, |
const TReal32 & | aX, | |||
const TReal32 & | aY, | |||
const TReal32 & | aZ | |||
) | [virtual] |
IMPORT_C void | Scale | ( | const TReal32 & | aX, |
const TReal32 & | aY, | |||
const TReal32 & | aZ | |||
) | [virtual] |
IMPORT_C void | SetClippingMode | ( | THuiCanvasClipMode | aClipMode | ) |
Clipping ops
THuiCanvasClipMode aClipMode |
IMPORT_C void | SetDrawMode | ( | THuiCanvasDrawMode | aDrawMode | ) | [virtual] |
THuiCanvasDrawMode aDrawMode |
IMPORT_C void | SetOpacity | ( | const TReal32 & | aOpacity | ) | [virtual] |
const TReal32 & aOpacity |
IMPORT_C void | SetPenColor | ( | const TRgb & | aColor | ) | [virtual] |
const TRgb & aColor |
IMPORT_C void | SetPenWidth | ( | const TReal32 & | aWidth | ) | [virtual] |
const TReal32 & aWidth |
IMPORT_C void | SetPolygonDrawMode | ( | THuiFillMode | aPolygonDrawMode | ) | [virtual] |
THuiFillMode aPolygonDrawMode |
IMPORT_C void | SetPolygonFillTexture | ( | CHuiTexture * | aTexture | ) | [virtual] |
CHuiTexture * aTexture |
IMPORT_C void | SetPolygonFillTextureOrigin | ( | const TPoint & | aOrigin | ) | [virtual] |
const TPoint & aOrigin |
IMPORT_C void | SetTextAlign | ( | THuiAlignHorizontal | aAlignHorizontal, |
THuiAlignVertical | aAlignVertical | |||
) | [virtual] |
THuiAlignHorizontal aAlignHorizontal | |
THuiAlignVertical aAlignVertical |
IMPORT_C void | SetVisual | ( | const CHuiCanvasVisual & | aVisual | ) | [virtual] |
const CHuiCanvasVisual & aVisual |
IMPORT_C void | Translate | ( | const TReal32 & | aX, |
const TReal32 & | aY, | |||
const TReal32 & | aZ | |||
) | [virtual] |
RRegionBuf< KHuiCanvasGcRegionGranularity > | iClippingRegion | [protected] |
Clipping attributes
RRegionBuf< KHuiCanvasGcRegionGranularity > | iDelayedClipRegion | [protected] |
Delayed clipping attributes
TBool | iEffectiveOpacityEnabled | [protected] |
Flag to decide wheter pen alpha is to be multiplied with visual effective opacity
CHuiTexture * | iPolygonFillTexture | [protected] |
Polygon fill texture, NOT owned
RRegionBuf< KHuiCanvasGcRegionGranularity > | iTempRegion | [protected] |
Temp region
RRegionBuf< KHuiCanvasGcRegionGranularity > | iTempRegion2 | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.