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 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 *)
Private Member Functions
CFbsBitGc ()
TInt APIExGetShadowColor ( TAny *&)
void APIExGetUnderlineMetrics ( TAny *&)
TInt APIExIsFbsBitGc ( TAny *&)
TInt APIExSetShadowColor ( TAny *)
void AddRect (const TRect &)
TBool AnalyseEllipse (const TRect &, TPoint &, TPoint &, TInt &, TInt &, TBool *)
TInt BaselineCorrection ()
void BitMultiply ( TUint32 *, TInt , TInt )
void CheckDevice ()
TBool CheckDevice (const TRect &)
TUint32 * ClipBinaryArray ( TUint32 *, TUint32 *, TInt , TInt &, TInt &, TPoint &)
void ClipFillLine ( TPoint , TPoint )
void CopyCharLine ( TUint32 *, TInt , const TUint8 *, TInt , TInt )
void CopyCharWord ( TUint32 *, const TUint8 *, TInt )
void DoBitBlt (const TPoint &, CFbsDevice *, const TRect &)
void DoBitBlt (const TPoint &, CBitwiseBitmap *, TUint32 *, TInt , const TRect &)
void DoBitBltAlpha (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, const TPoint &, TInt , TBool )
void DoBitBltAlpha (const TPoint &, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const CBitwiseBitmap *, TUint32 *, const TRect &, const TPoint &, const TPoint &, TInt )
void DoBitBltMasked (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &, TInt )
void DoBitBltMaskedFlicker (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &, TInt )
void DoBitBltMaskedNonFlicker (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &, TInt )
void DoBitBltMaskedNonFlickerPatterned (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &, TInt )
void DoBitBltMaskedNonFlickerSolid (const TPoint &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &, TInt )
void DoCopyRect (const TPoint &, const TRect &)
void DoDrawBitmap (const TRect &, CBitwiseBitmap *, TUint32 *, TInt , const TRect &, const TPoint &)
void DoDrawBitmapMasked (const TRect &, CBitwiseBitmap *, TUint32 *, const TRect &, CBitwiseBitmap *, TUint32 *, TBool , const TPoint &)
void DoDrawCharacter (const TPoint &, const TSize &, const TUint8 *)
void DoDrawCharacterAntiAliased (const TPoint &, const TSize &, const TUint8 *, const TGlyphBitmapType )
void DoDrawCharacterEx (const TPoint &, const TSize &, const TUint8 *, TBool , TBool , TInt )
void DoDrawCharacterExLarge (const TPoint &, const TSize &, const TUint8 *, TBool , TBool , TInt , TInt , TInt )
void DoDrawCharacterLarge (const TPoint &, const TSize &, const TUint8 *, TBool , TBool , TInt , TInt , TInt )
void DoDrawCharacterMultiplied (const TPoint &, const TSize &, const TUint8 *, TBool , TBool , TInt , TInt , TInt )
void DoDrawCharacterVertical (const TPoint &, const TSize &, const TUint8 *, TBool , TBool , TInt , TInt , TInt , TBool )
void DoDrawCharacterVerticalAntiAliased (const TPoint &, const TSize &, const TUint8 *, TBool , TGlyphBitmapType )
void DoDrawDottedWideLine (const TPoint &, const TPoint &, TBool , const TRect &)
void DoDrawLine ( TPoint , TPoint , TBool )
void DoDrawSolidWideLine (const TPoint &, const TPoint &, TBool , const TRect &)
void DoDrawText ( CFont::TPositionParam &, const TInt )
void DoDrawTextEx ( CFont::TPositionParam &, const CBitmapFont *, const TInt , const TInt )
void DoDrawTextLarge ( CFont::TPositionParam &, const CBitmapFont *, const TInt )
void DoDrawTextVertical ( CFont::TPositionParam &, const CBitmapFont *, TBool , const TInt )
void DoPlot (const TPoint &)
void DrawText (const TDesC &, const TTextParameters *, const TPoint &, TTextAlign , CFont::TTextDirection , const TRect *)
void EllipseFill (const TRect &)
void EllipseOutline (const TRect &)
void EllipseOutlineWide (const TRect &)
TInt FastBlendInterface (const CBitwiseBitmap *, const CBitwiseBitmap *, MFastBlend *&)
TUint32 * GetScanLineOffsetPtr ( CBitwiseBitmap *, TUint32 *&, TInt , TPoint , TUint32 *, TLineScanningPosition &, TUint )
void GetStrikethroughMetrics ( TInt &, TInt &)
CGraphicsAccelerator * GraphicsAccelerator ()
TUint MemoryOffsetForPixelPitch ( TUint , TDisplayMode )
void OutputCharLine ( TPoint , TUint32 *, TInt , TInt , TBool , TInt , TInt )
void OutputCharLineMultiplied ( TPoint , TUint32 *, TInt , TInt , TBool , TInt , TInt )
void OutputCharLineVertical ( TPoint , TUint32 *, TInt , TInt , TBool , TInt , TInt , TBool )
void PenAllocate ()
void PenDrawClipped ( TPoint )
void PenDrawDeferred ( TPoint , TInt *, TInt )
void PieArcOutline (const TRect &, const TPoint &, const TPoint &, TBool )
void PieFill (const TRect &, const TPoint &, const TPoint &, TInt , TInt , const TBool *)
void PieShell (const TRect &, const TPoint &, const TPoint &, const TBool *, TInt , TInt )
void PieSliver (const TRect &, const TPoint &, const TPoint &, TInt )
void PieTriangles ( TBool , const TPoint &, const TPoint &)
void PolyFill (const CArrayFix < TPoint > *, TFillRule )
void PolyFill (const TPoint *, TInt , TFillRule )
void PolyFillLarge (const CArrayFix < TPoint > *, TFillRule )
void PolyFillLarge (const TPoint *, TInt , TFillRule )
void PolyOutline (const CArrayFix < TPoint > *)
void PolyOutline (const TPoint *, TInt )
CFbsRasterizer * PrepareRasterizerForExtendedBitmap (const CFbsBitmap &)
CFbsRasterizer * PrepareRasterizerForExtendedBitmap (const CFbsBitmap &, const TRect &, const TPoint &)
CFbsRasterizer * PrepareRasterizerForExtendedBitmap (const CFbsBitmap &, const TRect &, const TRect &)
void RectFill (const TRect &)
IMPORT_C void Reserved_CBitmapContext_1 ()
IMPORT_C void Reserved_CBitmapContext_2 ()
IMPORT_C void Reserved_CBitmapContext_3 ()
IMPORT_C void Reserved_CFbsBitGc_1 ()
IMPORT_C void Reserved_CFbsBitGc_2 ()
IMPORT_C void Reserved_CFbsBitGc_3 ()
IMPORT_C void Reserved_CFbsBitGc_4 ()
IMPORT_C void Reserved_CFbsBitGc_5 ()
IMPORT_C void Reserved_CGraphicsContext_2 ()
void RoundRectFill (const TRect &, TSize )
void RoundRectOutline (const TRect &, TSize )
TDisplayMode ScanLineBufferDisplayMode ( CFbsDrawDevice *)
void SetupDevice ()
void ShadowFadeArea (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
enum TGraphicsOrientation { 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 *&)

void APIExGetUnderlineMetrics ( 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 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

Parameters

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.

Activate(CFbsDevice *)

IMPORT_C void Activate ( CFbsDevice * aDevice )

Sets the object to draw to a particular device

Parameters

CFbsDevice * aDevice The target device.

ActivateNoJustAutoUpdate(CFbsDevice *)

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

Parameters

CFbsDevice * aDevice The target device.

AddRect(const TRect &)

void AddRect ( 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 TInt AlphaBlendBitmaps ( 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 & 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.

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

IMPORT_C TInt AlphaBlendBitmaps ( 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 & 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).

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

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.

Parameters

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.

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 & 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

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 void BitBlt ( const TPoint & aPoint,
const CFbsBitGc & aGc
)

Draws from another CFbsBitGc .

Parameters

const TPoint & aPoint The position to draw the top left corner of the piece of bitmap
const CFbsBitGc & aGc The source bitmap graphics context

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

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

Draws a particular rectangle from another CFbsBitGc .

Parameters

const TPoint & aPoint The position to draw the top left corner of the piece of bitmap.
const CFbsBitGc & aGc The source bitmap graphics context.
const TRect & aSourceRect A rectangle defining the piece of the source to be drawn.

BitBlt(const TPoint &, const CFbsBitmap *)

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

Draws the whole of a CFbsBitmap .

Parameters

const TPoint & aPoint The position to draw the top left corner of the bitmap.
const CFbsBitmap * aBitmap The source bitmap.

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

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

Draws a particular rectangle from a CFbsBitmap .

Parameters

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.

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

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.

CBitmapContext::BitBltMasked()

Parameters

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

BitMultiply(TUint32 *, TInt, TInt)

void BitMultiply ( TUint32 * aBinaryDataPtr,
TInt aBitLength,
TInt aMultiplier
) [private]

Parameters

TUint32 * aBinaryDataPtr
TInt aBitLength
TInt aMultiplier

BrushColor()

IMPORT_C TRgb BrushColor ( )

Returns current setting of brush color.

CancelClipping()

IMPORT_C void CancelClipping ( )

Cancels clipping rectangle and region.

CancelClippingRect()

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

CancelClippingRegion()

IMPORT_C void CancelClippingRegion ( ) [virtual]

Cancels the clipping region.

ChangeDevice(CFbsDevice *)

IMPORT_C void ChangeDevice ( CFbsDevice * aDevice )

Replace target device but keep the current state

Parameters

CFbsDevice * aDevice The target device

CheckDevice()

void CheckDevice ( ) const [private]

CheckDevice(const TRect &)

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

Parameters

const TRect & aRect

Clear()

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.

CBitmapContext::Clear()

Clear(const TRect &)

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.

Parameters

const TRect & aRect

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

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

Parameters

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

ClipFillLine(TPoint, TPoint)

void ClipFillLine ( TPoint ,
TPoint
) [private]

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

void CopyCharLine ( TUint32 * aBinaryDataPtr,
TInt aBufferWords,
const TUint8 * aData,
TInt aBitShift,
TInt aCharWidth
) [private]

Parameters

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

CopyCharWord(TUint32 *, const TUint8 *, TInt)

void CopyCharWord ( TUint32 * aBinaryDataPtr,
const TUint8 * aData,
TInt aBitShift
) [private]

Parameters

TUint32 * aBinaryDataPtr
const TUint8 * aData
TInt aBitShift

CopyRect(const TPoint &, const TRect &)

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.

Parameters

const TPoint & aOffset
const TRect & aRect

CopySettings(const CFbsBitGc &)

IMPORT_C void CopySettings ( const CFbsBitGc & aGc )

Copies all settings from the specified bitmap graphics context.

Parameters

const CFbsBitGc & aGc The 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 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()

DiscardFont()

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

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

void DoBitBlt ( 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 &)

void DoBitBlt ( const TPoint & aDest,
CBitwiseBitmap * aBitmap,
TUint32 * aBase,
TInt aStride,
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)

void DoBitBltAlpha ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
const TPoint & aAlphaPoint,
TInt aShadowMode,
TBool aInvertMask
) [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)

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 .

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)

void DoBitBltMasked ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
TBool aInvertMask,
const TPoint & aDitherOrigin,
TInt aShadowMode
) [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)

void DoBitBltMaskedFlicker ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
TBool aInvertMask,
const TPoint & aDitherOrigin,
TInt aShadowMode
) [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)

