CGfx2dGc Class Reference
class CGfx2dGc : public CBase
|
This class provides the interface create a graphics context.
Public Member Functions
|
void
|
BindToImageL
()
|
void
|
BlendWithBackground
(
TUint32
*,
TReal32
)
|
void
|
ChangeBufferSizeL
(const
TSize
)
|
void
|
Clear
(
TUint32
)
|
TUint32
*
|
ColorBuffer
()
|
void
|
DestroyContext
()
|
TSize
|
DeviceBounds
()
|
void
|
DrawImage
(
CFbsBitmap
*, const
TGfxRectangle2D
&,
TBool
)
|
void
|
DrawL
(
MGfxShape
*)
|
void
|
DrawStringL
(const
TDesC
&,
TFloatFixPt
,
TFloatFixPt
,
TInt8
,
TInt8
,
CDesCArrayFlat
*,
TReal
,
TReal
,
CArrayFix
<
TReal32
> *,
CArrayFix
<
TFloatFixPt
> *,
CArrayFix
<
TFloatFixPt
> *,
TSize
&,
CFont
*&,
TFontSpec
&)
|
void
|
Flush
()
|
CFont
*
|
Font
()
|
TGfxColor
|
ForegroundColor
()
|
void
|
GenerateMask
(
CFbsBitmap
*)
|
void
|
GetFontScaled
(
TFloatFixPt
, const
TDesC
&,
CFont
*&,
TFontSpec
&)
|
MGfxPaint
*
|
Paint
()
|
TGfxRenderingHints
*
|
RenderingHints
()
|
void
|
SetAntialiasingMode
(const
TInt32
)
|
void
|
SetBackgroundColor
(const
TGfxColor
&)
|
void
|
SetClip
(const
TGfxRectangle2D
&)
|
void
|
SetDashArrayL
(
CArrayFix
<
TFloatFixPt
> *)
|
void
|
SetDashOffset
(
TFloatFixPt
)
|
void
|
SetDoDithering
(
TBool
)
|
void
|
SetFillOpacity
(
TFloatFixPt
)
|
void
|
SetFontFamily
(
CDesCArrayFlat
*)
|
void
|
SetFontSize
(const
TFloatFixPt
)
|
void
|
SetFontStyle
(const
TInt32
)
|
void
|
SetFontWeight
(const
TInt32
)
|
void
|
SetForegroundColor
(const
TGfxColor
&)
|
void
|
SetPaint
(
MGfxPaint
*)
|
void
|
SetRenderingHints
(const
TGfxRenderingHints
&)
|
void
|
SetStroke
(
TGfxStroke
)
|
void
|
SetStrokeOpacity
(
TFloatFixPt
)
|
void
|
SetStrokeWidth
(const
TFloatFixPt
&)
|
void
|
SetTextDecoration
(const
TInt32
)
|
void
|
SetTextanchor
(const
TInt32
)
|
void
|
SetTransform
(const
TGfxAffineTransform
&)
|
void
|
SetWindingRule
(
TGfxWindingRule
)
|
void
|
SetupContextL
()
|
TGfxStroke
|
Stroke
()
|
const
TPtrC8
|
TLVEncodedData
()
|
void
|
UnbindFromImageL
(
TReal32
)
|
void
|
UpdateColorBuffer
()
|
void
|
UpdateFramebufferL
(
CFbsBitmap
*,
CFbsBitmap
*)
|
void
|
UpdateFramebufferL
(
CFbsBitmap
*,
CFbsBitmap
*,
TSize
,
TDisplayMode
,
TDisplayMode
)
|
Member Functions Documentation
BindToImageL()
void
|
BindToImageL
|
(
|
)
|
[inline, virtual]
|
BlendWithBackground(TUint32 *, TReal32)
void
|
BlendWithBackground
|
(
|
TUint32
*
|
aFrameBuffer,
|
|
TReal32
|
aOpacity
|
|
)
|
[pure virtual]
|
Blend aFrameBuffer with background buffer using the opacity value
ChangeBufferSizeL(const TSize)
void
|
ChangeBufferSizeL
|
(
|
const
TSize
|
aSize
|
)
|
[pure virtual]
|
Request to change the buffer size.
Parameters
const
TSize
aSize
|
: size of new buffer
|
Clear(TUint32)
void
|
Clear
|
(
|
TUint32
|
aRGBA8888Color
|
)
|
[pure virtual]
|
Clear the whole graphics context.
ColorBuffer()
TUint32
*
|
ColorBuffer
|
(
|
)
|
[inline, virtual]
|
DestroyContext()
void
|
DestroyContext
|
(
|
)
|
[pure virtual]
|
DeviceBounds()
TSize
|
DeviceBounds
|
(
|
)
|
[pure virtual]
|
Get the boundary setting.
DrawImage(CFbsBitmap *, const TGfxRectangle2D &, TBool)
Draw the given bitmap at the given top-left coordinates.
DrawL(MGfxShape *)
void
|
DrawL
|
(
|
MGfxShape
*
|
aShape
|
)
|
[pure virtual]
|
DrawStringL(const TDesC &, TFloatFixPt, TFloatFixPt, TInt8, TInt8, CDesCArrayFlat *, TReal, TReal, CArrayFix< TReal32 > *, CArrayFix< TFloatFixPt > *, CArrayFix< TFloatFixPt > *, TSize &, CFont *&, TFontSpec &)
void
|
DrawStringL
|
(
|
const
TDesC
&
|
aDesc,
|
|
TFloatFixPt
|
aX,
|
|
TFloatFixPt
|
aY,
|
|
TInt8
|
aTextAnchor,
|
|
TInt8
|
aTextDecoration,
|
|
CDesCArrayFlat
*
|
aFamilies,
|
|
TReal
|
aWordSpacing,
|
|
TReal
|
aLetterSpacing,
|
|
CArrayFix
<
TReal32
> *
|
aArrayRotate,
|
|
CArrayFix
<
TFloatFixPt
> *
|
aArrayX,
|
|
CArrayFix
<
TFloatFixPt
> *
|
aArrayY,
|
|
TSize
&
|
aBoundingBoxResult,
|
|
CFont
*&
|
aFont,
|
|
TFontSpec
&
|
aFontSpec
|
|
)
|
[pure virtual]
|
Draw the given string starting at the given context coordinate, and stylized by the given parameters.
Flush()
void
|
Flush
|
(
|
)
|
[inline, virtual]
|
Font()
CFont
*
|
Font
|
(
|
)
|
[pure virtual]
|
ForegroundColor()
Get the foreground color setting.
GenerateMask(CFbsBitmap *)
void
|
GenerateMask
|
(
|
CFbsBitmap
*
|
aMask
|
)
|
[pure virtual]
|
GetFontScaled(TFloatFixPt, const TDesC &, CFont *&, TFontSpec &)
RenderingHints()
Get the rendering hints setting.
SetAntialiasingMode(const TInt32)
void
|
SetAntialiasingMode
|
(
|
const
TInt32
|
aAntialiasingEnable
|
)
|
[pure virtual]
|
Parameters
const
TInt32
aAntialiasingEnable
|
|
SetBackgroundColor(const TGfxColor &)
void
|
SetBackgroundColor
|
(
|
const
TGfxColor
&
|
aColor
|
)
|
[pure virtual]
|
Set the background color.
SetClip(const TGfxRectangle2D &)
SetDashArrayL(CArrayFix< TFloatFixPt > *)
SetDashOffset(TFloatFixPt)
void
|
SetDashOffset
|
(
|
TFloatFixPt
|
aDashOffset
|
)
|
[pure virtual]
|
SetDoDithering(TBool)
void
|
SetDoDithering
|
(
|
TBool
|
aDoDithering
|
)
|
[pure virtual]
|
Set the flag to do or ignore dithering.
Parameters
TBool
aDoDithering
|
: TRUE or False
|
SetFillOpacity(TFloatFixPt)
void
|
SetFillOpacity
|
(
|
TFloatFixPt
|
aFillOpacity
|
)
|
[pure virtual]
|
Set the fill opacity value
Parameters
TFloatFixPt
aFillOpacity
|
: opacity value (0<=aFillOpacity<=1.0)
|
SetFontFamily(CDesCArrayFlat *)
SetFontSize(const TFloatFixPt)
void
|
SetFontSize
|
(
|
const
TFloatFixPt
|
aFontSize
|
)
|
[pure virtual]
|
SetFontStyle(const TInt32)
void
|
SetFontStyle
|
(
|
const
TInt32
|
aFontStyle
|
)
|
[pure virtual]
|
Parameters
const
TInt32
aFontStyle
|
: font style
|
SetFontWeight(const TInt32)
void
|
SetFontWeight
|
(
|
const
TInt32
|
aFontWeight
|
)
|
[pure virtual]
|
Parameters
const
TInt32
aFontWeight
|
: font weight value
|
SetForegroundColor(const TGfxColor &)
void
|
SetForegroundColor
|
(
|
const
TGfxColor
&
|
aColor
|
)
|
[pure virtual]
|
Set the foreground color.
SetPaint(MGfxPaint *)
void
|
SetPaint
|
(
|
MGfxPaint
*
|
aPaint
|
)
|
[pure virtual]
|
SetRenderingHints(const TGfxRenderingHints &)
SetStroke(TGfxStroke)
void
|
SetStroke
|
(
|
TGfxStroke
|
aStroke
|
)
|
[pure virtual]
|
SetStrokeOpacity(TFloatFixPt)
void
|
SetStrokeOpacity
|
(
|
TFloatFixPt
|
aStrokeOpacity
|
)
|
[pure virtual]
|
Set the stroke opacity value
Parameters
TFloatFixPt
aStrokeOpacity
|
: opacity value (0<=aStrokeOpacity<=1.0)
|
SetStrokeWidth(const TFloatFixPt &)
void
|
SetStrokeWidth
|
(
|
const
TFloatFixPt
&
|
aWidth
|
)
|
[pure virtual]
|
SetTextDecoration(const TInt32)
void
|
SetTextDecoration
|
(
|
const
TInt32
|
aTextDecoration
|
)
|
[pure virtual]
|
Parameters
const
TInt32
aTextDecoration
|
: text decoration value
|
SetTextanchor(const TInt32)
void
|
SetTextanchor
|
(
|
const
TInt32
|
aTextAnchor
|
)
|
[pure virtual]
|
Parameters
const
TInt32
aTextAnchor
|
: text anchor value
|
SetTransform(const TGfxAffineTransform &)
SetWindingRule(TGfxWindingRule)
SetupContextL()
void
|
SetupContextL
|
(
|
)
|
[inline, virtual]
|
TLVEncodedData()
const
TPtrC8
|
TLVEncodedData
|
(
|
)
|
const [pure virtual]
|
Get the NVG-TLV Encoded data.
UnbindFromImageL(TReal32)
void
|
UnbindFromImageL
|
(
|
TReal32
|
|
)
|
[inline, virtual]
|
UpdateColorBuffer()
void
|
UpdateColorBuffer
|
(
|
)
|
[inline, virtual]
|
UpdateFramebufferL(CFbsBitmap *, CFbsBitmap *)
This method copies the internal RGBA8888 framebuffer to CfbsBitmap that is specified in constructor. The CfbsBitmap could be 4k color (RGB0444), 64k color (RGB565), or 16M color (RGB888).
UpdateFramebufferL(CFbsBitmap *, CFbsBitmap *, TSize, TDisplayMode, TDisplayMode)
Member Data Documentation
CSvgBitmapFontProvider * iSvgBitmapFontProvider
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.