class MWsGraphicsContext : public MWsObjectProvider |
Render Stage abstract graphics context.
This interface is provided by Render Stages. It abstracts the graphics context of the pixel target. The intention is to allow Render Stages to intercept draw operations so that they can be batched (to reduce flickering), modified (to provide transition effects), or re-directed (to alternate back-end architectures).
Inherited Functions | |
---|---|
MWsObjectProvider::ObjectInterface() | |
MWsObjectProvider::ObjectInterface()const | |
MWsObjectProvider::ResolveObjectInterface(TUint) |
Public Member Enumerations | |
---|---|
enum | anonymous { EWsObjectInterfaceId = KMWsGraphicsContext } |
enum |
TBrushStyle
{
ENullBrush , ESolidBrush , EPatternedBrush , EVerticalHatchBrush , EForwardDiagonalHatchBrush , EHorizontalHatchBrush , ERearwardDiagonalHatchBrush , ESquareCrossHatchBrush , EDiamondCrossHatchBrush } |
enum | TDrawMode { EDrawModePEN = 32, EDrawModeWriteAlpha = 64 } |
enum | TFillRule { EAlternate , EWinding } |
enum | TFontStrikethrough { EStrikethroughOff , EStrikethroughOn } |
enum | TFontUnderline { EUnderlineOff , EUnderlineOn } |
enum |
TPenStyle
{
ENullPen , ESolidPen , EDottedPen , EDashedPen , EDotDashPen , EDotDotDashPen } |
enum | TTextAlign { ELeft , ECenter , ERight } |
void | BitBlt | ( | const TPoint & | aDestPos, |
const CFbsBitmap & | aSourceBitmap | |||
) | [pure virtual] |
const TPoint & aDestPos | |
const CFbsBitmap & aSourceBitmap |
void | BitBlt | ( | const TPoint & | aDestPos, |
const CFbsBitmap & | aSourceBitmap, | |||
const TRect & | aSourceRect | |||
) | [pure virtual] |
const TPoint & aDestPos | |
const CFbsBitmap & aSourceBitmap | |
const TRect & aSourceRect |
void | BitBltMasked | ( | const TPoint & | aDestPos, |
const CFbsBitmap & | aSourceBitmap, | |||
const TRect & | aSourceRect, | |||
const CFbsBitmap & | aMaskBitmap, | |||
TBool | aInvertMask | |||
) | [pure virtual] |
const TPoint & aDestPos | |
const CFbsBitmap & aSourceBitmap | |
const TRect & aSourceRect | |
const CFbsBitmap & aMaskBitmap | |
TBool aInvertMask |
void | BitBltMasked | ( | const TPoint & | aDestPos, |
const CFbsBitmap & | aSourceBitmap, | |||
const TRect & | aSourceRect, | |||
const CFbsBitmap & | aMaskBitmap, | |||
const TPoint & | aMaskPos | |||
) | [pure virtual] |
const TPoint & aDestPos | |
const CFbsBitmap & aSourceBitmap | |
const TRect & aSourceRect | |
const CFbsBitmap & aMaskBitmap | |
const TPoint & aMaskPos |
void | Clear | ( | const TRect & | aRect | ) | [pure virtual] |
const TRect & aRect |
const TRegion & | ClippingRegion | ( | ) | [pure virtual] |
The clipping region currently being used
void | CopyRect | ( | const TPoint & | aOffset, |
const TRect & | aRect | |||
) | [pure virtual] |
void | DrawArc | ( | const TRect & | aRect, |
const TPoint & | aStart, | |||
const TPoint & | aEnd | |||
) | [pure virtual] |
void | DrawBitmap | ( | const TRect & | aDestRect, |
const CFbsBitmap & | aSourceBitmap | |||
) | [pure virtual] |
const TRect & aDestRect | |
const CFbsBitmap & aSourceBitmap |
void | DrawBitmap | ( | const TRect & | aDestRect, |
const CFbsBitmap & | aSourceBitmap, | |||
const TRect & | aSourceRect | |||
) | [pure virtual] |
const TRect & aDestRect | |
const CFbsBitmap & aSourceBitmap | |
const TRect & aSourceRect |
void | DrawBitmapMasked | ( | const TRect & | aDestRect, |
const CFbsBitmap & | aSourceBitmap, | |||
const TRect & | aSourceRect, | |||
const CFbsBitmap & | aMaskBitmap, | |||
TBool | aInvertMask | |||
) | [pure virtual] |
const TRect & aDestRect | |
const CFbsBitmap & aSourceBitmap | |
const TRect & aSourceRect | |
const CFbsBitmap & aMaskBitmap | |
TBool aInvertMask |
void | DrawEllipse | ( | const TRect & | aRect | ) | [pure virtual] |
const TRect & aRect |
void | DrawLine | ( | const TPoint & | aStart, |
const TPoint & | aEnd | |||
) | [pure virtual] |
void | DrawLineBy | ( | const TPoint & | aVector | ) | [pure virtual] |
const TPoint & aVector |
void | DrawLineTo | ( | const TPoint & | aPoint | ) | [pure virtual] |
const TPoint & aPoint |
void | DrawPie | ( | const TRect & | aRect, |
const TPoint & | aStart, | |||
const TPoint & | aEnd | |||
) | [pure virtual] |
void | DrawPolyLine | ( | const TArray < TPoint > & | aPointList | ) | [pure virtual] |
void | DrawPolyLineNoEndPoint | ( | const TArray < TPoint > & | aPointList | ) | [pure virtual] |
void | DrawPolygon | ( | const TArray < TPoint > & | aPointList, |
TFillRule | aFillRule = EAlternate | |||
) | [pure virtual] |
void | DrawRect | ( | const TRect & | aRect | ) | [pure virtual] |
const TRect & aRect |
void | DrawRoundRect | ( | const TRect & | aRect, |
const TSize & | aEllipse | |||
) | [pure virtual] |
void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam |
void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TPoint & | aPosition | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TPoint & aPosition |
void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aClipRect | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aClipRect |
void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aClipFillRect, | |||
TInt | aBaselineOffset, | |||
TTextAlign | aHrz = ELeft, | |||
TInt | aMargin = 0 | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aClipFillRect | |
TInt aBaselineOffset | |
TTextAlign aHrz = ELeft | |
TInt aMargin = 0 |
void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
TBool | aUp | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
TBool aUp |
void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TPoint & | aPosition, | |||
TBool | aUp | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TPoint & aPosition | |
TBool aUp |
void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aClipRect, | |||
TBool | aUp | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aClipRect | |
TBool aUp |
void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aClipRect, | |||
TInt | aBaselineOffset, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aClipRect | |
TInt aBaselineOffset | |
TBool aUp | |
TTextAlign aVert = ELeft | |
TInt aMargin = 0 |
void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aClipRect, | |||
TInt | aBaselineOffset, | |||
TInt | aTextWidth, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aClipRect | |
TInt aBaselineOffset | |
TInt aTextWidth | |
TBool aUp | |
TTextAlign aVert = ELeft | |
TInt aMargin = 0 |
void | MoveBy | ( | const TPoint & | aVector | ) | [pure virtual] |
const TPoint & aVector |
void | MoveTo | ( | const TPoint & | aPoint | ) | [pure virtual] |
const TPoint & aPoint |
TPoint | Origin | ( | ) | const [pure virtual] |
The origin of the GC relative to the screen's origin
void | Plot | ( | const TPoint & | aPoint | ) | [pure virtual] |
const TPoint & aPoint |
TInt | Push | ( | ) | [pure virtual] |
Saves the state of the GC to an internal buffer. Several GC states can be saved in a FILO. Do not restore a GC (using Pop() ) that wasn't properly saved!
void | SetBrushColor | ( | const TRgb & | aColor | ) | [pure virtual] |
const TRgb & aColor |
void | SetBrushOrigin | ( | const TPoint & | aOrigin | ) | [pure virtual] |
const TPoint & aOrigin |
void | SetBrushPattern | ( | const CFbsBitmap & | aBitmap | ) | [pure virtual] |
const CFbsBitmap & aBitmap |
void | SetBrushPattern | ( | TInt | aFbsBitmapHandle | ) | [pure virtual] |
TInt aFbsBitmapHandle |
void | SetBrushStyle | ( | TBrushStyle | aBrushStyle | ) | [pure virtual] |
TBrushStyle aBrushStyle |
void | SetCharJustification | ( | TInt | aExcessWidth, |
TInt | aNumChars | |||
) | [pure virtual] |
void | SetClippingRegion | ( | const TRegion & | aRegion | ) | [pure virtual] |
const TRegion & aRegion |
void | SetDrawMode | ( | TDrawMode | aDrawMode | ) | [pure virtual] |
TDrawMode aDrawMode |
void | SetFont | ( | const CFont * | aFont | ) | [pure virtual] |
const CFont * aFont |
void | SetFontNoDuplicate | ( | const CFont * | aFont | ) | [pure virtual] |
const CFont * aFont |
void | SetPenColor | ( | const TRgb & | aColor | ) | [pure virtual] |
const TRgb & aColor |
void | SetPenSize | ( | const TSize & | aSize | ) | [pure virtual] |
const TSize & aSize |
void | SetPenStyle | ( | TPenStyle | aPenStyle | ) | [pure virtual] |
TPenStyle aPenStyle |
void | SetStrikethroughStyle | ( | TFontStrikethrough | aStrikethroughStyle | ) | [pure virtual] |
TFontStrikethrough aStrikethroughStyle |
void | SetTextShadowColor | ( | const TRgb & | aColor | ) | [pure virtual] |
const TRgb & aColor |
void | SetUnderlineStyle | ( | TFontUnderline | aUnderlineStyle | ) | [pure virtual] |
TFontUnderline aUnderlineStyle |
void | SetWordJustification | ( | TInt | aExcessWidth, |
TInt | aNumGaps | |||
) | [pure virtual] |
void | UpdateJustification | ( | const TDesC & | aText, |
const TTextParameters * | aParam | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam |
void | UpdateJustificationVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
TBool | aUp | |||
) | [pure virtual] |
const TDesC & aText | |
const TTextParameters * aParam | |
TBool aUp |
Brush styles.
ENullBrush |
The brush fill has no effect (default). |
ESolidBrush |
The brush fills with a solid single colour, determined by SetBrushColor() and the drawing mode. |
EPatternedBrush |
The brush fills with a selected bitmap pattern, set by UseBrushPattern(). |
EVerticalHatchBrush |
The brush fills with vertical hatching lines going from top to bottom. |
EForwardDiagonalHatchBrush |
The brush fills with diagonal hatching lines going from bottom left to top right. |
EHorizontalHatchBrush |
The brush fills with horizontal hatching lines going from left to right. |
ERearwardDiagonalHatchBrush |
The brush fills with rearward diagonal hatching lines going from top left to bottom right. |
ESquareCrossHatchBrush |
The brush fills with horizontal and vertical hatching lines going from left to right plus lines going from top to bottom giving the effect of a grid of small squares |
EDiamondCrossHatchBrush |
The brush fills with forward diagonal and rearward diagonal hatching lines going from bottom left to top right plus lines going from top left to bottom right giving the effect of a grid of small diamonds. |
Drawing modes. The drawing modes define the way that the pen and brush colors are drawn, EDrawModePEN means do alpha blending if appropriate, EDrawModeWriteAlpha means don't do alpha blending.
EDrawModePEN = 32 |
Uses both pen and brush colour as they are. |
EDrawModeWriteAlpha = 64 |
Writes alpha information in the source directly into the destination, rather than blending. |
Rules used to fill self-intersecting polygons.
The filling of a polygon proceeds as follows: for a given point in the polygon, then:
if the rule is TFillRule::EAlternate (default) and it has an odd winding number, then fill the surrounding area.
if the rule is TFillRule::EWinding and it has a winding number greater than zero, then fill the surrounding area.
EAlternate |
Only fill areas with odd winding numbers. |
EWinding |
Fill areas with winding numbers greater than zero. |
Font strike-through flags.
EStrikethroughOff |
Font is not struck-through. |
EStrikethroughOn |
Font is struck-through. |
Font underline flags.
EUnderlineOff |
Font is not underlined. |
EUnderlineOn |
Font is underlined. |
Pen styles. The screen pattern unit in each definition below describes the pattern drawn by the line 1 represents a pixel drawn, 0 represents a pixel that is not affected.
ENullPen |
The pen does not draw. Screen pattern unit = 00... |
ESolidPen |
A solid line (default). Screen pattern unit = 11... |
EDottedPen |
A dotted line. Screen pattern unit = 1000... |
EDashedPen |
A dashed line. Screen pattern unit = 111000... |
EDotDashPen |
A line of alternating dashes and dots. Screen pattern unit = 1111001100... |
EDotDotDashPen |
A line of alternating single dashes and pairs of dots. Screen pattern unit = 11110011001100... |
Text alignment.
ELeft |
Text is left-aligned. |
ECenter |
Text is centred. |
ERight |
Text is right-aligned. |
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.