void DoBitBltMaskedNonFlicker ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
TBool aInvertMask,
const TPoint & aDitherOrigin,
TInt aShadowMode
) [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)

void DoBitBltMaskedNonFlickerPatterned ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
TBool aInvertMask,
const TPoint & aDitherOrigin,
TInt aShadowMode
) [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)

void DoBitBltMaskedNonFlickerSolid ( const TPoint & aDest,
CBitwiseBitmap * aSourceBitmap,
TUint32 * aSourceBase,
const TRect & aSourceRect,
CBitwiseBitmap * aMaskBitmap,
TUint32 * aMaskBase,
TBool aInvertMask,
const TPoint & aDitherOrigin,
TInt aShadowMode
) [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 &)

void DoCopyRect ( const TPoint & ,
const TRect &
) [private]

Parameters

const TPoint &
const TRect &

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

void DoDrawBitmap ( const TRect & ,
CBitwiseBitmap * ,
TUint32 * aBase,
TInt aStride,
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 &)

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.

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

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

void DoDrawCharacterAntiAliased ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
const TGlyphBitmapType aGlyphType
) [private]

This function draws an anti-aliased character.

Parameters

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

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

void DoDrawCharacterEx ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aBold,
TBool aItalic,
TInt aSemiAscent
) [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)

