class CFbsBitGc : public CBitmapContext |
Concrete implementation of a bitmapped graphics context.
The class provides new functionality, and implementations of the pure virtual functions defined in CGraphicsContext and CBitmapContext.
Public Member Functions | |
---|---|
~CFbsBitGc() | |
IMPORT_C void | Activate(CFbsDevice *) |
IMPORT_C void | ActivateNoJustAutoUpdate(CFbsDevice *) |
IMPORT_C TInt | AlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const CFbsBitmap *, const TRect &, const TPoint &, const CFbsBitmap *, const TPoint &) |
IMPORT_C TInt | AlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, const TPoint &) |
IMPORT_C TInt | AlphaBlendBitmaps(const TPoint &, const CWsBitmap *, const TRect &, const CWsBitmap *, const TPoint &) |
IMPORT_C void | BitBlt(const TPoint &, const CFbsBitGc &) |
IMPORT_C void | BitBlt(const TPoint &, const CFbsBitGc &, const TRect &) |
IMPORT_C void | BitBlt(const TPoint &, const CFbsBitmap *) |
IMPORT_C void | BitBlt(const TPoint &, const CFbsBitmap *, const TRect &) |
IMPORT_C void | BitBltMasked(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool) |
IMPORT_C TRgb | BrushColor() |
IMPORT_C void | CancelClipping() |
IMPORT_C void | CancelClippingRect() |
IMPORT_C void | CancelClippingRegion() |
IMPORT_C void | ChangeDevice(CFbsDevice *) |
IMPORT_C void | Clear() |
IMPORT_C void | Clear(const TRect &) |
IMPORT_C void | CopyRect(const TPoint &, const TRect &) |
IMPORT_C void | CopySettings(const CFbsBitGc &) |
IMPORT_C CGraphicsDevice * | Device() |
IMPORT_C void | DiscardBrushPattern() |
IMPORT_C void | DiscardFont() |
IMPORT_C void | DrawArc(const TRect &, const TPoint &, const TPoint &) |
IMPORT_C void | DrawBitmap(const TPoint &, const CFbsBitmap *) |
IMPORT_C void | DrawBitmap(const TRect &, const CFbsBitmap *) |
IMPORT_C void | DrawBitmap(const TRect &, const CFbsBitmap *, const TRect &) |
IMPORT_C void | DrawBitmapMasked(const TRect &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool) |
IMPORT_C void | DrawBitmapMasked(const TRect &, const CWsBitmap *, const TRect &, const CWsBitmap *, TBool) |
IMPORT_C void | DrawEllipse(const TRect &) |
IMPORT_C void | DrawLine(const TPoint &, const TPoint &) |
IMPORT_C void | DrawLineBy(const TPoint &) |
IMPORT_C void | DrawLineTo(const TPoint &) |
IMPORT_C void | DrawPie(const TRect &, const TPoint &, const TPoint &) |
IMPORT_C void | DrawPolyLine(const CArrayFix< TPoint > *) |
IMPORT_C void | DrawPolyLine(const TPoint *, TInt) |
IMPORT_C void | DrawPolyLineNoEndPoint(const CArrayFix< TPoint > *) |
IMPORT_C void | DrawPolyLineNoEndPoint(const TPoint *, TInt) |
IMPORT_C TInt | DrawPolygon(const CArrayFix< TPoint > *, CGraphicsContext::TFillRule) |
IMPORT_C TInt | DrawPolygon(const TPoint *, TInt, CGraphicsContext::TFillRule) |
IMPORT_C void | DrawRect(const TRect &) |
IMPORT_C void | DrawRoundRect(const TRect &, const TSize &) |
IMPORT_C void | DrawText(const TDesC &) |
IMPORT_C void | DrawText(const TDesC &, const TPoint &) |
IMPORT_C void | DrawText(const TDesC &, const TRect &) |
IMPORT_C void | DrawText(const TDesC &, const TRect &, TInt, TTextAlign, TInt) |
IMPORT_C void | DrawText(const TDesC &, const TRect &, TInt, TInt, TTextAlign, TInt) |
IMPORT_C void | DrawText(const TDesC &, const TTextParameters *) |
IMPORT_C void | DrawText(const TDesC &, const TTextParameters *, const TPoint &) |
IMPORT_C void | DrawText(const TDesC &, const TTextParameters *, const TRect &) |
IMPORT_C void | DrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TTextAlign, TInt) |
IMPORT_C void | DrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TTextAlign, TInt) |
IMPORT_C void | DrawTextVertical(const TDesC &, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TPoint &, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TRect &, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TRect &, TInt, TBool, TTextAlign, TInt) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TRect &, TInt, TInt, TBool, TTextAlign, TInt) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TTextParameters *, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TTextParameters *, const TPoint &, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TBool) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TBool, TTextAlign, TInt) |
IMPORT_C void | DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TBool, TTextAlign, TInt) |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | FadeArea(const TRegion *) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TBool | IsBrushPatternUsed() |
IMPORT_C TBool | IsFontUsed() |
TInt16 | Load16(const TUint8 *) |
IMPORT_C void | MapColors(const TRect &, const TRgb *, TInt, TBool) |
IMPORT_C void | MoveBy(const TPoint &) |
IMPORT_C void | MoveTo(const TPoint &) |
IMPORT_C CFbsBitGc * | NewL() |
IMPORT_C void | OrientationsAvailable(TBool) |
IMPORT_C TRgb | PenColor() |
IMPORT_C void | Plot(const TPoint &) |
IMPORT_C void | RectDrawnTo(TRect &) |
IMPORT_C void | Reset() |
IMPORT_C void | Resized() |
IMPORT_C void | SetBrushColor(const TRgb &) |
IMPORT_C void | SetBrushOrigin(const TPoint &) |
IMPORT_C void | SetBrushStyle(TBrushStyle) |
IMPORT_C void | SetCharJustification(TInt, TInt) |
IMPORT_C void | SetClippingRect(const TRect &) |
IMPORT_C void | SetClippingRegion(const TRegion *) |
IMPORT_C TInt | SetClippingRegion(const TRegion &) |
IMPORT_C void | SetDitherOrigin(const TPoint &) |
IMPORT_C void | SetDrawMode(TDrawMode) |
void | SetFadeMode(TBool) |
IMPORT_C void | SetFaded(TBool) |
void | SetFadingParameters(TUint8) |
IMPORT_C void | SetFadingParameters(TUint8, TUint8) |
IMPORT_C TBool | SetOrientation(TGraphicsOrientation) |
IMPORT_C void | SetOrigin(const TPoint &) |
IMPORT_C void | SetPenColor(const TRgb &) |
IMPORT_C void | SetPenSize(const TSize &) |
IMPORT_C void | SetPenStyle(TPenStyle) |
IMPORT_C void | SetShadowMode(TBool) |
IMPORT_C void | SetStrikethroughStyle(TFontStrikethrough) |
IMPORT_C void | SetUnderlineStyle(TFontUnderline) |
IMPORT_C void | SetUserDisplayMode(TDisplayMode) |
IMPORT_C void | SetWordJustification(TInt, TInt) |
IMPORT_C void | ShadowArea(const TRegion *) |
IMPORT_C void | UpdateJustification(const TDesC &) |
IMPORT_C void | UpdateJustification(const TDesC &, const TTextParameters *) |
IMPORT_C void | UpdateJustificationVertical(const TDesC &, TBool) |
IMPORT_C void | UpdateJustificationVertical(const TDesC &, const TTextParameters *, TBool) |
IMPORT_C void | UseBrushPattern(const CFbsBitmap *) |
IMPORT_C TInt | UseBrushPattern(TInt) |
IMPORT_C void | UseFont(const CFont *) |
IMPORT_C TInt | UseFont(TInt) |
IMPORT_C void | UseFontNoDuplicate(const CFbsBitGcFont *) |
Protected Member Functions | |
---|---|
IMPORT_C TInt | APIExtension(TUid, TAny *&, TAny *) |
Public Member Enumerations | |
---|---|
enum | TGraphicsOrientation { EGraphicsOrientationNormal, EGraphicsOrientationRotated90, EGraphicsOrientationRotated180, EGraphicsOrientationRotated270 } |
Inherited Enumerations | |
---|---|
CGraphicsContext:TBrushStyle | |
CGraphicsContext:TDrawMode | |
CGraphicsContext:TDrawModeComponents | |
CGraphicsContext:TFillRule | |
CGraphicsContext:TPenStyle | |
CGraphicsContext:TTextAlign |
TInt | APIExGetShadowColor | ( | TAny *& | aShadowColor | ) | [private] |
TAny *& aShadowColor |
void | APIExGetUnderlineMetrics | ( | TAny *& | aOutput | ) | [private] |
TAny *& aOutput |
TInt | APIExIsFbsBitGc | ( | TAny *& | aIsCFbsBitGc | ) | [private] |
TAny *& aIsCFbsBitGc |
TInt | APIExSetShadowColor | ( | TAny * | aShadowColor | ) | [private] |
TAny * aShadowColor |
IMPORT_C TInt | APIExtension | ( | TUid | aUid, |
TAny *& | aOutput, | |||
TAny * | aInput | |||
) | [protected, virtual] |
This function should not be used by externals but must retain the same ordinal number to maintain BC, thus is exported.
APIExtension can contain as many additional methods as is required by CGraphicsContext after its original conception. It takes 3 parameters. Function is exported due to constrains of retaining BC with earlier versions. This is not used directly by external methods, instead it is called by a named method in CGraphicsContext which passes the relivant arguements including an unique identifier for the required action. Valid Uid identifiers are listed in header gdi.h CGraphicsContext
TUid aUid | The unique identifier for the method that is required. Selected internally by a series of "if" statements. |
TAny *& aOutput | is a TAny pointer to a reference. Used to output data as the structure does not need to be instantiated before the function call this adds greater flexibility. |
TAny * aInput | is a TAny pointer used to input data. |
IMPORT_C void | Activate | ( | CFbsDevice * | aDevice | ) |
Sets the object to draw to a particular device
CFbsDevice * aDevice | The target device. |
IMPORT_C void | ActivateNoJustAutoUpdate | ( | CFbsDevice * | aDevice | ) |
Sets the object to draw to a particular device but doesn't 'use up' justification settings when drawing text. This is similar to Activate().
CFbsDevice * aDevice | The target device. |
IMPORT_C TInt | AlphaBlendBitmaps | ( | const TPoint & | aDestPt, |
const CFbsBitmap * | aSrcBmp1, | |||
const CFbsBitmap * | aSrcBmp2, | |||
const TRect & | aSrcRect1, | |||
const TPoint & | aSrcPt2, | |||
const CFbsBitmap * | aAlphaBmp, | |||
const TPoint & | aAlphaPt | |||
) |
C1 - a pixel from aSrcBmp1;
C2 - a pixel from aSrcBmp2;
const TPoint & aDestPt | Position in the target the result should be drawn to. |
const CFbsBitmap * aSrcBmp1 | A pointer to the source bitmap 1. |
const CFbsBitmap * aSrcBmp2 | A pointer to the source bitmap 2. |
const TRect & aSrcRect1 | A part of bitmap 1 that should be used as a source for the alpha blending. |
const TPoint & aSrcPt2 | Position of the first pixel in bitmap 2 that should be used as a source for the alpha blending. The size of the area is the same as the bitmap 1 area - aSrcRect1 parameter. |
const CFbsBitmap * aAlphaBmp | A pointer to the bitmap used as an alpha blending factor. |
const TPoint & aAlphaPt | Position of the first pixel in the alpha bitmap that should be used as a source for the alpha blending. The size of the area is the same as the bitmap 1 area - aSrcRect1 parameter. |
IMPORT_C TInt | AlphaBlendBitmaps | ( | const TPoint & | aDestPt, |
const CFbsBitmap * | aSrcBmp, | |||
const TRect & | aSrcRect, | |||
const CFbsBitmap * | aAlphaBmp, | |||
const TPoint & | aAlphaPt | |||
) | [virtual] |
C - a pixel from aSrcBmp;
D - a pixel from the destination;
const TPoint & aDestPt | Position in the target the result should be drawn to. |
const CFbsBitmap * aSrcBmp | A pointer to the source bitmap. |
const TRect & aSrcRect | A part of aSrcBmp that should be used as a source for the alpha blending. DISCLAIMER: if aSrcRect is bigger (width and/or height) the behaviour is undefined |
const CFbsBitmap * aAlphaBmp | A pointer to the bitmap used as an alpha blending factor. |
const TPoint & aAlphaPt | Position of the first pixel in the alpha bitmap that should be used as a source for the alpha blending. The size of the area is the same as the aSrcRect parameter (read DISCLAIMER above). |
IMPORT_C TInt | AlphaBlendBitmaps | ( | const TPoint & | aDestPt, |
const CWsBitmap * | aSrcBmp, | |||
const TRect & | aSrcRect, | |||
const CWsBitmap * | aAlphaBmp, | |||
const TPoint & | aAlphaPt | |||
) | [virtual] |
The method performs an alpha blending of the source data, aSrcBmp, with the CBitmapContext, using the data from aAlphaBmp as an alpha blending factor. For information on how this function works, see the other overload.
const TPoint & aDestPt | Position in the target the result should be drawn to. |
const CWsBitmap * aSrcBmp | A pointer to the source bitmap. |
const TRect & aSrcRect | The part of the source bitmap that should be used. |
const CWsBitmap * aAlphaBmp | A pointer to the bitmap used as an alpha blending factor. |
const TPoint & aAlphaPt | Position of the first pixel in the alpha bitmap that should be used as a source for the alpha blending. The size of the area is the same as the source bitmap area - aSrcRect parameter. |
TBool | AnalyseEllipse | ( | const TRect & | rc, |
TPoint & | srad, | |||
TPoint & | erad, | |||
TInt & | startq, | |||
TInt & | endq, | |||
TBool * | quads | |||
) | [private] |
const TRect & rc | Input - The bounding rectangle. |
TPoint & srad | Input/Output - The intersection point from the geometric centre of the ellipse to the given start point |
TPoint & erad | Input/Output - The intersection point from the geometric centre of the ellipse to the given end point |
TInt & startq | Output - The start quadrant |
TInt & endq | Output - The end quadrant |
TBool * quads | Output - Quadrants |
TInt | BaselineCorrection | ( | ) | [private] |
This function retrieves the baseline offset from the metrics of the text currently being drawn. This is used to alter the positioning of underline and strikethrough on a linked font
IMPORT_C void | BitBlt | ( | const TPoint & | aPoint, |
const CFbsBitGc & | aGc | |||
) |
Draws from another CFbsBitGc.
IMPORT_C void | BitBlt | ( | const TPoint & | aPoint, |
const CFbsBitGc & | aGc, | |||
const TRect & | aSourceRect | |||
) |
Draws a particular rectangle from another CFbsBitGc.
IMPORT_C void | BitBlt | ( | const TPoint & | aPoint, |
const CFbsBitmap * | aBitmap | |||
) | [virtual] |
Draws the whole of a CFbsBitmap.
const TPoint & aPoint | The position to draw the top left corner of the bitmap. |
const CFbsBitmap * aBitmap | The source bitmap. |
IMPORT_C void | BitBlt | ( | const TPoint & | aPoint, |
const CFbsBitmap * | aBitmap, | |||
const TRect & | aSourceRect | |||
) | [virtual] |
Draws a particular rectangle from a CFbsBitmap.
const TPoint & aPoint | The position to draw the top left corner of the bitmap. |
const CFbsBitmap * aBitmap | The source bitmap. |
const TRect & aSourceRect | A rectangle defining the piece of the source to be drawn. |
IMPORT_C void | BitBltMasked | ( | const TPoint & | aPoint, |
const CFbsBitmap * | aBitmap, | |||
const TRect & | aSourceRect, | |||
const CFbsBitmap * | aMaskBitmap, | |||
TBool | aInvertMask | |||
) | [virtual] |
Performs a masked bitmap block transfer.
The function provides a concrete implementation of the pure virtual function CBitmapContext::BitBltMasked(). The function behaviour is the same as documented in that class.
There are several points to note about this implementation of BitBltMasked():
1.For best performance the aMaskBitmap and source aBitmap should have the same display mode as the destination device/bitmap.
2.For performance reasons this implementation does not validate the contents of the aMaskBitmap. The caller must ensure the mask pixels are either black or white otherwise undefined blitting causing unpredictable discoloration will result. This is especially true for index (where pixel is palette entry) display modes (e.g. EColor16). It is up to the caller to decide if they wish to utilise CFbsBitmap::IsMonochrome().
3.Alpha blending is used when the display mode of the mask bitmap aMaskBitmap is EGray256.
const TPoint & aPoint | |
const CFbsBitmap * aBitmap | |
const TRect & aSourceRect | |
const CFbsBitmap * aMaskBitmap | |
TBool aInvertMask |
void | BitMultiply | ( | TUint32 * | aBinaryDataPtr, |
TInt | aBitLength, | |||
TInt | aMultiplier | |||
) | [private] |
IMPORT_C void | CancelClippingRect | ( | ) | [virtual] |
Cancels any clipping rectangle. Clipping reverts to the full device area, the default. The function provides a concrete implementation of the pure virtual function CGraphicsContext::CancelClippingRect(). The function behaviour is the same as documented in that class. CGraphicsContext::CancelClippingRect()
IMPORT_C void | ChangeDevice | ( | CFbsDevice * | aDevice | ) |
Replace target device but keep the current state
CFbsDevice * aDevice | The target device |
TBool | CheckDevice | ( | const TRect & | aRect | ) | const [private] |
const TRect & aRect |
IMPORT_C void | Clear | ( | ) | [virtual] |
Clears the whole bitmap or a rectangular area of a bitmap.
The cleared area is filled with the current brush colour.
The function provides a concrete implementation of the pure virtual function CBitmapContext::Clear(). The function behaviour is the same as documented in that class.
IMPORT_C void | Clear | ( | const TRect & | aRect | ) | [virtual] |
Clears a rectangular area.
The cleared area is filled with the current brush colour.The function provides a concrete implementation of the pure virtual function CBitmapContext::Clear(const TRect& aRect). The function behaviour is the same as documented in that class.
const TRect & aRect |
TUint32 * | ClipBinaryArray | ( | TUint32 * | aArray, |
TUint32 * | aArrayLimit, | |||
TInt | aArrayWordWd, | |||
TInt & | aDataWd, | |||
TInt & | aDataHt, | |||
TPoint & | aPos | |||
) | [private] |
void | CopyCharLine | ( | TUint32 * | aBinaryDataPtr, |
TInt | aBufferWords, | |||
const TUint8 * | aData, | |||
TInt | aBitShift, | |||
TInt | aCharWidth | |||
) | [private] |
void | CopyCharWord | ( | TUint32 * | aBinaryDataPtr, |
const TUint8 * | aData, | |||
TInt | aBitShift | |||
) | [private] |
IMPORT_C void | CopyRect | ( | const TPoint & | aOffset, |
const TRect & | aRect | |||
) | [virtual] |
Copies a rectangle.
The function provides a concrete implementation of the pure virtual function CBitmapContext::CopyRect(). The function behaviour is the same as documented in that class.
IMPORT_C void | CopySettings | ( | const CFbsBitGc & | aGc | ) |
Copies all settings from the specified bitmap graphics context.
const CFbsBitGc & aGc | The bitmap graphics context whose settings are to be copied. |
IMPORT_C CGraphicsDevice * | Device | ( | ) | const [virtual] |
Gets a pointer to the graphics device for the graphics context. The graphics device is the device currently being drawn to. The function provides a concrete implementation of the pure virtual function CGraphicsContext::Device(). The function behaviour is the same as documented in that class. CGraphicsContext::Device()
IMPORT_C void | DiscardBrushPattern | ( | ) | [virtual] |
Discards a non-built-in brush pattern. The function provides a concrete implementation of the pure virtual function CGraphicsContext::DiscardBrushPattern(). The function behaviour is the same as documented in that class. CGraphicsContext::DiscardBrushPattern()
IMPORT_C void | DiscardFont | ( | ) | [virtual] |
Discards a selected device font. The function provides a concrete implementation of the pure virtual function CGraphicsContext::DiscardFont(). The function behaviour is the same as documented in that class. CGraphicsContext::DiscardFont()
void | DoBitBlt | ( | const TPoint & | aDest, |
CFbsDevice * | aDevice, | |||
const TRect & | aSourceRect | |||
) | [private] |
Does BitBlt operation of source and bitmap per scanline.
const TPoint & aDest | |
CFbsDevice * aDevice | |
const TRect & aSourceRect |
void | DoBitBlt | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aBitmap, | |||
TUint32 * | aBase, | |||
TInt | aStride, | |||
const TRect & | aSourceRect | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aBitmap | |
TUint32 * aBase | |
TInt aStride | |
const TRect & aSourceRect |
void | DoBitBltAlpha | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
const TPoint & | aAlphaPoint, | |||
TInt | aShadowMode, | |||
TBool | aInvertMask | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
const TPoint & aAlphaPoint | |
TInt aShadowMode | |
TBool aInvertMask |
void | DoBitBltAlpha | ( | const TPoint & | aDestPt, |
const CBitwiseBitmap * | aSrcBmp1, | |||
TUint32 * | aSrcBmpDataAddr1, | |||
const CBitwiseBitmap * | aSrcBmp2, | |||
TUint32 * | aSrcBmpDataAddr2, | |||
const CBitwiseBitmap * | aAlphaBmp, | |||
TUint32 * | aAlphaBmpDataAddr, | |||
const TRect & | aSrcRect1, | |||
const TPoint & | aSrcPt2, | |||
const TPoint & | aAlphaPt, | |||
TInt | aShadowMode | |||
) | [private] |
The method performs an alpha blending of the source data - aSrcBmp1 and aSrcBmp2, using the data from aAlphaBmp as an alpha blending factor. CFbsBitGc::AlphaBlendBitmaps.
const TPoint & aDestPt | |
const CBitwiseBitmap * aSrcBmp1 | |
TUint32 * aSrcBmpDataAddr1 | |
const CBitwiseBitmap * aSrcBmp2 | |
TUint32 * aSrcBmpDataAddr2 | |
const CBitwiseBitmap * aAlphaBmp | |
TUint32 * aAlphaBmpDataAddr | |
const TRect & aSrcRect1 | |
const TPoint & aSrcPt2 | |
const TPoint & aAlphaPt | |
TInt aShadowMode |
void | DoBitBltMasked | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin, | |||
TInt | aShadowMode | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin | |
TInt aShadowMode |
void | DoBitBltMaskedFlicker | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin, | |||
TInt | aShadowMode | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin | |
TInt aShadowMode |
void | DoBitBltMaskedNonFlicker | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin, | |||
TInt | aShadowMode | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin | |
TInt aShadowMode |
void | DoBitBltMaskedNonFlickerPatterned | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin, | |||
TInt | aShadowMode | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin | |
TInt aShadowMode |
void | DoBitBltMaskedNonFlickerSolid | ( | const TPoint & | aDest, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin, | |||
TInt | aShadowMode | |||
) | [private] |
const TPoint & aDest | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin | |
TInt aShadowMode |
void | DoDrawBitmap | ( | const TRect & | , |
CBitwiseBitmap * | , | |||
TUint32 * | aBase, | |||
TInt | aStride, | |||
const TRect & | , | |||
const TPoint & | aDitherOrigin | |||
) | [private] |
void | DoDrawBitmapMasked | ( | const TRect & | aDestRect, |
CBitwiseBitmap * | aSourceBitmap, | |||
TUint32 * | aSourceBase, | |||
const TRect & | aSourceRect, | |||
CBitwiseBitmap * | aMaskBitmap, | |||
TUint32 * | aMaskBase, | |||
TBool | aInvertMask, | |||
const TPoint & | aDitherOrigin | |||
) | [private] |
The method draws a masked rectangular section of the source bitmap and does a compress/stretch to fit a given destination rectangle.
const TRect & aDestRect | |
CBitwiseBitmap * aSourceBitmap | |
TUint32 * aSourceBase | |
const TRect & aSourceRect | |
CBitwiseBitmap * aMaskBitmap | |
TUint32 * aMaskBase | |
TBool aInvertMask | |
const TPoint & aDitherOrigin |
void | DoDrawCharacter | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData | |||
) | [private] |
void | DoDrawCharacterAntiAliased | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
const TGlyphBitmapType | aGlyphType | |||
) | [private] |
This function draws an anti-aliased character.
const TPoint & aTopLeft | The position to output the character |
const TSize & aDataSize | The size of the bitmap |
const TUint8 * aData | the bitmap for outputt in their TOpenFontCharMetrics |
const TGlyphBitmapType aGlyphType | the glyph type for the character |
void | DoDrawCharacterEx | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aBold, | |||
TBool | aItalic, | |||
TInt | aSemiAscent | |||
) | [private] |
void | DoDrawCharacterExLarge | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aBold, | |||
TBool | aItalic, | |||
TInt | aSemiAscent, | |||
TInt | aWidthFactor, | |||
TInt | aHeightFactor | |||
) | [private] |
void | DoDrawCharacterLarge | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aBold, | |||
TBool | aItalic, | |||
TInt | aSemiAscent, | |||
TInt | aWidthFactor, | |||
TInt | aHeightFactor | |||
) | [private] |
void | DoDrawCharacterMultiplied | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aBold, | |||
TBool | aItalic, | |||
TInt | aSemiAscent, | |||
TInt | aWidthMultiplier, | |||
TInt | aHeightMultiplier | |||
) | [private] |
void | DoDrawCharacterVertical | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aBold, | |||
TBool | aItalic, | |||
TInt | aSemiAscent, | |||
TInt | aWidthFactor, | |||
TInt | aHeightFactor, | |||
TBool | aUp | |||
) | [private] |
void | DoDrawCharacterVerticalAntiAliased | ( | const TPoint & | aTopLeft, |
const TSize & | aDataSize, | |||
const TUint8 * | aData, | |||
TBool | aUp, | |||
TGlyphBitmapType | aGlyphBitmapType | |||
) | [private] |
This function draws an anti-aliased character.
const TPoint & aTopLeft | The position to output the character |
const TSize & aDataSize | The size of the bitmap |
const TUint8 * aData | the bitmap for outputt in their TOpenFontCharMetrics |
TBool aUp | the direction of the text |
TGlyphBitmapType aGlyphBitmapType |
void | DoDrawDottedWideLine | ( | const TPoint & | pt1, |
const TPoint & | pt2, | |||
TBool | drawstart, | |||
const TRect & | screenrect | |||
) | [private] |
void | DoDrawLine | ( | TPoint | aStart, |
TPoint | aEnd, | |||
TBool | aDrawStartPoint | |||
) | [private] |
void | DoDrawSolidWideLine | ( | const TPoint & | pt1, |
const TPoint & | pt2, | |||
TBool | drawstart, | |||
const TRect & | screenrect | |||
) | [private] |
void | DoDrawText | ( | CFont::TPositionParam & | aParam, |
const TInt | aEnd | |||
) | [private] |
CFont::TPositionParam & aParam | |
const TInt aEnd |
void | DoDrawTextEx | ( | CFont::TPositionParam & | aParam, |
const CBitmapFont * | font, | |||
const TInt | aEnd, | |||
const TInt | aUnderlineStrikethroughOffset | |||
) | [private] |
CFont::TPositionParam & aParam | |
const CBitmapFont * font | |
const TInt aEnd | |
const TInt aUnderlineStrikethroughOffset |
void | DoDrawTextLarge | ( | CFont::TPositionParam & | aParam, |
const CBitmapFont * | font, | |||
const TInt | aEnd | |||
) | [private] |
CFont::TPositionParam & aParam | |
const CBitmapFont * font | |
const TInt aEnd |
void | DoDrawTextVertical | ( | CFont::TPositionParam & | aParam, |
const CBitmapFont * | font, | |||
TBool | aUp, | |||
const TInt | aEnd | |||
) | [private] |
CFont::TPositionParam & aParam | |
const CBitmapFont * font | |
TBool aUp | |
const TInt aEnd |
IMPORT_C void | DrawArc | ( | const TRect & | aRect, |
const TPoint & | aStart, | |||
const TPoint & | aEnd | |||
) | [virtual] |
Draws an arc.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawArc(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawBitmap | ( | const TPoint & | aTopLeft, |
const CFbsBitmap * | aSource | |||
) | [virtual] |
Draws a bitmap.
The function has 3 overloads. The first draws the bitmap given the top left hand corner, doing a compress/stretch based on its internally stored size in twips. The second does a compress/stretch to fit a given rectangle. The third takes a rectangular section of the source bitmap and does a compress/stretch to fit a given destination rectangle.The functions provide a concrete implementation of the pure virtual function CGraphicsContext::DrawBitmap(). The function behaviour is the same as documented in that class.
const TPoint & aTopLeft | |
const CFbsBitmap * aSource |
IMPORT_C void | DrawBitmap | ( | const TRect & | aDestRect, |
const CFbsBitmap * | aSource | |||
) | [virtual] |
Draws a bitmap to fit a given rectangle.
The bitmap is compressed or stretched based on its internally stored size in pixels.
Notes:
This member function uses the bitmap's size in pixels and does a stretch/compress blit using a linear DDA.
As this function scales the bitmap, it is unavoidably slow. Therefore, where possible, use CBitmapContext::BitBlt() instead. If the bitmap has to be scaled, consider creating another bitmap along with an CFbsBitmapDevice etc., doing DrawBitmap() once and using BitBlt() subsequently.
Note that all bitmaps are clipped to the device boundaries.
const TRect & aDestRect | The rectangle within which the bitmap is to be drawn. |
const CFbsBitmap * aSource | A source bitmap. |
IMPORT_C void | DrawBitmap | ( | const TRect & | aDestRect, |
const CFbsBitmap * | aSource, | |||
const TRect & | aSourceRect | |||
) | [virtual] |
Draws a specified rectangle of a source bitmap to fit into a given destination rectangle.
Notes:
This member function uses rectangle sizes in pixels and does a stretch/compress blit using a linear DDA.
As this function scales the bitmap, it is unavoidably slow. Therefore, where possible, use CBitmapContext::BitBlt() instead. If the bitmap has to be scaled, consider creating another bitmap along with an CFbsBitmapDevice etc., doing DrawBitmap() once and using BitBlt() subsequently.
Note that all bitmaps are clipped to the device boundaries.
const TRect & aDestRect | The rectangle within which the bitmap is to be drawn. |
const CFbsBitmap * aSource | A source bitmap. |
const TRect & aSourceRect | The rectangle in the source bitmap that is copied to the destination rectangle. |
IMPORT_C void | DrawBitmapMasked | ( | const TRect & | aDestRect, |
const CFbsBitmap * | aBitmap, | |||
const TRect & | aSourceRect, | |||
const CFbsBitmap * | aMaskBitmap, | |||
TBool | aInvertMask | |||
) | [virtual] |
The method draws a specified rectangle from a bitmap and its mask into another rectangle and does a compress/stretch to fit a given destination rectangle.
When using this function with a 256 Mask bitmap, it blends. Otherwise (e.g. with a 4bpp mask), this function masks rather than blends. If a user wants to blend the source into the destination they should use CFbsBitGc::AlphaBlendBitmaps() instead.
const TRect & aDestRect | The rectangle within which the masked bitmap is to be drawn. |
const CFbsBitmap * aBitmap | A pointer to the source bitmap. |
const TRect & aSourceRect | The rectangle in the source bitmap that is copied to the destination rectangle. |
const CFbsBitmap * aMaskBitmap | A pointer to the mask bitmap. |
TBool aInvertMask | If false, a source pixel that is masked by a black pixel is not transferred to the destination rectangle. If true, then a source pixel that is masked by a white pixel is not transferred to the destination rectangle. |
IMPORT_C void | DrawBitmapMasked | ( | const TRect & | aDestRect, |
const CWsBitmap * | aBitmap, | |||
const TRect & | aSourceRect, | |||
const CWsBitmap * | aMaskBitmap, | |||
TBool | aInvertMask | |||
) | [virtual] |
The method draws a specified rectangle from a bitmap and its mask into another rectangle and does a compress/stretch to fit a given destination rectangle.
This is an overload, which takes CWsBitmap* as argument, which in turn calls the other overload.
Note: A pointer to CWsBitmap must have the same pointer value as a pointer to the associated CFbsBitmap, otherwise code in BitGdi component will be Broken.
When using this function with a 256 Mask bitmap, it blends. Otherwise (e.g. with a 4bpp mask), this function masks rather than blends. If a user wants to blend the source into the destination they should use CFbsBitGc::AlphaBlendBitmaps() instead.
const TRect & aDestRect | The rectangle within which the masked bitmap is to be drawn. |
const CWsBitmap * aBitmap | A pointer to the source bitmap. |
const TRect & aSourceRect | The rectangle in the source bitmap that is copied to the destination rectangle. |
const CWsBitmap * aMaskBitmap | A pointer to the mask bitmap. |
TBool aInvertMask | If false, a source pixel that is masked by a black pixel is not transferred to the destination rectangle. If true, then a source pixel that is masked by a white pixel is not transferred to the destination rectangle. |
IMPORT_C void | DrawEllipse | ( | const TRect & | aRect | ) | [virtual] |
Draws and fills an ellipse.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawEllipse(). The function behaviour is the same as documented in that class.
const TRect & aRect |
IMPORT_C void | DrawLine | ( | const TPoint & | aStart, |
const TPoint & | aEnd | |||
) | [virtual] |
Draws a straight line between two points.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawLine(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawLineBy | ( | const TPoint & | aVector | ) | [virtual] |
Draws a straight line relative to the current drawing point, using a vector.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawLineBy(). The function behaviour is the same as documented in that class.
const TPoint & aVector |
IMPORT_C void | DrawLineTo | ( | const TPoint & | aPoint | ) | [virtual] |
Draws a straight line from the current drawing point to a specified point.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawLineTo(). The function behaviour is the same as documented in that class.
const TPoint & aPoint |
IMPORT_C void | DrawPie | ( | const TRect & | aRect, |
const TPoint & | aStart, | |||
const TPoint & | aEnd | |||
) | [virtual] |
Draws and fills a pie slice.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawPie(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawPolyLine | ( | const CArrayFix< TPoint > * | aPointList | ) | [virtual] |
Draws a polyline from a set of points specified in a list.
The functions provides a concrete implementation of the pure virtual functions CGraphicsContext::DrawPolyLine(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawPolyLine | ( | const TPoint * | aPointList, |
TInt | aNumPoints | |||
) | [virtual] |
Draws a polyline from a set of points specified in a list.
The functions provides a concrete implementation of the pure virtual functions CGraphicsContext::DrawPolyLine(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawPolyLineNoEndPoint | ( | const CArrayFix< TPoint > * | aPointList | ) |
Draws a polyline from a set of points specified in an array, but does not draw the final point of the last line.
IMPORT_C void | DrawPolyLineNoEndPoint | ( | const TPoint * | aPointList, |
TInt | aNumPoints | |||
) |
Draws a polyline from a set of points specified in a list, but does not draw the final point of the last line.
IMPORT_C TInt | DrawPolygon | ( | const CArrayFix< TPoint > * | aPointList, |
CGraphicsContext::TFillRule | aFillRule = CGraphicsContext::EAlternate | |||
) | [virtual] |
Draws and fills a polygon defined using a list of points.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawPolygon(). The function behaviour is the same as documented in that class.
const CArrayFix< TPoint > * aPointList | |
CGraphicsContext::TFillRule aFillRule = CGraphicsContext::EAlternate |
IMPORT_C TInt | DrawPolygon | ( | const TPoint * | aPointList, |
TInt | aNumPoints, | |||
CGraphicsContext::TFillRule | aFillRule = CGraphicsContext::EAlternate | |||
) | [virtual] |
Draws and fills a polygon defined using a list of points.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawPolygon(). The function behaviour is the same as documented in that class.
const TPoint * aPointList | |
TInt aNumPoints | |
CGraphicsContext::TFillRule aFillRule = CGraphicsContext::EAlternate |
IMPORT_C void | DrawRect | ( | const TRect & | aRect | ) | [virtual] |
Draws and fills a rectangle.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawRect(). The function behaviour is the same as documented in that class.
const TRect & aRect |
IMPORT_C void | DrawRoundRect | ( | const TRect & | aRect, |
const TSize & | aEllipse | |||
) | [virtual] |
Draws and fills a rectangle with rounded corners.
The function provides a concrete implementation of the pure virtual function CGraphicsContext::DrawRoundRect(). The function behaviour is the same as documented in that class.
IMPORT_C void | DrawText | ( | const TDesC & | aText | ) |
Draws text at the last print position.
const TDesC & aText | The text string to be drawn. |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TPoint & | aPosition | |||
) | [virtual] |
Draws text at the specified position and updates the print position.
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TRect & | aBox | |||
) |
Draws text clipped to the specified rectangle.
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TTextAlign | aHrz = ELeft, | |||
TInt | aMargin = 0 | |||
) | [virtual] |
Draws text clipped to the specified rectangle using a baseline offset, horizontal alignment and a margin.
const TDesC & aText | The text string to be drawn |
const TRect & aBox | The clipping rectangle. |
TInt aBaselineOffset | An offset in pixels for the baseline from the normal position (bottom of the rectangle minus the descent of the font). |
TTextAlign aHrz = ELeft | Horizontal alignment option relative to the specified rectangle. |
TInt aMargin = 0 | Offset to add to the position as calculated using specified rectangle. |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TInt | aTextWidth, | |||
TTextAlign | aHrz = ELeft, | |||
TInt | aMargin = 0 | |||
) |
Draws text clipped to the specified rectangle.
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam | |||
) |
const TDesC & aText | |
const TTextParameters * aParam |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TPoint & | aPosition | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TPoint & aPosition |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TTextAlign | aHrz = ELeft, | |||
TInt | aMargin = 0 | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox | |
TInt aBaselineOffset | |
TTextAlign aHrz = ELeft | |
TInt aMargin = 0 |
IMPORT_C void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TInt | aTextWidth, | |||
TTextAlign | aHrz = ELeft, | |||
TInt | aMargin = 0 | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox | |
TInt aBaselineOffset | |
TInt aTextWidth | |
TTextAlign aHrz = ELeft | |
TInt aMargin = 0 |
void | DrawText | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TPoint & | aPosition, | |||
TTextAlign | aAlignment, | |||
CFont::TTextDirection | aDirection, | |||
const TRect * | aBox = NULL | |||
) | [private] |
The general DrawText routine that implements all the others.
const TDesC & aText | the text to be drawn |
const TTextParameters * aParam | |
const TPoint & aPosition | the origin of the text |
TTextAlign aAlignment | left, centred or right, around aPosition; not used if drawing vertically |
CFont::TTextDirection aDirection | direction: left to right, right to left, or top to bottom |
const TRect * aBox = NULL | if non-null, filled before the text is drawn |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
TBool | aUp | |||
) |
Draws text at the last print position and then rotates it into a vertical position.
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TPoint & | aPosition, | |||
TBool | aUp | |||
) | [virtual] |
Draws text vertically from the specified position.
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TRect & | aBox, | |||
TBool | aUp | |||
) |
Draws text clipped to the specified rectangle and then rotates it into a vertical position.
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) | [virtual] |
Draws text vertically, clipped to a specified rectangle, using a baseline offset, alignment and margin.
const TDesC & aText | The text string to be drawn. |
const TRect & aBox | A rectangle to clip the text to. |
TInt aBaselineOffset | Number of pixels to offset the baseline by. |
TBool aUp | ETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise. |
TTextAlign aVert = ELeft | Verticaly alignment of the text relative to the specified rectangle. |
TInt aMargin = 0 | Offset of the text from the position within the rectangle, using the specified alignment. |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TInt | aTextWidth, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) |
Draws text vertically, clipped to a specified rectangle, using a baseline offset, alignment and margin.
const TDesC & aText | The text string to be drawn. |
const TRect & aBox | A rectangle to clip the text to. |
TInt aBaselineOffset | Number of pixels to offset the baseline by. |
TInt aTextWidth | Number of pixels to clip the text to. |
TBool aUp | ETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise. |
TTextAlign aVert = ELeft | Verticaly alignment of the text relative to the specified rectangle. |
TInt aMargin = 0 | Offset of the text from the position within the rectangle, using the specified alignment. |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
TBool | aUp | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
TBool aUp |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TPoint & | aPosition, | |||
TBool | aUp | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TPoint & aPosition | |
TBool aUp |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox, | |||
TBool | aUp | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox | |
TBool aUp |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox | |
TInt aBaselineOffset | |
TBool aUp | |
TTextAlign aVert = ELeft | |
TInt aMargin = 0 |
IMPORT_C void | DrawTextVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
const TRect & | aBox, | |||
TInt | aBaselineOffset, | |||
TInt | aTextWidth, | |||
TBool | aUp, | |||
TTextAlign | aVert = ELeft, | |||
TInt | aMargin = 0 | |||
) |
const TDesC & aText | |
const TTextParameters * aParam | |
const TRect & aBox | |
TInt aBaselineOffset | |
TInt aTextWidth | |
TBool aUp | |
TTextAlign aVert = ELeft | |
TInt aMargin = 0 |
void | EllipseFill | ( | const TRect & | aRect | ) | [private] |
const TRect & aRect |
void | EllipseOutline | ( | const TRect & | aRect | ) | [private] |
const TRect & aRect |
void | EllipseOutlineWide | ( | const TRect & | aRect | ) | [private] |
const TRect & aRect |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aWriteStream | ) |
Externalizes an object of this class to a write stream. It is important that the brush bitmap of the GC is maintained between calls to externalize and internalize. The brush bitmap handle is externalized, not the bitmap data. This is done for performance.
RWriteStream & aWriteStream | Stream to which the object should be externalized. |
IMPORT_C void | FadeArea | ( | const TRegion * | aRegion | ) |
Sets the fade area.
const TRegion * aRegion | The region defining the fade area. |
TInt | FastBlendInterface | ( | const CBitwiseBitmap * | aSource, |
const CBitwiseBitmap * | aMask, | |||
MFastBlend *& | aFastBlend | |||
) | const [private] |
const CBitwiseBitmap * aSource | |
const CBitwiseBitmap * aMask | |
MFastBlend *& aFastBlend |
TUint32 * | GetScanLineOffsetPtr | ( | CBitwiseBitmap * | aSrce, |
TUint32 *& | aSlptr, | |||
TInt | aLength, | |||
TPoint | aPixel, | |||
TUint32 * | aBase, | |||
TLineScanningPosition & | aLineScanningPosition, | |||
TUint | aXOffset | |||
) | [private] |
Gets the scanline pointer with the offset
CBitwiseBitmap * aSrce | |
TUint32 *& aSlptr | |
TInt aLength | |
TPoint aPixel | |
TUint32 * aBase | |
TLineScanningPosition & aLineScanningPosition | |
TUint aXOffset |
void | GetStrikethroughMetrics | ( | TInt & | aTop, |
TInt & | aBottom | |||
) | [private] |
Get the top and bottom of a strikethrough line for the current font, relative to the baseline.
IMPORT_C void | InternalizeL | ( | RReadStream & | aReadStream | ) |
Internalizes an object of this class from a read stream. It is important that the brush bitmap of the GC is maintained between calls to externalize and internalize. The brush bitmap handle is internalized, not the bitmap data.
RReadStream & aReadStream | Stream from which the object is to be internalized. |
IMPORT_C TBool | IsBrushPatternUsed | ( | ) | const |
Tests whether a brush pattern is being used.
TInt16 | Load16 | ( | const TUint8 * | aPtr | ) | [static, inline] |
const TUint8 * aPtr |
IMPORT_C void | MapColors | ( | const TRect & | aRect, |
const TRgb * | aColors, | |||
TInt | aNumPairs = 2, | |||
TBool | aMapForwards = ETrue | |||
) | [virtual] |
Maps pixels in the specified rectangle. The function tries to match the colour of a pixel with one of the RGB values in an array of RGB pairs. If there is a match, the colour is changed to the value specified in the other RGB in the RGB pair.
const TRect & aRect | The rectangle in which pixels are to be mapped. |
const TRgb * aColors | A pointer to a set of RGB pairs. |
TInt aNumPairs = 2 | The number of pairs |
TBool aMapForwards = ETrue | ETrue, mapping is done from the first RGB to the second RGB in the pair; EFalse, mapping is done from the second RGB to the first RGB in the pair. |
TUint | MemoryOffsetForPixelPitch | ( | TUint | aX, |
TDisplayMode | aDisplayMode | |||
) | [private] |
Calculates the position into the scanline for the given x coordinate
TUint aX | |
TDisplayMode aDisplayMode |
IMPORT_C void | MoveBy | ( | const TPoint & | aVector | ) | [virtual] |
Sets the drawing point relative to the current co-ordinates. The function provides a concrete implementation of the pure virtual function CGraphicsContext::MoveBy(). The function behaviour is the same as documented in that class.
const TPoint & aVector |
IMPORT_C void | MoveTo | ( | const TPoint & | aPoint | ) | [virtual] |
Sets the internal drawing position relative to the co-ordinate origin. A subsequent call to DrawLineTo() or DrawLineBy() uses the new drawing point as the start point for the line drawn.The function provides a concrete implementation of the pure virtual function CGraphicsContext::MoveTo(). The function behaviour is the same as documented in that class.
const TPoint & aPoint |
IMPORT_C CFbsBitGc * | NewL | ( | ) | [static] |
Factory function for creating a CFbsBitGc object The object is then ready for a call to Activate().
IMPORT_C void | OrientationsAvailable | ( | TBool | aOrientation | ) |
Gets the orientations supported.
TBool aOrientation |
void | OutputCharLine | ( | TPoint | aPrintPos, |
TUint32 * | aBuffer, | |||
TInt | aDataLength, | |||
TInt | aNum, | |||
TBool | aBold, | |||
TInt | aWidthFactor, | |||
TInt | aHeightFactor | |||
) | [private] |
void | OutputCharLineMultiplied | ( | TPoint | aPrintPos, |
TUint32 * | aBuffer, | |||
TInt | aDataLength, | |||
TInt | aNum, | |||
TBool | aBold, | |||
TInt | aWidthMultiplier, | |||
TInt | aHeightMultiplier | |||
) | [private] |
void | OutputCharLineVertical | ( | TPoint | aPrintPos, |
TUint32 * | aBuffer, | |||
TInt | aDataLength, | |||
TInt | aNum, | |||
TBool | aBold, | |||
TInt | aWidthFactor, | |||
TInt | aHeightFactor, | |||
TBool | aUp | |||
) | [private] |
void | PenDrawDeferred | ( | TPoint | aPoint, |
TInt * | aArray, | |||
TInt | aFirstElement | |||
) | [private] |
void | PieArcOutline | ( | const TRect & | aRect, |
const TPoint & | aStartRadius, | |||
const TPoint & | aEndRadius, | |||
TBool | aDoPie | |||
) | [private] |
void | PieFill | ( | const TRect & | ellrect, |
const TPoint & | aStartIntersect, | |||
const TPoint & | aEndIntersect, | |||
TInt | aStartQuadrant, | |||
TInt | aEndQuadrant, | |||
const TBool * | aQuadrants | |||
) | [private] |
void | PieShell | ( | const TRect & | ellrect, |
const TPoint & | startradius, | |||
const TPoint & | endradius, | |||
const TBool * | quads, | |||
TInt | startquad, | |||
TInt | endquad | |||
) | [private] |
void | PieSliver | ( | const TRect & | ellrect, |
const TPoint & | startradius, | |||
const TPoint & | endradius, | |||
TInt | quad | |||
) | [private] |
void | PieTriangles | ( | TBool | aInside, |
const TPoint & | aStart, | |||
const TPoint & | aEnd | |||
) | [private] |
IMPORT_C void | Plot | ( | const TPoint & | aPoint | ) | [virtual] |
Draws a single point.
The point is drawn with the current pen settings using the current drawing mode.The function provides a concrete implementation of the pure virtual function CGraphicsContext::Plot(). The function behaviour is the same as documented in that class.
const TPoint & aPoint |
void | PolyFill | ( | const CArrayFix< TPoint > * | aPointList, |
TFillRule | aFillRule | |||
) | [private] |
void | PolyFill | ( | const TPoint * | aPointList, |
TInt | aNumPoints, | |||
TFillRule | aFillRule | |||
) | [private] |
void | PolyFillLarge | ( | const CArrayFix< TPoint > * | aPointList, |
TFillRule | aFillRule | |||
) | [private] |
void | PolyFillLarge | ( | const TPoint * | aPointList, |
TInt | aNumPoints, | |||
TFillRule | aFillRule | |||
) | [private] |
void | PolyOutline | ( | const CArrayFix< TPoint > * | aPointList | ) | [private] |
void | PolyOutline | ( | const TPoint * | aPointList, |
TInt | aNumPoints | |||
) | [private] |
CFbsRasterizer * | PrepareRasterizerForExtendedBitmap | ( | const CFbsBitmap & | aBitmap | ) | [private] |
Prepares the rasterizer to retrieve scan lines from a bitmap if it is an extended bitmap. No region of interest is passed to the rasterizer. This function calls CFbsRasterizer::BeginBitmap() with the appropriate parameters. When finished retrieving scan lines from the extended bitmap, CFbsRasterizer::EndBitmap() must be called. CFbsRasterizer
const CFbsBitmap & aBitmap | The bitmap to retrieve scan lines from. |
CFbsRasterizer * | PrepareRasterizerForExtendedBitmap | ( | const CFbsBitmap & | aBitmap, |
const TRect & | aDestRect, | |||
const TPoint & | aOffset | |||
) | [private] |
Prepares the rasterizer to retrieve scan lines from a bitmap if it is an extended bitmap. The region of interest passed to the rasterizer is the intersection of the clipping region and the specified rectangle. This function calls CFbsRasterizer::BeginBitmap() with the appropriate parameters. When finished retrieving scan lines from the extended bitmap, CFbsRasterizer::EndBitmap() must be called. CFbsRasterizer
const CFbsBitmap & aBitmap | The bitmap to retrieve scan lines from. |
const TRect & aDestRect | A rectangle in coordinates relative to the graphics context that bounds the area that aBitmap is to be blitted onto. |
const TPoint & aOffset | An offset that converts aDestRect into coordinates relative to the source bitmap. |
CFbsRasterizer * | PrepareRasterizerForExtendedBitmap | ( | const CFbsBitmap & | aBitmap, |
const TRect & | aDestRect, | |||
const TRect & | aSourceRect | |||
) | [private] |
Prepares the rasterizer to retrieve scan lines from a bitmap if it is an extended bitmap. The region of interest passed to the rasterizer is the intersection of the clipping region, the clipping rectangle and the specified rectangle. This function calls CFbsRasterizer::BeginBitmap() with the appropriate parameters. When finished retrieving scan lines from the extended bitmap, CFbsRasterizer::EndBitmap() must be called. CFbsRasterizer
const CFbsBitmap & aBitmap | The bitmap to retrieve scan lines from. |
const TRect & aDestRect | A rectangle in coordinates relative to the graphics context that bounds the area that aBitmap is to be drawn onto. |
const TRect & aSourceRect | A rectangle in coordinates relative to the source bitmap that maps to aDestRect after scaling and translation. |
IMPORT_C void | RectDrawnTo | ( | TRect & | aRect | ) |
Fetches the bounding rectangle of all drawing done since this function was last called.
TRect & aRect | The bounding rectangle. |
IMPORT_C void | Reserved_CGraphicsContext_2 | ( | ) | [private, virtual] |
A reserved virtual function for future use.
IMPORT_C void | Reset | ( | ) | [virtual] |
Resets the graphics context to its default settings. The function provides a concrete implementation of the pure virtual function CGraphicsContext::Reset(). The function behaviour is the same as documented in that class. CGraphicsContext::Reset()
IMPORT_C void | Resized | ( | ) |
Needs to be called if the device is resized. This only applies to devices of type CFbsBitmapDevice.
void | RoundRectOutline | ( | const TRect & | aRect, |
TSize | aSize | |||
) | [private] |
TDisplayMode | ScanLineBufferDisplayMode | ( | CFbsDrawDevice * | aDrawDevice | ) | [private] |
CFbsDrawDevice * aDrawDevice |
IMPORT_C void | SetBrushColor | ( | const TRgb & | aColor | ) | [virtual] |
Sets the brush colour. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetBrushColor(). The function behaviour is the same as documented in that class.
const TRgb & aColor |
IMPORT_C void | SetBrushOrigin | ( | const TPoint & | aOrigin | ) | [virtual] |
Sets the brush pattern origin. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetBrushOrigin(). The function behaviour is the same as documented in that class.
const TPoint & aOrigin |
IMPORT_C void | SetBrushStyle | ( | TBrushStyle | aBrushStyle | ) | [virtual] |
Sets the brush style. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetBrushStyle(). The function behaviour is the same as documented in that class.
TBrushStyle aBrushStyle |
IMPORT_C void | SetCharJustification | ( | TInt | aExcessWidth, |
TInt | aNumGaps | |||
) | [virtual] |
Sets the character justification. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetCharJustification(). The function behaviour is the same as documented in that class.
IMPORT_C void | SetClippingRect | ( | const TRect & | aRect | ) | [virtual] |
Sets the clipping rectangle. This function provides a concrete implementation of the pure virtual function CGraphicsContext::SetClippingRect(). The function behaviour is the same as documented in that class. CGraphicsContext::SetClippingRect()
const TRect & aRect |
IMPORT_C void | SetClippingRegion | ( | const TRegion * | aRegion | ) |
const TRegion * aRegion |
IMPORT_C TInt | SetClippingRegion | ( | const TRegion & | aRegion | ) | [virtual] |
Sets a clipping region by storing a copy of the TRegion parameter. CGraphicsContext::SetClippingRegion().
const TRegion & aRegion | The clipping region to be stored and used. aRegion must be valid and bounded withing the iDefaultRegion. |
IMPORT_C void | SetDitherOrigin | ( | const TPoint & | aPoint | ) |
Sets the dither origin. This is only useful for modes that do dithering. If the display is scrolled an odd number of pixels then the (2x2) dither pattern will not match up for new drawing unless this is called.
const TPoint & aPoint | The dither origin. |
IMPORT_C void | SetDrawMode | ( | TDrawMode | ) | [virtual] |
Sets the drawing mode. This affects the colour that is actually drawn, because it defines the way that the current screen colour logically combines with the current pen colour and brush colour. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetDrawMode(). The function behaviour is the same as documented in that class. CGraphicsContext::SetDrawMode()
TDrawMode |
void | SetFadeMode | ( | TBool | aFadeMode = EFalse | ) | [inline] |
TBool aFadeMode = EFalse |
IMPORT_C void | SetFaded | ( | TBool | aFaded | ) | [virtual] |
Sets whether the graphics context is faded. The function provides a concrete implementation of the pure virtual function CBitmapContext::SetFaded(). The function behaviour is the same as documented in that class.
TBool aFaded |
void | SetFadingParameters | ( | TUint8 | aBlackMap = 0 | ) | [inline] |
TUint8 aBlackMap = 0 |
IMPORT_C void | SetFadingParameters | ( | TUint8 | aBlackMap, |
TUint8 | aWhiteMap | |||
) | [virtual] |
Set fading parameters. The function provides a concrete implementation of the pure virtual function CBitmapContext::SetFadingParameters(). The function behaviour is the same as documented in that class.
IMPORT_C TBool | SetOrientation | ( | TGraphicsOrientation | aOrientation | ) |
Sets the orientation.
TGraphicsOrientation aOrientation | The required orientation |
IMPORT_C void | SetOrigin | ( | const TPoint & | aPoint = TPoint(0, 0) | ) | [virtual] |
Sets the position of the co-ordinate origin. All subsequent drawing operations are then done relative to this origin.The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetOrigin(). The function behaviour is the same as documented in that class.
IMPORT_C void | SetPenColor | ( | const TRgb & | aColor | ) | [virtual] |
Sets the pen colour. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetPenColor(). The function behaviour is the same as documented in that class.
const TRgb & aColor |
IMPORT_C void | SetPenSize | ( | const TSize & | aSize | ) | [virtual] |
Sets the line drawing size for the pen. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetPenSize(). The function behaviour is the same as documented in that class.
const TSize & aSize |
IMPORT_C void | SetPenStyle | ( | TPenStyle | ) | [virtual] |
Sets the line drawing style for the pen. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetPenStyle(). The function behaviour is the same as documented in that class. CGraphicsContext::SetPenStyle()
TPenStyle |
IMPORT_C void | SetShadowMode | ( | TBool | aShadowMode = EFalse | ) |
Sets the shadow mode on or off.
TBool aShadowMode = EFalse | ETrue, shadow mode is on; EFalse, shadow mode is off. EFalse is the default. |
IMPORT_C void | SetStrikethroughStyle | ( | TFontStrikethrough | aStrikethroughStyle | ) | [virtual] |
Sets the strikethrough style for all subsequently drawn text. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetStrikethroughStyle(). The function behaviour is the same as documented in that class.
TFontStrikethrough aStrikethroughStyle |
IMPORT_C void | SetUnderlineStyle | ( | TFontUnderline | aUnderlineStyle | ) | [virtual] |
Sets the underline style for all subsequently drawn text. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetUnderlineStyle(). The function behaviour is the same as documented in that class.
TFontUnderline aUnderlineStyle |
IMPORT_C void | SetUserDisplayMode | ( | TDisplayMode | aDisplayMode | ) |
Simulates another graphics mode. Some devices running in some modes can simulate other modes (EGray16 will do EGray4 and EGray2, EGray4 will do EGray2).
TDisplayMode aDisplayMode | The display mode to be set. |
IMPORT_C void | SetWordJustification | ( | TInt | aExcessWidth, |
TInt | aNumChars | |||
) | [virtual] |
Sets the word justification. The function provides a concrete implementation of the pure virtual function CGraphicsContext::SetWordJustification(). The function behaviour is the same as documented in that class.
IMPORT_C void | ShadowArea | ( | const TRegion * | aRegion | ) |
Sets the shadow area.
const TRegion * aRegion | The region defining the shadow area. |
void | ShadowFadeArea | ( | const TRegion * | aRegion, |
TInt8 | aShadowMode | |||
) | [private] |
IMPORT_C void | UpdateJustification | ( | const TDesC & | aText | ) |
Updates the justification settings. This function assumes that ActivateNoJustAutoUpdate() has been used.
const TDesC & aText | The text for which justification is to be adjusted. |
IMPORT_C void | UpdateJustification | ( | const TDesC & | aText, |
const TTextParameters * | aParam | |||
) |
Updates the justification settings. This function assumes that ActivateNoJustAutoUpdate() has been used.
const TDesC & aText | The text for which justification is to be adjusted. |
const TTextParameters * aParam |
IMPORT_C void | UpdateJustificationVertical | ( | const TDesC & | aText, |
TBool | aUp | |||
) |
Updates the justification for vertical text.
IMPORT_C void | UpdateJustificationVertical | ( | const TDesC & | aText, |
const TTextParameters * | aParam, | |||
TBool | aUp | |||
) |
Updates the justification for vertical text.
const TDesC & aText | The text for which justification is to be adjusted. |
const TTextParameters * aParam | |
TBool aUp | ETrue, if text is to be justified upwards;EFalse, if text is to be justified downwards. |
IMPORT_C void | UseBrushPattern | ( | const CFbsBitmap * | aBitmap | ) | [virtual] |
Sets the specified bitmap to be used as the brush pattern.
const CFbsBitmap * aBitmap | The bitmap. |
IMPORT_C TInt | UseBrushPattern | ( | TInt | aFbsBitmapHandle | ) |
Sets the specified bitmap to be used as the brush pattern.
TInt aFbsBitmapHandle | The handle number of the bitmap. |
IMPORT_C void | UseFont | ( | const CFont * | aFont | ) | [virtual] |
Selects the device font, identified by handle number, to be used for text drawing. Notes: When the font is no longer required, use DiscardFont() to free up the memory used. If UseFont() is used again without using DiscardFont() then the previous font is discarded automatically. If no font has been selected, and an attempt is made to draw text with DrawText(), then a panic occurs. CFont
const CFont * aFont |
IMPORT_C TInt | UseFont | ( | TInt | aFontHandle | ) |
Selects the device font, identified by handle, to be used for text drawing. Notes:When the font is no longer required, use DiscardFont() to free up the memory used. If UseFont() is used again without using DiscardFont() then the previous font is discarded automatically.If no font has been selected, and an attempt is made to draw text with DrawText(), then a panic occurs.
TInt aFontHandle | A handle for a device font. |
IMPORT_C void | UseFontNoDuplicate | ( | const CFbsBitGcFont * | aFont | ) |
Selects a device font for text drawing but does not take a copy. The original must not be destroyed until UseFont(), UseFontNoDuplicate(), DiscardFont() or the destructor is called.
const CFbsBitGcFont * aFont | A pointer to the font to be used. |
Defines possible rotation values.
EGraphicsOrientationNormal |
Normal orientation is supported. |
EGraphicsOrientationRotated90 |
A 90 degree rotation is supported. |
EGraphicsOrientationRotated180 |
A 180 degree rotation is supported. |
EGraphicsOrientationRotated270 |
A 270 degree rotation is supported. |
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.