CFbsBitGc Class Reference

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 voidActivate(CFbsDevice *)
IMPORT_C voidActivateNoJustAutoUpdate(CFbsDevice *)
IMPORT_C TIntAlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const CFbsBitmap *, const TRect &, const TPoint &, const CFbsBitmap *, const TPoint &)
IMPORT_C TIntAlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, const TPoint &)
IMPORT_C TIntAlphaBlendBitmaps(const TPoint &, const CWsBitmap *, const TRect &, const CWsBitmap *, const TPoint &)
IMPORT_C voidBitBlt(const TPoint &, const CFbsBitGc &)
IMPORT_C voidBitBlt(const TPoint &, const CFbsBitGc &, const TRect &)
IMPORT_C voidBitBlt(const TPoint &, const CFbsBitmap *)
IMPORT_C voidBitBlt(const TPoint &, const CFbsBitmap *, const TRect &)
IMPORT_C voidBitBltMasked(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool)
IMPORT_C TRgbBrushColor()
IMPORT_C voidCancelClipping()
IMPORT_C voidCancelClippingRect()
IMPORT_C voidCancelClippingRegion()
IMPORT_C voidChangeDevice(CFbsDevice *)
IMPORT_C voidClear()
IMPORT_C voidClear(const TRect &)
IMPORT_C voidCopyRect(const TPoint &, const TRect &)
IMPORT_C voidCopySettings(const CFbsBitGc &)
IMPORT_C CGraphicsDevice *Device()
IMPORT_C voidDiscardBrushPattern()
IMPORT_C voidDiscardFont()
IMPORT_C voidDrawArc(const TRect &, const TPoint &, const TPoint &)
IMPORT_C voidDrawBitmap(const TPoint &, const CFbsBitmap *)
IMPORT_C voidDrawBitmap(const TRect &, const CFbsBitmap *)
IMPORT_C voidDrawBitmap(const TRect &, const CFbsBitmap *, const TRect &)
IMPORT_C voidDrawBitmapMasked(const TRect &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool)
IMPORT_C voidDrawBitmapMasked(const TRect &, const CWsBitmap *, const TRect &, const CWsBitmap *, TBool)
IMPORT_C voidDrawEllipse(const TRect &)
IMPORT_C voidDrawLine(const TPoint &, const TPoint &)
IMPORT_C voidDrawLineBy(const TPoint &)
IMPORT_C voidDrawLineTo(const TPoint &)
IMPORT_C voidDrawPie(const TRect &, const TPoint &, const TPoint &)
IMPORT_C voidDrawPolyLine(const CArrayFix< TPoint > *)
IMPORT_C voidDrawPolyLine(const TPoint *, TInt)
IMPORT_C voidDrawPolyLineNoEndPoint(const CArrayFix< TPoint > *)
IMPORT_C voidDrawPolyLineNoEndPoint(const TPoint *, TInt)
IMPORT_C TIntDrawPolygon(const CArrayFix< TPoint > *, CGraphicsContext::TFillRule)
IMPORT_C TIntDrawPolygon(const TPoint *, TInt, CGraphicsContext::TFillRule)
IMPORT_C voidDrawRect(const TRect &)
IMPORT_C voidDrawRoundRect(const TRect &, const TSize &)
IMPORT_C voidDrawText(const TDesC &)
IMPORT_C voidDrawText(const TDesC &, const TPoint &)
IMPORT_C voidDrawText(const TDesC &, const TRect &)
IMPORT_C voidDrawText(const TDesC &, const TRect &, TInt, TTextAlign, TInt)
IMPORT_C voidDrawText(const TDesC &, const TRect &, TInt, TInt, TTextAlign, TInt)
IMPORT_C voidDrawText(const TDesC &, const TTextParameters *)
IMPORT_C voidDrawText(const TDesC &, const TTextParameters *, const TPoint &)
IMPORT_C voidDrawText(const TDesC &, const TTextParameters *, const TRect &)
IMPORT_C voidDrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TTextAlign, TInt)
IMPORT_C voidDrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TTextAlign, TInt)
IMPORT_C voidDrawTextVertical(const TDesC &, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TPoint &, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TRect &, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TRect &, TInt, TBool, TTextAlign, TInt)
IMPORT_C voidDrawTextVertical(const TDesC &, const TRect &, TInt, TInt, TBool, TTextAlign, TInt)
IMPORT_C voidDrawTextVertical(const TDesC &, const TTextParameters *, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TTextParameters *, const TPoint &, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TBool)
IMPORT_C voidDrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TBool, TTextAlign, TInt)
IMPORT_C voidDrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TBool, TTextAlign, TInt)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidFadeArea(const TRegion *)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C TBoolIsBrushPatternUsed()
IMPORT_C TBoolIsFontUsed()
TInt16 Load16(const TUint8 *)
IMPORT_C voidMapColors(const TRect &, const TRgb *, TInt, TBool)
IMPORT_C voidMoveBy(const TPoint &)
IMPORT_C voidMoveTo(const TPoint &)
IMPORT_C CFbsBitGc *NewL()
IMPORT_C voidOrientationsAvailable(TBool)
IMPORT_C TRgbPenColor()
IMPORT_C voidPlot(const TPoint &)
IMPORT_C voidRectDrawnTo(TRect &)
IMPORT_C voidReset()
IMPORT_C voidResized()
IMPORT_C voidSetBrushColor(const TRgb &)
IMPORT_C voidSetBrushOrigin(const TPoint &)
IMPORT_C voidSetBrushStyle(TBrushStyle)
IMPORT_C voidSetCharJustification(TInt, TInt)
IMPORT_C voidSetClippingRect(const TRect &)
IMPORT_C voidSetClippingRegion(const TRegion *)
IMPORT_C TIntSetClippingRegion(const TRegion &)
IMPORT_C voidSetDitherOrigin(const TPoint &)
IMPORT_C voidSetDrawMode(TDrawMode)
voidSetFadeMode(TBool)
IMPORT_C voidSetFaded(TBool)
voidSetFadingParameters(TUint8)
IMPORT_C voidSetFadingParameters(TUint8, TUint8)
IMPORT_C TBoolSetOrientation(TGraphicsOrientation)
IMPORT_C voidSetOrigin(const TPoint &)
IMPORT_C voidSetPenColor(const TRgb &)
IMPORT_C voidSetPenSize(const TSize &)
IMPORT_C voidSetPenStyle(TPenStyle)
IMPORT_C voidSetShadowMode(TBool)
IMPORT_C voidSetStrikethroughStyle(TFontStrikethrough)
IMPORT_C voidSetUnderlineStyle(TFontUnderline)
IMPORT_C voidSetUserDisplayMode(TDisplayMode)
IMPORT_C voidSetWordJustification(TInt, TInt)
IMPORT_C voidShadowArea(const TRegion *)
IMPORT_C voidUpdateJustification(const TDesC &)
IMPORT_C voidUpdateJustification(const TDesC &, const TTextParameters *)
IMPORT_C voidUpdateJustificationVertical(const TDesC &, TBool)
IMPORT_C voidUpdateJustificationVertical(const TDesC &, const TTextParameters *, TBool)
IMPORT_C voidUseBrushPattern(const CFbsBitmap *)
IMPORT_C TIntUseBrushPattern(TInt)
IMPORT_C voidUseFont(const CFont *)
IMPORT_C TIntUseFont(TInt)
IMPORT_C voidUseFontNoDuplicate(const CFbsBitGcFont *)
Protected Member Functions
IMPORT_C TIntAPIExtension(TUid, TAny *&, TAny *)
Private Member Functions
CFbsBitGc()
TInt APIExGetShadowColor(TAny *&)
voidAPIExGetUnderlineMetrics(TAny *&)
TInt APIExIsFbsBitGc(TAny *&)
TInt APIExSetShadowColor(TAny *)
voidAddRect(const TRect &)
TBool AnalyseEllipse(const TRect &, TPoint &, TPoint &, TInt &, TInt &, TBool *)
TInt BaselineCorrection()
voidBitMultiply(TUint32 *, TInt, TInt)
voidCheckDevice()
TBool CheckDevice(const TRect &)
TUint32 *ClipBinaryArray(TUint32 *, TUint32 *, TInt, TInt &, TInt &, TPoint &)
voidClipFillLine(TPoint, TPoint)
voidCopyCharLine(TUint32 *, TInt, const TUint8 *, TInt, TInt)
voidCopyCharWord(TUint32 *, const TUint8 *, TInt)
voidDoBitBlt(const TPoint &, CFbsDevice *, const TRect &)
voidDoBitBlt(const TPoint &, CBitwiseBitmap *, TUint32 *, TInt, const TRect &)
voidDoBitBltAlpha(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, const TPoint &, TInt, TBool)
voidDoBitBltAlpha(const TPoint &, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const TRect &, const TPoint &, const TPoint &, TInt)
voidDoBitBltMasked(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)
voidDoBitBltMaskedFlicker(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)
voidDoBitBltMaskedNonFlicker(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)
voidDoBitBltMaskedNonFlickerPatterned(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)
voidDoBitBltMaskedNonFlickerSolid(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)
voidDoCopyRect(const TPoint &, const TRect &)
voidDoDrawBitmap(const TRect &, CBitwiseBitmap *, TUint32 *, TInt, const TRect &, const TPoint &)
voidDoDrawBitmapMasked(const TRect &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &)
voidDoDrawCharacter(const TPoint &, const TSize &, const TUint8 *)
voidDoDrawCharacterAntiAliased(const TPoint &, const TSize &, const TUint8 *, const TGlyphBitmapType)
voidDoDrawCharacterEx(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt)
voidDoDrawCharacterExLarge(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)
voidDoDrawCharacterLarge(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)
voidDoDrawCharacterMultiplied(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)
voidDoDrawCharacterVertical(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt, TBool)
voidDoDrawCharacterVerticalAntiAliased(const TPoint &, const TSize &, const TUint8 *, TBool, TGlyphBitmapType)
voidDoDrawDottedWideLine(const TPoint &, const TPoint &, TBool, const TRect &)
voidDoDrawLine(TPoint, TPoint, TBool)
voidDoDrawSolidWideLine(const TPoint &, const TPoint &, TBool, const TRect &)
voidDoDrawText(CFont::TPositionParam &, const TInt)
voidDoDrawTextEx(CFont::TPositionParam &, const CBitmapFont *, const TInt, const TInt)
voidDoDrawTextLarge(CFont::TPositionParam &, const CBitmapFont *, const TInt)
voidDoDrawTextVertical(CFont::TPositionParam &, const CBitmapFont *, TBool, const TInt)
voidDoPlot(const TPoint &)
voidDrawText(const TDesC &, const TTextParameters *, const TPoint &, TTextAlign, CFont::TTextDirection, const TRect *)
voidEllipseFill(const TRect &)
voidEllipseOutline(const TRect &)
voidEllipseOutlineWide(const TRect &)
TInt FastBlendInterface(const CBitwiseBitmap *, const CBitwiseBitmap *, MFastBlend *&)
TUint32 *GetScanLineOffsetPtr(CBitwiseBitmap *, TUint32 *&, TInt, TPoint, TUint32 *, TLineScanningPosition &, TUint)
voidGetStrikethroughMetrics(TInt &, TInt &)
CGraphicsAccelerator *GraphicsAccelerator()
TUint MemoryOffsetForPixelPitch(TUint, TDisplayMode)
voidOutputCharLine(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt)
voidOutputCharLineMultiplied(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt)
voidOutputCharLineVertical(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt, TBool)
voidPenAllocate()
voidPenDrawClipped(TPoint)
voidPenDrawDeferred(TPoint, TInt *, TInt)
voidPieArcOutline(const TRect &, const TPoint &, const TPoint &, TBool)
voidPieFill(const TRect &, const TPoint &, const TPoint &, TInt, TInt, const TBool *)
voidPieShell(const TRect &, const TPoint &, const TPoint &, const TBool *, TInt, TInt)
voidPieSliver(const TRect &, const TPoint &, const TPoint &, TInt)
voidPieTriangles(TBool, const TPoint &, const TPoint &)
voidPolyFill(const CArrayFix< TPoint > *, TFillRule)
voidPolyFill(const TPoint *, TInt, TFillRule)
voidPolyFillLarge(const CArrayFix< TPoint > *, TFillRule)
voidPolyFillLarge(const TPoint *, TInt, TFillRule)
voidPolyOutline(const CArrayFix< TPoint > *)
voidPolyOutline(const TPoint *, TInt)
CFbsRasterizer *PrepareRasterizerForExtendedBitmap(const CFbsBitmap &)
CFbsRasterizer *PrepareRasterizerForExtendedBitmap(const CFbsBitmap &, const TRect &, const TPoint &)
CFbsRasterizer *PrepareRasterizerForExtendedBitmap(const CFbsBitmap &, const TRect &, const TRect &)
voidRectFill(const TRect &)
IMPORT_C voidReserved_CBitmapContext_1()
IMPORT_C voidReserved_CBitmapContext_2()
IMPORT_C voidReserved_CBitmapContext_3()
IMPORT_C voidReserved_CFbsBitGc_1()
IMPORT_C voidReserved_CFbsBitGc_2()
IMPORT_C voidReserved_CFbsBitGc_3()
IMPORT_C voidReserved_CFbsBitGc_4()
IMPORT_C voidReserved_CFbsBitGc_5()
IMPORT_C voidReserved_CGraphicsContext_2()
voidRoundRectFill(const TRect &, TSize)
voidRoundRectOutline(const TRect &, TSize)
TDisplayMode ScanLineBufferDisplayMode(CFbsDrawDevice *)
voidSetupDevice()
voidShadowFadeArea(const TRegion *, TInt8)
TBool UserClipRect(TRect &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CGraphicsContext::DrawText(const TDesC &,const TPoint &,const TDrawTextParam &)
CGraphicsContext::DrawText(const TDesC &,const TTextParameters *,const TPoint &,const TDrawTextParam &)
CGraphicsContext::DrawTextExtended(const TDesC &,const TPoint &,const TDrawTextExtendedParam &)
CGraphicsContext::DrawTextExtended(const TDesC &,const TTextParameters *,const TPoint &,const TDrawTextExtendedParam &)
CGraphicsContext::GetShadowColor(TRgb &)
CGraphicsContext::GetUnderlineMetrics(TInt &,TInt &)
CGraphicsContext::IsFbsBitGc()const
CGraphicsContext::JustificationInPixels(TInt &,TInt &)
CGraphicsContext::JustificationInPixels(TInt,TInt,TInt,TInt)
CGraphicsContext::Reserved()
CGraphicsContext::SetShadowColor(const TRgb &)
Public Member Enumerations
enumTGraphicsOrientation { EGraphicsOrientationNormal, EGraphicsOrientationRotated90, EGraphicsOrientationRotated180, EGraphicsOrientationRotated270 }
Inherited Enumerations
CGraphicsContext:TBrushStyle
CGraphicsContext:TDrawMode
CGraphicsContext:TDrawModeComponents
CGraphicsContext:TFillRule
CGraphicsContext:TPenStyle
CGraphicsContext:TTextAlign
Private Attributes
TInt8 iAutoUpdateJustification
CFbsBitGcBitmap iBrushBitmap
TRgb iBrushColor
TPoint iBrushOrigin
TBrushStyle iBrushStyle
TBool iBrushUsed
TInt iCharJustExcess
TInt iCharJustNum
TRect iClipRect
RRegion iClippingRegion
TRegionFix< 1 >iDefaultRegion
const TRegion *iDefaultRegionPtr
CFbsDevice *iDevice
TPoint iDitherOrigin
TInt iDotDirection
TInt iDotLength
TInt iDotMask
TInt iDotParam
TDrawMode iDrawMode
TRect iDrawnTo
TUint8 iFadeBlackMap
TUint8 iFadeWhiteMap
CFbsBitGcExtraData *iFbsBitGcExtraData
CFbsBitGcFont iFont
TPoint iLastPrintPosition
TPoint iLinePosition
TPoint iOrigin
TRgb iPenColor
TSize iPenSize
TPenStyle iPenStyle
TInt8 iShadowMode
TFontStrikethrough iStrikethrough
TFontUnderline iUnderline
TRect iUserClipRect
TDisplayMode iUserDisplayMode
TInt iWordJustExcess
TInt iWordJustNum

Constructor & Destructor Documentation

CFbsBitGc()

CFbsBitGc()[private]

~CFbsBitGc()

IMPORT_C~CFbsBitGc()[virtual]

Frees all resources owned by the object.

Member Functions Documentation

APIExGetShadowColor(TAny *&)

TInt APIExGetShadowColor(TAny *&aShadowColor)[private]

Parameters

TAny *& aShadowColor

APIExGetUnderlineMetrics(TAny *&)

voidAPIExGetUnderlineMetrics(TAny *&aOutput)[private]

Parameters

TAny *& aOutput

APIExIsFbsBitGc(TAny *&)

TInt APIExIsFbsBitGc(TAny *&aIsCFbsBitGc)[private]

Parameters

TAny *& aIsCFbsBitGc

APIExSetShadowColor(TAny *)

TInt APIExSetShadowColor(TAny *aShadowColor)[private]

Parameters

TAny * aShadowColor

APIExtension(TUid, TAny *&, TAny *)

IMPORT_C TIntAPIExtension(TUidaUid,
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

Parameters

TUid aUidThe unique identifier for the method that is required. Selected internally by a series of "if" statements.
TAny *& aOutputis 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 * aInputis a TAny pointer used to input data.

Activate(CFbsDevice *)

IMPORT_C voidActivate(CFbsDevice *aDevice)

Sets the object to draw to a particular device

Parameters

CFbsDevice * aDeviceThe target device.

ActivateNoJustAutoUpdate(CFbsDevice *)

IMPORT_C voidActivateNoJustAutoUpdate(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().

Parameters

CFbsDevice * aDeviceThe target device.

AddRect(const TRect &)

voidAddRect(const TRect &aRect)[private]

Parameters

const TRect & aRect

AlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const CFbsBitmap *, const TRect &, const TPoint &, const CFbsBitmap *, const TPoint &)

IMPORT_C TIntAlphaBlendBitmaps(const TPoint &aDestPt,
const CFbsBitmap *aSrcBmp1,
const CFbsBitmap *aSrcBmp2,
const TRect &aSrcRect1,
const TPoint &aSrcPt2,
const CFbsBitmap *aAlphaBmp,
const TPoint &aAlphaPt
)
The method performs an alpha blending of the source data - aSrcBmp1 and aSrcBmp2, using the data from aAlphaBmp as an alpha blending factor. The formula used for that, is: (C1 * A + C2 * (255 - A)) / 255, where:
  • C1 - a pixel from aSrcBmp1;

  • C2 - a pixel from aSrcBmp2;

  • A - a pixel from aAlphaBmp; The content of source and alpha bitmap is preserved. The calculated alpha blended pixels are written to the destination - the screen or a bitmap.
    Pre-condition
    !aSrcRect1.IsEmpty()
    aSrcBmp1 != NULL
    aSrcBmp1->Handle() != NULL
    aSrcBmp2 != NULL
    aSrcBmp2->Handle() != NULL
    aAlphaBmp != NULL
    aAlphaBmp->Handle() != NULL
    aAlphaBmp->DisplayMode() <= EGray256

Parameters

const TPoint & aDestPtPosition in the target the result should be drawn to.
const CFbsBitmap * aSrcBmp1A pointer to the source bitmap 1.
const CFbsBitmap * aSrcBmp2A pointer to the source bitmap 2.
const TRect & aSrcRect1A part of bitmap 1 that should be used as a source for the alpha blending.
const TPoint & aSrcPt2Position 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 * aAlphaBmpA pointer to the bitmap used as an alpha blending factor.
const TPoint & aAlphaPtPosition 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.

AlphaBlendBitmaps(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, const TPoint &)

IMPORT_C TIntAlphaBlendBitmaps(const TPoint &aDestPt,
const CFbsBitmap *aSrcBmp,
const TRect &aSrcRect,
const CFbsBitmap *aAlphaBmp,
const TPoint &aAlphaPt
)[virtual]
The method performs an alpha blending of the source data - aSrcBmp - with the existing image, using the data from aAlphaBmp as an alpha blending factor. The formula used for that, is: (C * A + D * (255 - A)) / 255, where:
  • C - a pixel from aSrcBmp;

  • D - a pixel from the destination;

  • A - a pixel from aAlphaBmp; The content of source and alpha bitmap is preserved. The calculated alpha blended pixels are written to the destination - the screen or a bitmap.
    Pre-condition
    !aSrcRect.IsEmpty()
    aSrcBmp != NULL
    aSrcBmp->Handle() != NULL
    aAlphaBmp != NULL
    aAlphaBmp->Handle() != NULL
    aAlphaBmp->DisplayMode() <= EGray256

Parameters

const TPoint & aDestPtPosition in the target the result should be drawn to.
const CFbsBitmap * aSrcBmpA pointer to the source bitmap.
const TRect & aSrcRectA 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 * aAlphaBmpA pointer to the bitmap used as an alpha blending factor.
const TPoint & aAlphaPtPosition 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).

AlphaBlendBitmaps(const TPoint &, const CWsBitmap *, const TRect &, const CWsBitmap *, const TPoint &)

IMPORT_C TIntAlphaBlendBitmaps(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.

Parameters

const TPoint & aDestPtPosition in the target the result should be drawn to.
const CWsBitmap * aSrcBmpA pointer to the source bitmap.
const TRect & aSrcRectThe part of the source bitmap that should be used.
const CWsBitmap * aAlphaBmpA pointer to the bitmap used as an alpha blending factor.
const TPoint & aAlphaPtPosition 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.

AnalyseEllipse(const TRect &, TPoint &, TPoint &, TInt &, TInt &, TBool *)

TBool AnalyseEllipse(const TRect &rc,
TPoint &srad,
TPoint &erad,
TInt &startq,
TInt &endq,
TBool *quads
)[private]
Determine the pie constructed within the given rectangle.
Pre-condition
Input params rc, srad, erad are to be given.
Post-condition
Output params srad, erad, startq, endq, quads will be populated.

Parameters

const TRect & rcInput - The bounding rectangle.
TPoint & sradInput/Output - The intersection point from the geometric centre of the ellipse to the given start point
TPoint & eradInput/Output - The intersection point from the geometric centre of the ellipse to the given end point
TInt & startqOutput - The start quadrant
TInt & endqOutput - The end quadrant
TBool * quadsOutput - Quadrants

BaselineCorrection()

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

BitBlt(const TPoint &, const CFbsBitGc &)

IMPORT_C voidBitBlt(const TPoint &aPoint,
const CFbsBitGc &aGc
)

Draws from another CFbsBitGc.

Parameters

const TPoint & aPointThe position to draw the top left corner of the piece of bitmap
const CFbsBitGc & aGcThe source bitmap graphics context

BitBlt(const TPoint &, const CFbsBitGc &, const TRect &)

IMPORT_C voidBitBlt(const TPoint &aPoint,
const CFbsBitGc &aGc,
const TRect &aSourceRect
)

Draws a particular rectangle from another CFbsBitGc.

Parameters

const TPoint & aPointThe position to draw the top left corner of the piece of bitmap.
const CFbsBitGc & aGcThe source bitmap graphics context.
const TRect & aSourceRectA rectangle defining the piece of the source to be drawn.

BitBlt(const TPoint &, const CFbsBitmap *)

IMPORT_C voidBitBlt(const TPoint &aPoint,
const CFbsBitmap *aBitmap
)[virtual]

Draws the whole of a CFbsBitmap.

Parameters

const TPoint & aPointThe position to draw the top left corner of the bitmap.
const CFbsBitmap * aBitmapThe source bitmap.

BitBlt(const TPoint &, const CFbsBitmap *, const TRect &)

IMPORT_C voidBitBlt(const TPoint &aPoint,
const CFbsBitmap *aBitmap,
const TRect &aSourceRect
)[virtual]

Draws a particular rectangle from a CFbsBitmap.

Parameters

const TPoint & aPointThe position to draw the top left corner of the bitmap.
const CFbsBitmap * aBitmapThe source bitmap.
const TRect & aSourceRectA rectangle defining the piece of the source to be drawn.

BitBltMasked(const TPoint &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool)

IMPORT_C voidBitBltMasked(const TPoint &aPoint,
const CFbsBitmap *aBitmap,
const TRect &aSourceRect,
const CFbsBitmap *aMaskBitmap,
TBoolaInvertMask
)[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.

CBitmapContext::BitBltMasked()

Parameters

const TPoint & aPoint
const CFbsBitmap * aBitmap
const TRect & aSourceRect
const CFbsBitmap * aMaskBitmap
TBool aInvertMask

BitMultiply(TUint32 *, TInt, TInt)

voidBitMultiply(TUint32 *aBinaryDataPtr,
TIntaBitLength,
TIntaMultiplier
)[private]

Parameters

TUint32 * aBinaryDataPtr
TInt aBitLength
TInt aMultiplier

BrushColor()

IMPORT_C TRgbBrushColor()

Returns current setting of brush color.

CancelClipping()

IMPORT_C voidCancelClipping()

Cancels clipping rectangle and region.

CancelClippingRect()

IMPORT_C voidCancelClippingRect()[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()

CancelClippingRegion()

IMPORT_C voidCancelClippingRegion()[virtual]

Cancels the clipping region.

ChangeDevice(CFbsDevice *)

IMPORT_C voidChangeDevice(CFbsDevice *aDevice)

Replace target device but keep the current state

Parameters

CFbsDevice * aDeviceThe target device

CheckDevice()

voidCheckDevice()const [private]

CheckDevice(const TRect &)

TBool CheckDevice(const TRect &aRect)const [private]

Parameters

const TRect & aRect

Clear()

IMPORT_C voidClear()[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.

CBitmapContext::Clear()

Clear(const TRect &)

IMPORT_C voidClear(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.

Parameters

const TRect & aRect

ClipBinaryArray(TUint32 *, TUint32 *, TInt, TInt &, TInt &, TPoint &)

TUint32 *ClipBinaryArray(TUint32 *aArray,
TUint32 *aArrayLimit,
TIntaArrayWordWd,
TInt &aDataWd,
TInt &aDataHt,
TPoint &aPos
)[private]

Parameters

TUint32 * aArray
TUint32 * aArrayLimit
TInt aArrayWordWd
TInt & aDataWd
TInt & aDataHt
TPoint & aPos

ClipFillLine(TPoint, TPoint)

voidClipFillLine(TPoint,
TPoint
)[private]

Parameters

TPoint
TPoint

CopyCharLine(TUint32 *, TInt, const TUint8 *, TInt, TInt)

voidCopyCharLine(TUint32 *aBinaryDataPtr,
TIntaBufferWords,
const TUint8 *aData,
TIntaBitShift,
TIntaCharWidth
)[private]

Parameters

TUint32 * aBinaryDataPtr
TInt aBufferWords
const TUint8 * aData
TInt aBitShift
TInt aCharWidth

CopyCharWord(TUint32 *, const TUint8 *, TInt)

voidCopyCharWord(TUint32 *aBinaryDataPtr,
const TUint8 *aData,
TIntaBitShift
)[private]

Parameters

TUint32 * aBinaryDataPtr
const TUint8 * aData
TInt aBitShift

CopyRect(const TPoint &, const TRect &)

IMPORT_C voidCopyRect(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.

Parameters

const TPoint & aOffset
const TRect & aRect

CopySettings(const CFbsBitGc &)

IMPORT_C voidCopySettings(const CFbsBitGc &aGc)

Copies all settings from the specified bitmap graphics context.

Parameters

const CFbsBitGc & aGcThe bitmap graphics context whose settings are to be copied.

Device()

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()

DiscardBrushPattern()

IMPORT_C voidDiscardBrushPattern()[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()

DiscardFont()

IMPORT_C voidDiscardFont()[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()

DoBitBlt(const TPoint &, CFbsDevice *, const TRect &)

voidDoBitBlt(const TPoint &aDest,
CFbsDevice *aDevice,
const TRect &aSourceRect
)[private]

Does BitBlt operation of source and bitmap per scanline.

Parameters

const TPoint & aDest
CFbsDevice * aDevice
const TRect & aSourceRect

DoBitBlt(const TPoint &, CBitwiseBitmap *, TUint32 *, TInt, const TRect &)

voidDoBitBlt(const TPoint &aDest,
CBitwiseBitmap *aBitmap,
TUint32 *aBase,
TIntaStride,
const TRect &aSourceRect
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aBitmap
TUint32 * aBase
TInt aStride
const TRect & aSourceRect

DoBitBltAlpha(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, const TPoint &, TInt, TBool)

voidDoBitBltAlpha(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
const TPoint &aAlphaPoint,
TIntaShadowMode,
TBoolaInvertMask
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
const TPoint & aAlphaPoint
TInt aShadowMode
TBool aInvertMask

DoBitBltAlpha(const TPoint &, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const TRect &, const TPoint &, const TPoint &, TInt)

voidDoBitBltAlpha(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,
TIntaShadowMode
)[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.

Parameters

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

DoBitBltMasked(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)

voidDoBitBltMasked(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
const TPoint &aDitherOrigin,
TIntaShadowMode
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin
TInt aShadowMode

DoBitBltMaskedFlicker(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)

voidDoBitBltMaskedFlicker(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
const TPoint &aDitherOrigin,
TIntaShadowMode
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin
TInt aShadowMode

DoBitBltMaskedNonFlicker(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)

voidDoBitBltMaskedNonFlicker(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
const TPoint &aDitherOrigin,
TIntaShadowMode
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin
TInt aShadowMode

DoBitBltMaskedNonFlickerPatterned(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)

voidDoBitBltMaskedNonFlickerPatterned(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
const TPoint &aDitherOrigin,
TIntaShadowMode
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin
TInt aShadowMode

DoBitBltMaskedNonFlickerSolid(const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &, TInt)

voidDoBitBltMaskedNonFlickerSolid(const TPoint &aDest,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
const TPoint &aDitherOrigin,
TIntaShadowMode
)[private]

Parameters

const TPoint & aDest
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin
TInt aShadowMode

DoCopyRect(const TPoint &, const TRect &)

voidDoCopyRect(const TPoint &,
const TRect &
)[private]

Parameters

const TPoint &
const TRect &

DoDrawBitmap(const TRect &, CBitwiseBitmap *, TUint32 *, TInt, const TRect &, const TPoint &)

voidDoDrawBitmap(const TRect &,
CBitwiseBitmap *,
TUint32 *aBase,
TIntaStride,
const TRect &,
const TPoint &aDitherOrigin
)[private]

Parameters

const TRect &
CBitwiseBitmap *
TUint32 * aBase
TInt aStride
const TRect &
const TPoint & aDitherOrigin

DoDrawBitmapMasked(const TRect &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool, const TPoint &)

voidDoDrawBitmapMasked(const TRect &aDestRect,
CBitwiseBitmap *aSourceBitmap,
TUint32 *aSourceBase,
const TRect &aSourceRect,
CBitwiseBitmap *aMaskBitmap,
TUint32 *aMaskBase,
TBoolaInvertMask,
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.

Parameters

const TRect & aDestRect
CBitwiseBitmap * aSourceBitmap
TUint32 * aSourceBase
const TRect & aSourceRect
CBitwiseBitmap * aMaskBitmap
TUint32 * aMaskBase
TBool aInvertMask
const TPoint & aDitherOrigin

DoDrawCharacter(const TPoint &, const TSize &, const TUint8 *)

voidDoDrawCharacter(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData

DoDrawCharacterAntiAliased(const TPoint &, const TSize &, const TUint8 *, const TGlyphBitmapType)

voidDoDrawCharacterAntiAliased(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
const TGlyphBitmapTypeaGlyphType
)[private]

This function draws an anti-aliased character.

Parameters

const TPoint & aTopLeftThe position to output the character
const TSize & aDataSizeThe size of the bitmap
const TUint8 * aDatathe bitmap for outputt in their TOpenFontCharMetrics
const TGlyphBitmapType aGlyphTypethe glyph type for the character

DoDrawCharacterEx(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt)

voidDoDrawCharacterEx(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaBold,
TBoolaItalic,
TIntaSemiAscent
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData
TBool aBold
TBool aItalic
TInt aSemiAscent

DoDrawCharacterExLarge(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)

voidDoDrawCharacterExLarge(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaBold,
TBoolaItalic,
TIntaSemiAscent,
TIntaWidthFactor,
TIntaHeightFactor
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData
TBool aBold
TBool aItalic
TInt aSemiAscent
TInt aWidthFactor
TInt aHeightFactor

DoDrawCharacterLarge(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)

voidDoDrawCharacterLarge(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaBold,
TBoolaItalic,
TIntaSemiAscent,
TIntaWidthFactor,
TIntaHeightFactor
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData
TBool aBold
TBool aItalic
TInt aSemiAscent
TInt aWidthFactor
TInt aHeightFactor

DoDrawCharacterMultiplied(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt)

voidDoDrawCharacterMultiplied(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaBold,
TBoolaItalic,
TIntaSemiAscent,
TIntaWidthMultiplier,
TIntaHeightMultiplier
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData
TBool aBold
TBool aItalic
TInt aSemiAscent
TInt aWidthMultiplier
TInt aHeightMultiplier

DoDrawCharacterVertical(const TPoint &, const TSize &, const TUint8 *, TBool, TBool, TInt, TInt, TInt, TBool)

voidDoDrawCharacterVertical(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaBold,
TBoolaItalic,
TIntaSemiAscent,
TIntaWidthFactor,
TIntaHeightFactor,
TBoolaUp
)[private]

Parameters

const TPoint & aTopLeft
const TSize & aDataSize
const TUint8 * aData
TBool aBold
TBool aItalic
TInt aSemiAscent
TInt aWidthFactor
TInt aHeightFactor
TBool aUp

DoDrawCharacterVerticalAntiAliased(const TPoint &, const TSize &, const TUint8 *, TBool, TGlyphBitmapType)

voidDoDrawCharacterVerticalAntiAliased(const TPoint &aTopLeft,
const TSize &aDataSize,
const TUint8 *aData,
TBoolaUp,
TGlyphBitmapTypeaGlyphBitmapType
)[private]

This function draws an anti-aliased character.

Parameters

const TPoint & aTopLeftThe position to output the character
const TSize & aDataSizeThe size of the bitmap
const TUint8 * aDatathe bitmap for outputt in their TOpenFontCharMetrics
TBool aUpthe direction of the text
TGlyphBitmapType aGlyphBitmapType

DoDrawDottedWideLine(const TPoint &, const TPoint &, TBool, const TRect &)

voidDoDrawDottedWideLine(const TPoint &pt1,
const TPoint &pt2,
TBooldrawstart,
const TRect &screenrect
)[private]

Parameters

const TPoint & pt1
const TPoint & pt2
TBool drawstart
const TRect & screenrect

DoDrawLine(TPoint, TPoint, TBool)

voidDoDrawLine(TPointaStart,
TPointaEnd,
TBoolaDrawStartPoint
)[private]

Parameters

TPoint aStart
TPoint aEnd
TBool aDrawStartPoint

DoDrawSolidWideLine(const TPoint &, const TPoint &, TBool, const TRect &)

voidDoDrawSolidWideLine(const TPoint &pt1,
const TPoint &pt2,
TBooldrawstart,
const TRect &screenrect
)[private]

Parameters

const TPoint & pt1
const TPoint & pt2
TBool drawstart
const TRect & screenrect

DoDrawText(CFont::TPositionParam &, const TInt)

voidDoDrawText(CFont::TPositionParam &aParam,
const TIntaEnd
)[private]

Parameters

CFont::TPositionParam & aParam
const TInt aEnd

DoDrawTextEx(CFont::TPositionParam &, const CBitmapFont *, const TInt, const TInt)

voidDoDrawTextEx(CFont::TPositionParam &aParam,
const CBitmapFont *font,
const TIntaEnd,
const TIntaUnderlineStrikethroughOffset
)[private]

Parameters

CFont::TPositionParam & aParam
const CBitmapFont * font
const TInt aEnd
const TInt aUnderlineStrikethroughOffset

DoDrawTextLarge(CFont::TPositionParam &, const CBitmapFont *, const TInt)

voidDoDrawTextLarge(CFont::TPositionParam &aParam,
const CBitmapFont *font,
const TIntaEnd
)[private]

Parameters

CFont::TPositionParam & aParam
const CBitmapFont * font
const TInt aEnd

DoDrawTextVertical(CFont::TPositionParam &, const CBitmapFont *, TBool, const TInt)

voidDoDrawTextVertical(CFont::TPositionParam &aParam,
const CBitmapFont *font,
TBoolaUp,
const TIntaEnd
)[private]

Parameters

CFont::TPositionParam & aParam
const CBitmapFont * font
TBool aUp
const TInt aEnd

DoPlot(const TPoint &)

voidDoPlot(const TPoint &pt)[private]

Parameters

const TPoint & pt

DrawArc(const TRect &, const TPoint &, const TPoint &)

IMPORT_C voidDrawArc(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.

Parameters

const TRect & aRect
const TPoint & aStart
const TPoint & aEnd

DrawBitmap(const TPoint &, const CFbsBitmap *)

IMPORT_C voidDrawBitmap(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.

Parameters

const TPoint & aTopLeft
const CFbsBitmap * aSource

DrawBitmap(const TRect &, const CFbsBitmap *)

IMPORT_C voidDrawBitmap(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.

TLinearDDA

Parameters

const TRect & aDestRectThe rectangle within which the bitmap is to be drawn.
const CFbsBitmap * aSourceA source bitmap.

DrawBitmap(const TRect &, const CFbsBitmap *, const TRect &)

IMPORT_C voidDrawBitmap(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.

TLinearDDA

Parameters

const TRect & aDestRectThe rectangle within which the bitmap is to be drawn.
const CFbsBitmap * aSourceA source bitmap.
const TRect & aSourceRectThe rectangle in the source bitmap that is copied to the destination rectangle.

DrawBitmapMasked(const TRect &, const CFbsBitmap *, const TRect &, const CFbsBitmap *, TBool)

IMPORT_C voidDrawBitmapMasked(const TRect &aDestRect,
const CFbsBitmap *aBitmap,
const TRect &aSourceRect,
const CFbsBitmap *aMaskBitmap,
TBoolaInvertMask
)[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.

Note:

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.

Pre-condition
aBitmap != NULL
aBitmap->Handle() != 0
aMaskBitmap != NULL
aMaskBitmap->Handle() != 0
!aSourceRect.IsEmpty()
aSourceRect should be in the bounds of the bitmap

Parameters

const TRect & aDestRectThe rectangle within which the masked bitmap is to be drawn.
const CFbsBitmap * aBitmapA pointer to the source bitmap.
const TRect & aSourceRectThe rectangle in the source bitmap that is copied to the destination rectangle.
const CFbsBitmap * aMaskBitmapA pointer to the mask bitmap.
TBool aInvertMaskIf 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.

DrawBitmapMasked(const TRect &, const CWsBitmap *, const TRect &, const CWsBitmap *, TBool)

IMPORT_C voidDrawBitmapMasked(const TRect &aDestRect,
const CWsBitmap *aBitmap,
const TRect &aSourceRect,
const CWsBitmap *aMaskBitmap,
TBoolaInvertMask
)[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.

Note:

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.

Pre-condition
aBitmap != NULL
aBitmap->Handle() != 0
aMaskBitmap != NULL
aMaskBitmap->Handle() != 0
!aSourceRect.IsEmpty()

Parameters

const TRect & aDestRectThe rectangle within which the masked bitmap is to be drawn.
const CWsBitmap * aBitmapA pointer to the source bitmap.
const TRect & aSourceRectThe rectangle in the source bitmap that is copied to the destination rectangle.
const CWsBitmap * aMaskBitmapA pointer to the mask bitmap.
TBool aInvertMaskIf 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.

DrawEllipse(const TRect &)

IMPORT_C voidDrawEllipse(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.

Parameters

const TRect & aRect

DrawLine(const TPoint &, const TPoint &)

IMPORT_C voidDrawLine(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.

Parameters

const TPoint & aStart
const TPoint & aEnd

DrawLineBy(const TPoint &)

IMPORT_C voidDrawLineBy(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.

Parameters

const TPoint & aVector

DrawLineTo(const TPoint &)

IMPORT_C voidDrawLineTo(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.

Parameters

const TPoint & aPoint

DrawPie(const TRect &, const TPoint &, const TPoint &)

IMPORT_C voidDrawPie(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.

Parameters

const TRect & aRect
const TPoint & aStart
const TPoint & aEnd

DrawPolyLine(const CArrayFix< TPoint > *)

IMPORT_C voidDrawPolyLine(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.

Parameters

const CArrayFix< TPoint > * aPointList

DrawPolyLine(const TPoint *, TInt)

IMPORT_C voidDrawPolyLine(const TPoint *aPointList,
TIntaNumPoints
)[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.

Parameters

const TPoint * aPointList
TInt aNumPoints

DrawPolyLineNoEndPoint(const CArrayFix< TPoint > *)

IMPORT_C voidDrawPolyLineNoEndPoint(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.

Parameters

const CArrayFix< TPoint > * aPointListAn array containing the points on the polyline.

DrawPolyLineNoEndPoint(const TPoint *, TInt)

IMPORT_C voidDrawPolyLineNoEndPoint(const TPoint *aPointList,
TIntaNumPoints
)

Draws a polyline from a set of points specified in a list, but does not draw the final point of the last line.

Parameters

const TPoint * aPointListPointer to a set of points on the polyline.
TInt aNumPointsNumber of points in the list.

DrawPolygon(const CArrayFix< TPoint > *, CGraphicsContext::TFillRule)

IMPORT_C TIntDrawPolygon(const CArrayFix< TPoint > *aPointList,
CGraphicsContext::TFillRuleaFillRule = 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.

Parameters

const CArrayFix< TPoint > * aPointList
CGraphicsContext::TFillRule aFillRule = CGraphicsContext::EAlternate

DrawPolygon(const TPoint *, TInt, CGraphicsContext::TFillRule)

IMPORT_C TIntDrawPolygon(const TPoint *aPointList,
TIntaNumPoints,
CGraphicsContext::TFillRuleaFillRule = 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.

Parameters

const TPoint * aPointList
TInt aNumPoints
CGraphicsContext::TFillRule aFillRule = CGraphicsContext::EAlternate

DrawRect(const TRect &)

IMPORT_C voidDrawRect(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.

Parameters

const TRect & aRect

DrawRoundRect(const TRect &, const TSize &)

IMPORT_C voidDrawRoundRect(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.

Parameters

const TRect & aRect
const TSize & aEllipse

DrawText(const TDesC &)

IMPORT_C voidDrawText(const TDesC &aText)

Draws text at the last print position.

Parameters

const TDesC & aTextThe text string to be drawn.

DrawText(const TDesC &, const TPoint &)

IMPORT_C voidDrawText(const TDesC &aText,
const TPoint &aPosition
)[virtual]

Draws text at the specified position and updates the print position.

Parameters

const TDesC & aTextThe text string to be drawn
const TPoint & aPositionCoordinates to draw the text at.

DrawText(const TDesC &, const TRect &)

IMPORT_C voidDrawText(const TDesC &aText,
const TRect &aBox
)

Draws text clipped to the specified rectangle.

Parameters

const TDesC & aTextThe text string to be drawn
const TRect & aBoxThe clipping rectangle.

DrawText(const TDesC &, const TRect &, TInt, TTextAlign, TInt)

IMPORT_C voidDrawText(const TDesC &aText,
const TRect &aBox,
TIntaBaselineOffset,
TTextAlignaHrz = ELeft,
TIntaMargin = 0
)[virtual]

Draws text clipped to the specified rectangle using a baseline offset, horizontal alignment and a margin.

Parameters

const TDesC & aTextThe text string to be drawn
const TRect & aBoxThe clipping rectangle.
TInt aBaselineOffsetAn offset in pixels for the baseline from the normal position (bottom of the rectangle minus the descent of the font).
TTextAlign aHrz = ELeftHorizontal alignment option relative to the specified rectangle.
TInt aMargin = 0Offset to add to the position as calculated using specified rectangle.

DrawText(const TDesC &, const TRect &, TInt, TInt, TTextAlign, TInt)

IMPORT_C voidDrawText(const TDesC &aText,
const TRect &aBox,
TIntaBaselineOffset,
TIntaTextWidth,
TTextAlignaHrz = ELeft,
TIntaMargin = 0
)

Draws text clipped to the specified rectangle.

Parameters

const TDesC & aTextThe text string to be drawn
const TRect & aBoxThe clipping rectangle.
TInt aBaselineOffset
TInt aTextWidth
TTextAlign aHrz = ELeft
TInt aMargin = 0

DrawText(const TDesC &, const TTextParameters *)

IMPORT_C voidDrawText(const TDesC &aText,
const TTextParameters *aParam
)

Parameters

const TDesC & aText
const TTextParameters * aParam

DrawText(const TDesC &, const TTextParameters *, const TPoint &)

IMPORT_C voidDrawText(const TDesC &aText,
const TTextParameters *aParam,
const TPoint &aPosition
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TPoint & aPosition

DrawText(const TDesC &, const TTextParameters *, const TRect &)

IMPORT_C voidDrawText(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox

DrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TTextAlign, TInt)

IMPORT_C voidDrawText(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox,
TIntaBaselineOffset,
TTextAlignaHrz = ELeft,
TIntaMargin = 0
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox
TInt aBaselineOffset
TTextAlign aHrz = ELeft
TInt aMargin = 0

DrawText(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TTextAlign, TInt)

IMPORT_C voidDrawText(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox,
TIntaBaselineOffset,
TIntaTextWidth,
TTextAlignaHrz = ELeft,
TIntaMargin = 0
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox
TInt aBaselineOffset
TInt aTextWidth
TTextAlign aHrz = ELeft
TInt aMargin = 0

DrawText(const TDesC &, const TTextParameters *, const TPoint &, TTextAlign, CFont::TTextDirection, const TRect *)

voidDrawText(const TDesC &aText,
const TTextParameters *aParam,
const TPoint &aPosition,
TTextAlignaAlignment,
CFont::TTextDirectionaDirection,
const TRect *aBox = NULL
)[private]

The general DrawText routine that implements all the others.

Parameters

const TDesC & aTextthe text to be drawn
const TTextParameters * aParam
const TPoint & aPositionthe origin of the text
TTextAlign aAlignmentleft, centred or right, around aPosition; not used if drawing vertically
CFont::TTextDirection aDirectiondirection: left to right, right to left, or top to bottom
const TRect * aBox = NULLif non-null, filled before the text is drawn

DrawTextVertical(const TDesC &, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
TBoolaUp
)

Draws text at the last print position and then rotates it into a vertical position.

Parameters

const TDesC & aTextThe text string to be drawn.
TBool aUpETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.

DrawTextVertical(const TDesC &, const TPoint &, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TPoint &aPosition,
TBoolaUp
)[virtual]

Draws text vertically from the specified position.

Parameters

const TDesC & aTextThe text string to be drawn.
const TPoint & aPositionA point specifying the position of the left end of the text.
TBool aUpETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.

DrawTextVertical(const TDesC &, const TRect &, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TRect &aBox,
TBoolaUp
)

Draws text clipped to the specified rectangle and then rotates it into a vertical position.

Parameters

const TDesC & aTextThe text string to be drawn
const TRect & aBoxThe clipping rectangle.
TBool aUpETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.

DrawTextVertical(const TDesC &, const TRect &, TInt, TBool, TTextAlign, TInt)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TRect &aBox,
TIntaBaselineOffset,
TBoolaUp,
TTextAlignaVert = ELeft,
TIntaMargin = 0
)[virtual]

Draws text vertically, clipped to a specified rectangle, using a baseline offset, alignment and margin.

Parameters

const TDesC & aTextThe text string to be drawn.
const TRect & aBoxA rectangle to clip the text to.
TInt aBaselineOffsetNumber of pixels to offset the baseline by.
TBool aUpETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.
TTextAlign aVert = ELeftVerticaly alignment of the text relative to the specified rectangle.
TInt aMargin = 0Offset of the text from the position within the rectangle, using the specified alignment.

DrawTextVertical(const TDesC &, const TRect &, TInt, TInt, TBool, TTextAlign, TInt)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TRect &aBox,
TIntaBaselineOffset,
TIntaTextWidth,
TBoolaUp,
TTextAlignaVert = ELeft,
TIntaMargin = 0
)

Draws text vertically, clipped to a specified rectangle, using a baseline offset, alignment and margin.

Parameters

const TDesC & aTextThe text string to be drawn.
const TRect & aBoxA rectangle to clip the text to.
TInt aBaselineOffsetNumber of pixels to offset the baseline by.
TInt aTextWidthNumber of pixels to clip the text to.
TBool aUpETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.
TTextAlign aVert = ELeftVerticaly alignment of the text relative to the specified rectangle.
TInt aMargin = 0Offset of the text from the position within the rectangle, using the specified alignment.

DrawTextVertical(const TDesC &, const TTextParameters *, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TTextParameters *aParam,
TBoolaUp
)

Parameters

const TDesC & aText
const TTextParameters * aParam
TBool aUp

DrawTextVertical(const TDesC &, const TTextParameters *, const TPoint &, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TTextParameters *aParam,
const TPoint &aPosition,
TBoolaUp
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TPoint & aPosition
TBool aUp

DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TBool)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox,
TBoolaUp
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox
TBool aUp

DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TBool, TTextAlign, TInt)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox,
TIntaBaselineOffset,
TBoolaUp,
TTextAlignaVert = ELeft,
TIntaMargin = 0
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox
TInt aBaselineOffset
TBool aUp
TTextAlign aVert = ELeft
TInt aMargin = 0

DrawTextVertical(const TDesC &, const TTextParameters *, const TRect &, TInt, TInt, TBool, TTextAlign, TInt)

IMPORT_C voidDrawTextVertical(const TDesC &aText,
const TTextParameters *aParam,
const TRect &aBox,
TIntaBaselineOffset,
TIntaTextWidth,
TBoolaUp,
TTextAlignaVert = ELeft,
TIntaMargin = 0
)

Parameters

const TDesC & aText
const TTextParameters * aParam
const TRect & aBox
TInt aBaselineOffset
TInt aTextWidth
TBool aUp
TTextAlign aVert = ELeft
TInt aMargin = 0

EllipseFill(const TRect &)

voidEllipseFill(const TRect &aRect)[private]

Parameters

const TRect & aRect

EllipseOutline(const TRect &)

voidEllipseOutline(const TRect &aRect)[private]

Parameters

const TRect & aRect

EllipseOutlineWide(const TRect &)

voidEllipseOutlineWide(const TRect &aRect)[private]

Parameters

const TRect & aRect

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(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.

Parameters

RWriteStream & aWriteStreamStream to which the object should be externalized.

FadeArea(const TRegion *)

IMPORT_C voidFadeArea(const TRegion *aRegion)

Sets the fade area.

Parameters

const TRegion * aRegionThe region defining the fade area.

FastBlendInterface(const CBitwiseBitmap *, const CBitwiseBitmap *, MFastBlend *&)

TInt FastBlendInterface(const CBitwiseBitmap *aSource,
const CBitwiseBitmap *aMask,
MFastBlend *&aFastBlend
)const [private]

Parameters

const CBitwiseBitmap * aSource
const CBitwiseBitmap * aMask
MFastBlend *& aFastBlend

GetScanLineOffsetPtr(CBitwiseBitmap *, TUint32 *&, TInt, TPoint, TUint32 *, TLineScanningPosition &, TUint)

TUint32 *GetScanLineOffsetPtr(CBitwiseBitmap *aSrce,
TUint32 *&aSlptr,
TIntaLength,
TPointaPixel,
TUint32 *aBase,
TLineScanningPosition &aLineScanningPosition,
TUintaXOffset
)[private]

Gets the scanline pointer with the offset

Parameters

CBitwiseBitmap * aSrce
TUint32 *& aSlptr
TInt aLength
TPoint aPixel
TUint32 * aBase
TLineScanningPosition & aLineScanningPosition
TUint aXOffset

GetStrikethroughMetrics(TInt &, TInt &)

voidGetStrikethroughMetrics(TInt &aTop,
TInt &aBottom
)[private]

Get the top and bottom of a strikethrough line for the current font, relative to the baseline.

Parameters

TInt & aTop
TInt & aBottom

GraphicsAccelerator()

CGraphicsAccelerator *GraphicsAccelerator()[private]

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(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.

Parameters

RReadStream & aReadStreamStream from which the object is to be internalized.

IsBrushPatternUsed()

IMPORT_C TBoolIsBrushPatternUsed()const

Tests whether a brush pattern is being used.

IsFontUsed()

IMPORT_C TBoolIsFontUsed()const

Tests whether a font is used.

Load16(const TUint8 *)

TInt16 Load16(const TUint8 *aPtr)[static, inline]

Parameters

const TUint8 * aPtr

MapColors(const TRect &, const TRgb *, TInt, TBool)

IMPORT_C voidMapColors(const TRect &aRect,
const TRgb *aColors,
TIntaNumPairs = 2,
TBoolaMapForwards = 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.

Parameters

const TRect & aRectThe rectangle in which pixels are to be mapped.
const TRgb * aColorsA pointer to a set of RGB pairs.
TInt aNumPairs = 2The number of pairs
TBool aMapForwards = ETrueETrue, 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.

MemoryOffsetForPixelPitch(TUint, TDisplayMode)

TUint MemoryOffsetForPixelPitch(TUintaX,
TDisplayModeaDisplayMode
)[private]

Calculates the position into the scanline for the given x coordinate

Parameters

TUint aX
TDisplayMode aDisplayMode

MoveBy(const TPoint &)

IMPORT_C voidMoveBy(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.

Parameters

const TPoint & aVector

MoveTo(const TPoint &)

IMPORT_C voidMoveTo(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.

Parameters

const TPoint & aPoint

NewL()

IMPORT_C CFbsBitGc *NewL()[static]

Factory function for creating a CFbsBitGc object The object is then ready for a call to Activate().

OrientationsAvailable(TBool)

IMPORT_C voidOrientationsAvailable(TBoolaOrientation)

Gets the orientations supported.

Parameters

TBool aOrientation

OutputCharLine(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt)

voidOutputCharLine(TPointaPrintPos,
TUint32 *aBuffer,
TIntaDataLength,
TIntaNum,
TBoolaBold,
TIntaWidthFactor,
TIntaHeightFactor
)[private]

Parameters

TPoint aPrintPos
TUint32 * aBuffer
TInt aDataLength
TInt aNum
TBool aBold
TInt aWidthFactor
TInt aHeightFactor

OutputCharLineMultiplied(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt)

voidOutputCharLineMultiplied(TPointaPrintPos,
TUint32 *aBuffer,
TIntaDataLength,
TIntaNum,
TBoolaBold,
TIntaWidthMultiplier,
TIntaHeightMultiplier
)[private]

Parameters

TPoint aPrintPos
TUint32 * aBuffer
TInt aDataLength
TInt aNum
TBool aBold
TInt aWidthMultiplier
TInt aHeightMultiplier

OutputCharLineVertical(TPoint, TUint32 *, TInt, TInt, TBool, TInt, TInt, TBool)

voidOutputCharLineVertical(TPointaPrintPos,
TUint32 *aBuffer,
TIntaDataLength,
TIntaNum,
TBoolaBold,
TIntaWidthFactor,
TIntaHeightFactor,
TBoolaUp
)[private]

Parameters

TPoint aPrintPos
TUint32 * aBuffer
TInt aDataLength
TInt aNum
TBool aBold
TInt aWidthFactor
TInt aHeightFactor
TBool aUp

PenAllocate()

voidPenAllocate()[private]

PenColor()

IMPORT_C TRgbPenColor()

Returns current setting of pen color.

PenDrawClipped(TPoint)

voidPenDrawClipped(TPointaPoint)[private]

Parameters

TPoint aPoint

PenDrawDeferred(TPoint, TInt *, TInt)

voidPenDrawDeferred(TPointaPoint,
TInt *aArray,
TIntaFirstElement
)[private]

Parameters

TPoint aPoint
TInt * aArray
TInt aFirstElement

PieArcOutline(const TRect &, const TPoint &, const TPoint &, TBool)

voidPieArcOutline(const TRect &aRect,
const TPoint &aStartRadius,
const TPoint &aEndRadius,
TBoolaDoPie
)[private]

Parameters

const TRect & aRect
const TPoint & aStartRadius
const TPoint & aEndRadius
TBool aDoPie

PieFill(const TRect &, const TPoint &, const TPoint &, TInt, TInt, const TBool *)

voidPieFill(const TRect &ellrect,
const TPoint &aStartIntersect,
const TPoint &aEndIntersect,
TIntaStartQuadrant,
TIntaEndQuadrant,
const TBool *aQuadrants
)[private]

Parameters

const TRect & ellrect
const TPoint & aStartIntersect
const TPoint & aEndIntersect
TInt aStartQuadrant
TInt aEndQuadrant
const TBool * aQuadrants

PieShell(const TRect &, const TPoint &, const TPoint &, const TBool *, TInt, TInt)

voidPieShell(const TRect &ellrect,
const TPoint &startradius,
const TPoint &endradius,
const TBool *quads,
TIntstartquad,
TIntendquad
)[private]

Parameters

const TRect & ellrect
const TPoint & startradius
const TPoint & endradius
const TBool * quads
TInt startquad
TInt endquad

PieSliver(const TRect &, const TPoint &, const TPoint &, TInt)

voidPieSliver(const TRect &ellrect,
const TPoint &startradius,
const TPoint &endradius,
TIntquad
)[private]

Parameters

const TRect & ellrect
const TPoint & startradius
const TPoint & endradius
TInt quad

PieTriangles(TBool, const TPoint &, const TPoint &)

voidPieTriangles(TBoolaInside,
const TPoint &aStart,
const TPoint &aEnd
)[private]

Parameters

TBool aInside
const TPoint & aStart
const TPoint & aEnd

Plot(const TPoint &)

IMPORT_C voidPlot(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.

Parameters

const TPoint & aPoint

PolyFill(const CArrayFix< TPoint > *, TFillRule)

voidPolyFill(const CArrayFix< TPoint > *aPointList,
TFillRuleaFillRule
)[private]

Parameters

const CArrayFix< TPoint > * aPointList
TFillRule aFillRule

PolyFill(const TPoint *, TInt, TFillRule)

voidPolyFill(const TPoint *aPointList,
TIntaNumPoints,
TFillRuleaFillRule
)[private]

Parameters

const TPoint * aPointList
TInt aNumPoints
TFillRule aFillRule

PolyFillLarge(const CArrayFix< TPoint > *, TFillRule)

voidPolyFillLarge(const CArrayFix< TPoint > *aPointList,
TFillRuleaFillRule
)[private]

Parameters

const CArrayFix< TPoint > * aPointList
TFillRule aFillRule

PolyFillLarge(const TPoint *, TInt, TFillRule)

voidPolyFillLarge(const TPoint *aPointList,
TIntaNumPoints,
TFillRuleaFillRule
)[private]

Parameters

const TPoint * aPointList
TInt aNumPoints
TFillRule aFillRule

PolyOutline(const CArrayFix< TPoint > *)

voidPolyOutline(const CArrayFix< TPoint > *aPointList)[private]

Parameters

const CArrayFix< TPoint > * aPointList

PolyOutline(const TPoint *, TInt)

voidPolyOutline(const TPoint *aPointList,
TIntaNumPoints
)[private]

Parameters

const TPoint * aPointList
TInt aNumPoints

PrepareRasterizerForExtendedBitmap(const CFbsBitmap &)

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

Parameters

const CFbsBitmap & aBitmapThe bitmap to retrieve scan lines from.

PrepareRasterizerForExtendedBitmap(const CFbsBitmap &, const TRect &, const TPoint &)

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

Parameters

const CFbsBitmap & aBitmapThe bitmap to retrieve scan lines from.
const TRect & aDestRectA rectangle in coordinates relative to the graphics context that bounds the area that aBitmap is to be blitted onto.
const TPoint & aOffsetAn offset that converts aDestRect into coordinates relative to the source bitmap.

PrepareRasterizerForExtendedBitmap(const CFbsBitmap &, const TRect &, const TRect &)

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

Parameters

const CFbsBitmap & aBitmapThe bitmap to retrieve scan lines from.
const TRect & aDestRectA rectangle in coordinates relative to the graphics context that bounds the area that aBitmap is to be drawn onto.
const TRect & aSourceRectA rectangle in coordinates relative to the source bitmap that maps to aDestRect after scaling and translation.

RectDrawnTo(TRect &)

IMPORT_C voidRectDrawnTo(TRect &aRect)

Fetches the bounding rectangle of all drawing done since this function was last called.

Parameters

TRect & aRectThe bounding rectangle.

RectFill(const TRect &)

voidRectFill(const TRect &aRect)[private]

Parameters

const TRect & aRect

Reserved_CBitmapContext_1()

IMPORT_C voidReserved_CBitmapContext_1()[private, virtual]

Reserved_CBitmapContext_2()

IMPORT_C voidReserved_CBitmapContext_2()[private, virtual]

Reserved_CBitmapContext_3()

IMPORT_C voidReserved_CBitmapContext_3()[private, virtual]

Reserved_CFbsBitGc_1()

IMPORT_C voidReserved_CFbsBitGc_1()[private, virtual]

Reserved_CFbsBitGc_2()

IMPORT_C voidReserved_CFbsBitGc_2()[private, virtual]

Reserved_CFbsBitGc_3()

IMPORT_C voidReserved_CFbsBitGc_3()[private, virtual]

Reserved_CFbsBitGc_4()

IMPORT_C voidReserved_CFbsBitGc_4()[private, virtual]

Reserved_CFbsBitGc_5()

IMPORT_C voidReserved_CFbsBitGc_5()[private, virtual]

Reserved_CGraphicsContext_2()

IMPORT_C voidReserved_CGraphicsContext_2()[private, virtual]

A reserved virtual function for future use.

Reset()

IMPORT_C voidReset()[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()

Resized()

IMPORT_C voidResized()

Needs to be called if the device is resized. This only applies to devices of type CFbsBitmapDevice.

RoundRectFill(const TRect &, TSize)

voidRoundRectFill(const TRect &aRect,
TSizeaSize
)[private]

Parameters

const TRect & aRect
TSize aSize

RoundRectOutline(const TRect &, TSize)

voidRoundRectOutline(const TRect &aRect,
TSizeaSize
)[private]

Parameters

const TRect & aRect
TSize aSize

ScanLineBufferDisplayMode(CFbsDrawDevice *)

TDisplayMode ScanLineBufferDisplayMode(CFbsDrawDevice *aDrawDevice)[private]

Parameters

CFbsDrawDevice * aDrawDevice

SetBrushColor(const TRgb &)

IMPORT_C voidSetBrushColor(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.

Parameters

const TRgb & aColor

SetBrushOrigin(const TPoint &)

IMPORT_C voidSetBrushOrigin(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.

Parameters

const TPoint & aOrigin

SetBrushStyle(TBrushStyle)

IMPORT_C voidSetBrushStyle(TBrushStyleaBrushStyle)[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.

Parameters

TBrushStyle aBrushStyle

SetCharJustification(TInt, TInt)

IMPORT_C voidSetCharJustification(TIntaExcessWidth,
TIntaNumGaps
)[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.

Parameters

TInt aExcessWidth
TInt aNumGaps

SetClippingRect(const TRect &)

IMPORT_C voidSetClippingRect(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()

Parameters

const TRect & aRect

SetClippingRegion(const TRegion *)

IMPORT_C voidSetClippingRegion(const TRegion *aRegion)
Sets a clipping region by storing a pointer to the TRegion parameter. This function provides a concrete implementation of the pure virtual function CGraphicsContext::SetClippingRegion(). The function behaviour is the same as documented in that class.
panic
BITGDI 10 if aRegion is invalid or if aRegion is not contained by the device area.

Parameters

const TRegion * aRegion

SetClippingRegion(const TRegion &)

IMPORT_C TIntSetClippingRegion(const TRegion &aRegion)[virtual]

Sets a clipping region by storing a copy of the TRegion parameter. CGraphicsContext::SetClippingRegion().

Parameters

const TRegion & aRegionThe clipping region to be stored and used. aRegion must be valid and bounded withing the iDefaultRegion.

SetDitherOrigin(const TPoint &)

IMPORT_C voidSetDitherOrigin(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.

Parameters

const TPoint & aPointThe dither origin.

SetDrawMode(TDrawMode)

IMPORT_C voidSetDrawMode(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()

Parameters

TDrawMode

SetFadeMode(TBool)

voidSetFadeMode(TBoolaFadeMode = EFalse)[inline]

Parameters

TBool aFadeMode = EFalse

SetFaded(TBool)

IMPORT_C voidSetFaded(TBoolaFaded)[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.

Parameters

TBool aFaded

SetFadingParameters(TUint8)

voidSetFadingParameters(TUint8aBlackMap = 0)[inline]

Parameters

TUint8 aBlackMap = 0

SetFadingParameters(TUint8, TUint8)

IMPORT_C voidSetFadingParameters(TUint8aBlackMap,
TUint8aWhiteMap
)[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.

Parameters

TUint8 aBlackMap
TUint8 aWhiteMap

SetOrientation(TGraphicsOrientation)

IMPORT_C TBoolSetOrientation(TGraphicsOrientationaOrientation)

Sets the orientation.

Parameters

TGraphicsOrientation aOrientationThe required orientation

SetOrigin(const TPoint &)

IMPORT_C voidSetOrigin(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.

Parameters

const TPoint & aPoint =  TPoint(0, 0)

SetPenColor(const TRgb &)

IMPORT_C voidSetPenColor(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.

Parameters

const TRgb & aColor

SetPenSize(const TSize &)

IMPORT_C voidSetPenSize(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.

Parameters

const TSize & aSize

SetPenStyle(TPenStyle)

IMPORT_C voidSetPenStyle(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()

Parameters

TPenStyle

SetShadowMode(TBool)

IMPORT_C voidSetShadowMode(TBoolaShadowMode = EFalse)

Sets the shadow mode on or off.

Parameters

TBool aShadowMode = EFalseETrue, shadow mode is on; EFalse, shadow mode is off. EFalse is the default.

SetStrikethroughStyle(TFontStrikethrough)

IMPORT_C voidSetStrikethroughStyle(TFontStrikethroughaStrikethroughStyle)[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.

Parameters

TFontStrikethrough aStrikethroughStyle

SetUnderlineStyle(TFontUnderline)

IMPORT_C voidSetUnderlineStyle(TFontUnderlineaUnderlineStyle)[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.

Parameters

TFontUnderline aUnderlineStyle

SetUserDisplayMode(TDisplayMode)

IMPORT_C voidSetUserDisplayMode(TDisplayModeaDisplayMode)

Simulates another graphics mode. Some devices running in some modes can simulate other modes (EGray16 will do EGray4 and EGray2, EGray4 will do EGray2).

Parameters

TDisplayMode aDisplayModeThe display mode to be set.

SetWordJustification(TInt, TInt)

IMPORT_C voidSetWordJustification(TIntaExcessWidth,
TIntaNumChars
)[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.

Parameters

TInt aExcessWidth
TInt aNumChars

SetupDevice()

voidSetupDevice()const [private]

ShadowArea(const TRegion *)

IMPORT_C voidShadowArea(const TRegion *aRegion)

Sets the shadow area.

Parameters

const TRegion * aRegionThe region defining the shadow area.

ShadowFadeArea(const TRegion *, TInt8)

voidShadowFadeArea(const TRegion *aRegion,
TInt8aShadowMode
)[private]

Parameters

const TRegion * aRegion
TInt8 aShadowMode

UpdateJustification(const TDesC &)

IMPORT_C voidUpdateJustification(const TDesC &aText)

Updates the justification settings. This function assumes that ActivateNoJustAutoUpdate() has been used.

Parameters

const TDesC & aTextThe text for which justification is to be adjusted.

UpdateJustification(const TDesC &, const TTextParameters *)

IMPORT_C voidUpdateJustification(const TDesC &aText,
const TTextParameters *aParam
)

Updates the justification settings. This function assumes that ActivateNoJustAutoUpdate() has been used.

Parameters

const TDesC & aTextThe text for which justification is to be adjusted.
const TTextParameters * aParam

UpdateJustificationVertical(const TDesC &, TBool)

IMPORT_C voidUpdateJustificationVertical(const TDesC &aText,
TBoolaUp
)

Updates the justification for vertical text.

Parameters

const TDesC & aTextThe text for which justification is to be adjusted.
TBool aUpETrue, if text is to be justified upwards;EFalse, if text is to be justified downwards.

UpdateJustificationVertical(const TDesC &, const TTextParameters *, TBool)

IMPORT_C voidUpdateJustificationVertical(const TDesC &aText,
const TTextParameters *aParam,
TBoolaUp
)

Updates the justification for vertical text.

Parameters

const TDesC & aTextThe text for which justification is to be adjusted.
const TTextParameters * aParam
TBool aUpETrue, if text is to be justified upwards;EFalse, if text is to be justified downwards.

UseBrushPattern(const CFbsBitmap *)

IMPORT_C voidUseBrushPattern(const CFbsBitmap *aBitmap)[virtual]

Sets the specified bitmap to be used as the brush pattern.

Parameters

const CFbsBitmap * aBitmapThe bitmap.

UseBrushPattern(TInt)

IMPORT_C TIntUseBrushPattern(TIntaFbsBitmapHandle)

Sets the specified bitmap to be used as the brush pattern.

Parameters

TInt aFbsBitmapHandleThe handle number of the bitmap.

UseFont(const CFont *)

IMPORT_C voidUseFont(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

Parameters

const CFont * aFont

UseFont(TInt)

IMPORT_C TIntUseFont(TIntaFontHandle)

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.

Parameters

TInt aFontHandleA handle for a device font.

UseFontNoDuplicate(const CFbsBitGcFont *)

IMPORT_C voidUseFontNoDuplicate(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.

Parameters

const CFbsBitGcFont * aFontA pointer to the font to be used.

UserClipRect(TRect &)

TBool UserClipRect(TRect &aRect)[private]

Parameters

TRect & aRect

Member Enumerations Documentation

Enum TGraphicsOrientation

Defines possible rotation values.

Enumerators

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.

Member Data Documentation

TInt8 iAutoUpdateJustification

TInt8 iAutoUpdateJustification[private]

CFbsBitGcBitmap iBrushBitmap

CFbsBitGcBitmap iBrushBitmap[private]

TRgb iBrushColor

TRgb iBrushColor[private]

TPoint iBrushOrigin

TPoint iBrushOrigin[private]

TBrushStyle iBrushStyle

TBrushStyle iBrushStyle[private]

TBool iBrushUsed

TBool iBrushUsed[private]

TInt iCharJustExcess

TInt iCharJustExcess[private]

TInt iCharJustNum

TInt iCharJustNum[private]

TRect iClipRect

TRect iClipRect[private]

RRegion iClippingRegion

RRegion iClippingRegion[private]

TRegionFix< 1 > iDefaultRegion

TRegionFix< 1 >iDefaultRegion[private]

const TRegion * iDefaultRegionPtr

const TRegion *iDefaultRegionPtr[private]

CFbsDevice * iDevice

CFbsDevice *iDevice[private]

TPoint iDitherOrigin

TPoint iDitherOrigin[private]

TInt iDotDirection

TInt iDotDirection[private]

TInt iDotLength

TInt iDotLength[private]

TInt iDotMask

TInt iDotMask[private]

TInt iDotParam

TInt iDotParam[private]

TDrawMode iDrawMode

TDrawMode iDrawMode[private]

TRect iDrawnTo

TRect iDrawnTo[private]

TUint8 iFadeBlackMap

TUint8 iFadeBlackMap[private]

TUint8 iFadeWhiteMap

TUint8 iFadeWhiteMap[private]

CFbsBitGcExtraData * iFbsBitGcExtraData

CFbsBitGcExtraData *iFbsBitGcExtraData[private]

CFbsBitGcFont iFont

CFbsBitGcFont iFont[private]

TPoint iLastPrintPosition

TPoint iLastPrintPosition[private]

TPoint iLinePosition

TPoint iLinePosition[private]

TPoint iOrigin

TPoint iOrigin[private]

TRgb iPenColor

TRgb iPenColor[private]

TSize iPenSize

TSize iPenSize[private]

TPenStyle iPenStyle

TPenStyle iPenStyle[private]

TInt8 iShadowMode

TInt8 iShadowMode[private]

TFontStrikethrough iStrikethrough

TFontStrikethrough iStrikethrough[private]

TFontUnderline iUnderline

TFontUnderline iUnderline[private]

TRect iUserClipRect

TRect iUserClipRect[private]

TDisplayMode iUserDisplayMode

TDisplayMode iUserDisplayMode[private]

TInt iWordJustExcess

TInt iWordJustExcess[private]

TInt iWordJustNum

TInt iWordJustNum[private]