void DoDrawCharacterExLarge ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aBold,
TBool aItalic,
TInt aSemiAscent,
TInt aWidthFactor,
TInt aHeightFactor
) [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)

void DoDrawCharacterLarge ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aBold,
TBool aItalic,
TInt aSemiAscent,
TInt aWidthFactor,
TInt aHeightFactor
) [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)

void DoDrawCharacterMultiplied ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aBold,
TBool aItalic,
TInt aSemiAscent,
TInt aWidthMultiplier,
TInt aHeightMultiplier
) [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)

void DoDrawCharacterVertical ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aBold,
TBool aItalic,
TInt aSemiAscent,
TInt aWidthFactor,
TInt aHeightFactor,
TBool aUp
) [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)

void DoDrawCharacterVerticalAntiAliased ( const TPoint & aTopLeft,
const TSize & aDataSize,
const TUint8 * aData,
TBool aUp,
TGlyphBitmapType aGlyphBitmapType
) [private]

This function draws an anti-aliased character.

Parameters

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

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

void DoDrawDottedWideLine ( const TPoint & pt1,
const TPoint & pt2,
TBool drawstart,
const TRect & screenrect
) [private]

Parameters

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

DoDrawLine(TPoint, TPoint, TBool)

void DoDrawLine ( TPoint aStart,
TPoint aEnd,
TBool aDrawStartPoint
) [private]

Parameters

TPoint aStart
TPoint aEnd
TBool aDrawStartPoint

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

void DoDrawSolidWideLine ( const TPoint & pt1,
const TPoint & pt2,
TBool drawstart,
const TRect & screenrect
) [private]

Parameters

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

DoDrawText(CFont::TPositionParam &, const TInt)

void DoDrawText ( CFont::TPositionParam & aParam,
const TInt aEnd
) [private]

Parameters

CFont::TPositionParam & aParam
const TInt aEnd

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

void DoDrawTextEx ( CFont::TPositionParam & aParam,
const CBitmapFont * font,
const TInt aEnd,
const TInt aUnderlineStrikethroughOffset
) [private]

Parameters

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

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

void DoDrawTextLarge ( CFont::TPositionParam & aParam,
const CBitmapFont * font,
const TInt aEnd
) [private]

Parameters

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

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

void DoDrawTextVertical ( CFont::TPositionParam & aParam,
const CBitmapFont * font,
TBool aUp,
const TInt aEnd
) [private]

Parameters

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

DoPlot(const TPoint &)

void DoPlot ( const TPoint & pt ) [private]

Parameters

const TPoint & pt

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

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.

Parameters

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

DrawBitmap(const TPoint &, const CFbsBitmap *)

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.

Parameters

const TPoint & aTopLeft
const CFbsBitmap * aSource

DrawBitmap(const TRect &, const CFbsBitmap *)

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.

TLinearDDA

Parameters

const TRect & aDestRect The rectangle within which the bitmap is to be drawn.
const CFbsBitmap * aSource A source bitmap.

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

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.

TLinearDDA

Parameters

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.

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

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.

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 & 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.

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

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.

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 & 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.

DrawEllipse(const TRect &)

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.

Parameters

const TRect & aRect

DrawLine(const TPoint &, const TPoint &)

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.

Parameters

const TPoint & aStart
const TPoint & aEnd

DrawLineBy(const TPoint &)

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.

Parameters

const TPoint & aVector

DrawLineTo(const TPoint &)

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.

Parameters

const TPoint & aPoint

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

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.

Parameters

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

DrawPolyLine(const CArrayFix< TPoint > *)

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.

Parameters

const CArrayFix < TPoint > * aPointList

DrawPolyLine(const TPoint *, TInt)

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.

Parameters

const TPoint * aPointList
TInt aNumPoints

DrawPolyLineNoEndPoint(const CArrayFix< TPoint > *)

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.

Parameters

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

DrawPolyLineNoEndPoint(const TPoint *, TInt)

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.

Parameters

const TPoint * aPointList Pointer to a set of points on the polyline.
TInt aNumPoints Number of points in the list.

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

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.

Parameters

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

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

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.

Parameters

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

DrawRect(const TRect &)

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.

Parameters

const TRect & aRect

DrawRoundRect(const TRect &, const TSize &)

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.

Parameters

const TRect & aRect
const TSize & aEllipse

DrawText(const TDesC &)

IMPORT_C void DrawText ( const TDesC & aText )

Draws text at the last print position.

Parameters

const TDesC & aText The text string to be drawn.

DrawText(const TDesC &, const TPoint &)

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

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

Parameters

const TDesC & aText The text string to be drawn
const TPoint & aPosition Coordinates to draw the text at.

DrawText(const TDesC &, const TRect &)

IMPORT_C void DrawText ( const TDesC & aText,
const TRect & aBox
)

Draws text clipped to the specified rectangle.

Parameters

const TDesC & aText The text string to be drawn
const TRect & aBox The clipping rectangle.

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

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.

Parameters

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.

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

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.

Parameters

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

DrawText(const TDesC &, const TTextParameters *)

IMPORT_C void DrawText ( const TDesC & aText,
const TTextParameters * aParam
)

Parameters

const TDesC & aText
const TTextParameters * aParam

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

IMPORT_C void DrawText ( 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 void DrawText ( 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 void DrawText ( const TDesC & aText,
const TTextParameters * aParam,
const TRect & aBox,
TInt aBaselineOffset,
TTextAlign aHrz = ELeft,
TInt aMargin = 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 void DrawText ( const TDesC & aText,
const TTextParameters * aParam,
const TRect & aBox,
TInt aBaselineOffset,
TInt aTextWidth,
TTextAlign aHrz = ELeft,
TInt aMargin = 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 *)

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.

Parameters

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

DrawTextVertical(const TDesC &, TBool)

IMPORT_C void DrawTextVertical ( const TDesC & aText,
TBool aUp
)

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

Parameters

const TDesC & aText The text string to be drawn.
TBool aUp ETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.

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

IMPORT_C void DrawTextVertical ( const TDesC & aText,
const TPoint & aPosition,
TBool aUp
) [virtual]

Draws text vertically from the specified position.

Parameters

const TDesC & aText The text string to be drawn.
const TPoint & aPosition A point specifying the position of the left end of the text.
TBool aUp ETrue, text is rotated 90 degrees anti-clockwise; EFalse, text is rotated 90 degrees clockwise.

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

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.

Parameters

const TDesC & aText The text string to be drawn
const TRect & aBox The clipping rectangle.
TBool aUp ETrue, 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 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.

Parameters

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.

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

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.

Parameters

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.

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

IMPORT_C void DrawTextVertical ( const TDesC & aText,
const TTextParameters * aParam,
TBool aUp
)

Parameters

const TDesC & aText
const TTextParameters * aParam
TBool aUp

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

IMPORT_C void DrawTextVertical ( const TDesC & aText,
const TTextParameters * aParam,
const TPoint & aPosition,
TBool aUp
)

Parameters

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

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

IMPORT_C void DrawTextVertical ( const TDesC & aText,
const TTextParameters * aParam,
const TRect & aBox,
TBool aUp
)

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 void DrawTextVertical ( const TDesC & aText,
const TTextParameters * aParam,
const TRect & aBox,
TInt aBaselineOffset,
TBool aUp,
TTextAlign aVert = ELeft,
TInt aMargin = 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 void DrawTextVertical ( const TDesC & aText,
const TTextParameters * aParam,
const TRect & aBox,
TInt aBaselineOffset,
TInt aTextWidth,
TBool aUp,
TTextAlign aVert = ELeft,
TInt aMargin = 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 &)

void EllipseFill ( const TRect & aRect ) [private]

Parameters

const TRect & aRect

EllipseOutline(const TRect &)

void EllipseOutline ( const TRect & aRect ) [private]

Parameters

const TRect & aRect

EllipseOutlineWide(const TRect &)

void EllipseOutlineWide ( const TRect & aRect ) [private]

Parameters

const TRect & aRect

ExternalizeL(RWriteStream &)

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.

Parameters

RWriteStream & aWriteStream Stream to which the object should be externalized.

FadeArea(const TRegion *)

IMPORT_C void FadeArea ( const TRegion * aRegion )

Sets the fade area.

Parameters

const TRegion * aRegion The 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,
TInt aLength,
TPoint aPixel,
TUint32 * aBase,
TLineScanningPosition & aLineScanningPosition,
TUint aXOffset
) [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 &)

void GetStrikethroughMetrics ( 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 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.

Parameters

RReadStream & aReadStream Stream from which the object is to be internalized.

IsBrushPatternUsed()

IMPORT_C TBool IsBrushPatternUsed ( ) const

Tests whether a brush pattern is being used.

IsFontUsed()

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

Parameters

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.

MemoryOffsetForPixelPitch(TUint, TDisplayMode)

TUint MemoryOffsetForPixelPitch ( TUint aX,
TDisplayMode aDisplayMode
) [private]

Calculates the position into the scanline for the given x coordinate

Parameters

TUint aX
TDisplayMode aDisplayMode

MoveBy(const TPoint &)

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.

Parameters

const TPoint & aVector

MoveTo(const TPoint &)

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.

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 void OrientationsAvailable ( TBool aOrientation )

Gets the orientations supported.

Parameters

TBool aOrientation

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

void OutputCharLine ( TPoint aPrintPos,
TUint32 * aBuffer,
TInt aDataLength,
TInt aNum,
TBool aBold,
TInt aWidthFactor,
TInt aHeightFactor
) [private]

Parameters

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

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

void OutputCharLineMultiplied ( TPoint aPrintPos,
TUint32 * aBuffer,
TInt aDataLength,
TInt aNum,
TBool aBold,
TInt aWidthMultiplier,
TInt aHeightMultiplier
) [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)

void OutputCharLineVertical ( TPoint aPrintPos,
TUint32 * aBuffer,
TInt aDataLength,
TInt aNum,
TBool aBold,
TInt aWidthFactor,
TInt aHeightFactor,
TBool aUp
) [private]

Parameters

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

PenAllocate()

void PenAllocate ( ) [private]

PenColor()

IMPORT_C TRgb PenColor ( )

Returns current setting of pen color.

PenDrawClipped(TPoint)

void PenDrawClipped ( TPoint aPoint ) [private]

Parameters

TPoint aPoint

PenDrawDeferred(TPoint, TInt *, TInt)

void PenDrawDeferred ( TPoint aPoint,
TInt * aArray,
TInt aFirstElement
) [private]

Parameters

TPoint aPoint
TInt * aArray
TInt aFirstElement

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

void PieArcOutline ( const TRect & aRect,
const TPoint & aStartRadius,
const TPoint & aEndRadius,
TBool aDoPie
) [private]

Parameters

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

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

void PieFill ( const TRect & ellrect,
const TPoint & aStartIntersect,
const TPoint & aEndIntersect,
TInt aStartQuadrant,
TInt aEndQuadrant,
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)

void PieShell ( const TRect & ellrect,
const TPoint & startradius,
const TPoint & endradius,
const TBool * quads,
TInt startquad,
TInt endquad
) [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)

void PieSliver ( const TRect & ellrect,
const TPoint & startradius,
const TPoint & endradius,
TInt quad
) [private]

Parameters

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

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

void PieTriangles ( TBool aInside,
const TPoint & aStart,
const TPoint & aEnd
) [private]

Parameters

TBool aInside
const TPoint & aStart
const TPoint & aEnd

Plot(const TPoint &)

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.

Parameters

const TPoint & aPoint

PolyFill(const CArrayFix< TPoint > *, TFillRule)

void PolyFill ( const CArrayFix < TPoint > * aPointList,
TFillRule aFillRule
) [private]

Parameters

const CArrayFix < TPoint > * aPointList
TFillRule aFillRule

PolyFill(const TPoint *, TInt, TFillRule)

void PolyFill ( const TPoint * aPointList,
TInt aNumPoints,
TFillRule aFillRule
) [private]

Parameters

const TPoint * aPointList
TInt aNumPoints
TFillRule aFillRule

PolyFillLarge(const CArrayFix< TPoint > *, TFillRule)

void PolyFillLarge ( const CArrayFix < TPoint > * aPointList,
TFillRule aFillRule
) [private]

Parameters

const CArrayFix < TPoint > * aPointList
TFillRule aFillRule

PolyFillLarge(const TPoint *, TInt, TFillRule)

void PolyFillLarge ( const TPoint * aPointList,
TInt aNumPoints,
TFillRule aFillRule
) [private]

Parameters

const TPoint * aPointList
TInt aNumPoints
TFillRule aFillRule

PolyOutline(const CArrayFix< TPoint > *)

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

Parameters

const CArrayFix < TPoint > * aPointList

PolyOutline(const TPoint *, TInt)

void PolyOutline ( const TPoint * aPointList,
TInt aNumPoints
) [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 & aBitmap The 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 & 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.

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 & 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.

RectDrawnTo(TRect &)

IMPORT_C void RectDrawnTo ( TRect & aRect )

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

Parameters

TRect & aRect The bounding rectangle.

RectFill(const TRect &)

void RectFill ( const TRect & aRect ) [private]

Parameters

const TRect & aRect

Reserved_CBitmapContext_1()

IMPORT_C void Reserved_CBitmapContext_1 ( ) [private, virtual]

Reserved_CBitmapContext_2()

IMPORT_C void Reserved_CBitmapContext_2 ( ) [private, virtual]

Reserved_CBitmapContext_3()

IMPORT_C void Reserved_CBitmapContext_3 ( ) [private, virtual]

Reserved_CFbsBitGc_1()

IMPORT_C void Reserved_CFbsBitGc_1 ( ) [private, virtual]

Reserved_CFbsBitGc_2()

IMPORT_C void Reserved_CFbsBitGc_2 ( ) [private, virtual]

Reserved_CFbsBitGc_3()

IMPORT_C void Reserved_CFbsBitGc_3 ( ) [private, virtual]

Reserved_CFbsBitGc_4()

IMPORT_C void Reserved_CFbsBitGc_4 ( ) [private, virtual]

Reserved_CFbsBitGc_5()

IMPORT_C void Reserved_CFbsBitGc_5 ( ) [private, virtual]

Reserved_CGraphicsContext_2()

IMPORT_C void Reserved_CGraphicsContext_2 ( ) [private, virtual]

A reserved virtual function for future use.

Reset()

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

Resized()

IMPORT_C void Resized ( )

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

RoundRectFill(const TRect &, TSize)

void RoundRectFill ( const TRect & aRect,
TSize aSize
) [private]

Parameters

const TRect & aRect
TSize aSize

RoundRectOutline(const TRect &, TSize)

void RoundRectOutline ( const TRect & aRect,
TSize aSize
) [private]

Parameters

const TRect & aRect
TSize aSize

ScanLineBufferDisplayMode(CFbsDrawDevice *)

TDisplayMode ScanLineBufferDisplayMode ( CFbsDrawDevice * aDrawDevice ) [private]

Parameters

CFbsDrawDevice * aDrawDevice

SetBrushColor(const TRgb &)

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.

Parameters

const TRgb & aColor

SetBrushOrigin(const TPoint &)

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.

Parameters

const TPoint & aOrigin

SetBrushStyle(TBrushStyle)

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.

Parameters

TBrushStyle aBrushStyle

SetCharJustification(TInt, TInt)

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.

Parameters

TInt aExcessWidth
TInt aNumGaps

SetClippingRect(const TRect &)

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

Parameters

const TRect & aRect

SetClippingRegion(const TRegion *)

IMPORT_C void SetClippingRegion ( 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 TInt SetClippingRegion ( const TRegion & aRegion ) [virtual]

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

Parameters

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

SetDitherOrigin(const TPoint &)

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.

Parameters

const TPoint & aPoint The dither origin.

SetDrawMode(TDrawMode)

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

Parameters

TDrawMode

SetFadeMode(TBool)

void SetFadeMode ( TBool aFadeMode = EFalse ) [inline]

Parameters

TBool aFadeMode = EFalse

SetFaded(TBool)

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.

Parameters

TBool aFaded

SetFadingParameters(TUint8)

void SetFadingParameters ( TUint8 aBlackMap = 0 ) [inline]

Parameters

TUint8 aBlackMap = 0

SetFadingParameters(TUint8, TUint8)

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.

Parameters

TUint8 aBlackMap
TUint8 aWhiteMap

SetOrientation(TGraphicsOrientation)

IMPORT_C TBool SetOrientation ( TGraphicsOrientation aOrientation )

Sets the orientation.

Parameters

TGraphicsOrientation aOrientation The required orientation

SetOrigin(const TPoint &)

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.

Parameters

const TPoint & aPoint =  TPoint (0, 0)

SetPenColor(const TRgb &)

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.

Parameters

const TRgb & aColor

SetPenSize(const TSize &)

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.

Parameters

const TSize & aSize

SetPenStyle(TPenStyle)

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

Parameters

TPenStyle

SetShadowMode(TBool)

IMPORT_C void SetShadowMode ( TBool aShadowMode = EFalse )

Sets the shadow mode on or off.

Parameters

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

SetStrikethroughStyle(TFontStrikethrough)

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.

Parameters

TFontStrikethrough aStrikethroughStyle

SetUnderlineStyle(TFontUnderline)

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.

Parameters

TFontUnderline aUnderlineStyle

SetUserDisplayMode(TDisplayMode)

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

Parameters

TDisplayMode aDisplayMode The display mode to be set.

SetWordJustification(TInt, TInt)

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.

Parameters

TInt aExcessWidth
TInt aNumChars

SetupDevice()

void SetupDevice ( ) const [private]

ShadowArea(const TRegion *)

IMPORT_C void ShadowArea ( const TRegion * aRegion )

Sets the shadow area.

Parameters

const TRegion * aRegion The region defining the shadow area.

ShadowFadeArea(const TRegion *, TInt8)

void ShadowFadeArea ( const TRegion * aRegion,
TInt8 aShadowMode
) [private]

Parameters

const TRegion * aRegion
TInt8 aShadowMode

UpdateJustification(const TDesC &)

IMPORT_C void UpdateJustification ( const TDesC & aText )

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

Parameters

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

UpdateJustification(const TDesC &, const TTextParameters *)

IMPORT_C void UpdateJustification ( const TDesC & aText,
const TTextParameters * aParam
)

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

Parameters

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

UpdateJustificationVertical(const TDesC &, TBool)

IMPORT_C void UpdateJustificationVertical ( const TDesC & aText,
TBool aUp
)

Updates the justification for vertical text.

Parameters

const TDesC & aText The text for which justification is to be adjusted.
TBool aUp ETrue, if text is to be justified upwards;EFalse, if text is to be justified downwards.

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

IMPORT_C void UpdateJustificationVertical ( const TDesC & aText,
const TTextParameters * aParam,
TBool aUp
)

Updates the justification for vertical text.

Parameters

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.

UseBrushPattern(const CFbsBitmap *)

IMPORT_C void UseBrushPattern ( const CFbsBitmap * aBitmap ) [virtual]

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

Parameters

const CFbsBitmap * aBitmap The bitmap.

UseBrushPattern(TInt)

IMPORT_C TInt UseBrushPattern ( TInt aFbsBitmapHandle )

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

Parameters

TInt aFbsBitmapHandle The handle number of the bitmap.

UseFont(const CFont *)

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

Parameters

const CFont * aFont

UseFont(TInt)

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.

Parameters

TInt aFontHandle A handle for a device font.

UseFontNoDuplicate(const CFbsBitGcFont *)

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.

Parameters

const CFbsBitGcFont * aFont A 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]