CGDIDeviceContext Class Reference
class CGDIDeviceContext : public CBase
|
Public Member Functions
|
|
~CGDIDeviceContext
()
|
NW_GDI_Color_t
|
BackgroundColor
()
|
void
|
ChangeFontSize
(
CGDIFont
*)
|
NW_GDI_Rectangle_t
|
ClipRect
()
|
CGDIFont
*
|
CreateFont
(const
NW_Text_t
*,
TGDIFontStyle
,
TUint8
,
TUint16
,
TGDIFontVariant
)
|
const
NW_GDI_Rectangle_t
*
|
DisplayBounds
()
|
TUint8
|
DisplayDepth
()
|
void
|
DrawImage
(const
NW_GDI_Point2D_t
*, const
NW_GDI_Rectangle_t
*,
NW_GDI_ImageBlock_t
*)
|
void
|
DrawLine
(
NW_GDI_Point2D_t
,
NW_GDI_Point2D_t
)
|
void
|
DrawPixel
(const
NW_GDI_Point2D_t
*)
|
TBrowserStatusCode
|
DrawPolyline
(
NW_GDI_Metric_t
, const
NW_GDI_Point2D_t
*,
TBool
)
|
void
|
DrawRectangle
(const
NW_GDI_Rectangle_t
*)
|
TBrowserStatusCode
|
DrawText
(const
NW_GDI_Point2D_t
*, const
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_TextDecoration_t
,
NW_GDI_FlowDirection_t
,
NW_GDI_Metric_t
)
|
NW_GDI_Pattern_t
|
FillPattern
()
|
void
|
FillRectangle
(const
NW_GDI_Rectangle_t
*)
|
CFont
*
|
FindFont
(
TFontSpec
)
|
NW_GDI_Color_t
|
ForegroundColor
()
|
TBrowserStatusCode
|
GetColorPalette
(
NW_GDI_ColorPalette_t
*)
|
TBrowserStatusCode
|
GetFlowDirection
(
NW_Text_t
*,
NW_GDI_FlowDirection_t
*)
|
void
|
GetHighlightColor
(
NW_GDI_Color_t
*)
|
void *
|
GetScaledCFont
(
CGDIFont
*)
|
TBrowserStatusCode
|
GetSubstringExtent
(const
NW_Text_t
*,
CGDIFont
*,
NW_Text_Length_t
,
NW_Text_Length_t
,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_GDI_Dimension2D_t
*)
|
TBrowserStatusCode
|
GetTextExtent
(const
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_GDI_Dimension2D_t
*)
|
NW_GDI_Pattern_t
|
LinePattern
()
|
NW_GDI_Metric_t
|
LineWidth
()
|
CGDIDeviceContext
*
|
NewL
(void *, CView *)
|
const
NW_GDI_Point2D_t
*
|
Origin
()
|
NW_GDI_PaintMode_t
|
PaintMode
()
|
void
|
PostDraw
(
TBool
)
|
void
|
PreDraw
()
|
TBool
|
RemoveNbsp
()
|
TBrowserStatusCode
|
ScaleImage
(const
NW_GDI_Dimension3D_t
*, const
NW_GDI_ImageBlock_t
*,
NW_GDI_ImageBlock_t
*)
|
void
|
SetBackgroundColor
(
NW_GDI_Color_t
)
|
void
|
SetClipRect
(const
NW_GDI_Rectangle_t
*)
|
void
|
SetDisplayBounds
(const
NW_GDI_Rectangle_t
*)
|
void
|
SetFillPattern
(
NW_GDI_Pattern_t
)
|
TBool
|
SetFontSizeLevel
()
|
void
|
SetFontSizeLevel
(
TGDIDeviceContextFontSizeLevel
)
|
void
|
SetForegroundColor
(
NW_GDI_Color_t
)
|
void
|
SetGraphicsContext
(void *)
|
void
|
SetLinePattern
(
NW_GDI_Pattern_t
)
|
void
|
SetLineWidth
(
NW_GDI_Metric_t
)
|
void
|
SetOrigin
(const
NW_GDI_Point2D_t
*)
|
void
|
SetPaintMode
(
NW_GDI_PaintMode_t
)
|
void
|
SetRemoveNbsp
(
TBool
)
|
void
|
SetTextDirection
(
NW_GDI_TextDirection_t
)
|
TBrowserStatusCode
|
SplitText
(
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_Text_Length_t
*,
TUint8
)
|
TGDISupportedLanguage
|
SupportedLanguage
()
|
void
|
SwitchAgainstBG
(
NW_GDI_Color_t
*)
|
NW_GDI_TextDirection_t
|
TextDirection
()
|
EVariantFlag
|
VariantFlag
()
|
CWsScreenDevice
*
|
WsScreenDevice
()
|
Private Member Functions
|
|
CGDIDeviceContext
()
|
TBool
|
CanSplit
(
TText16
,
TText16
)
|
TBrowserStatusCode
|
ConstructL
(void *, CView *)
|
CBitmapContext
*
|
Epoc32GraphicsContext
()
|
void
|
InitializeGraphicsContext
()
|
TBool
|
IsThaiCell
(
TText16
,
TText16
)
|
TBrowserStatusCode
|
ScaleBitmap
(
CFbsBitmap
*,
CFbsBitmap
**,
TRect
*)
|
TBrowserStatusCode
|
SplitAtNewline
(
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_Text_Length_t
*)
|
NW_GDI_Color_t
|
SwapColorBytes
(
NW_GDI_Color_t
)
|
TBrowserStatusCode
|
Truncate
(
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_Text_Length_t
*)
|
TBrowserStatusCode
|
WordWrap
(
NW_Text_t
*,
CGDIFont
*,
NW_GDI_Metric_t
,
NW_GDI_Metric_t
,
NW_GDI_FlowDirection_t
,
NW_Text_Length_t
*)
|
Constructor & Destructor Documentation
CGDIDeviceContext()
CGDIDeviceContext
|
(
|
)
|
[private]
|
~CGDIDeviceContext()
~CGDIDeviceContext
|
(
|
)
|
[virtual]
|
Member Functions Documentation
CanSplit(TText16, TText16)
Checks whether or not a line split (word wrap) can occur between the two characters specified.
-
Since
-
2.6
ChangeFontSize(CGDIFont *)
void
|
ChangeFontSize
|
(
|
CGDIFont
*
|
aFont
|
)
|
|
ConstructL(void *, CView *)
TBrowserStatusCode
|
ConstructL
|
(
|
void *
|
aGraphicsContext,
|
|
CView *
|
aOocEpoc32View
|
|
)
|
[private]
|
By default Symbian 2nd phase constructor is private.
Parameters
void * aGraphicsContext
|
|
CView * aOocEpoc32View
|
|
CreateFont(const NW_Text_t *, TGDIFontStyle, TUint8, TUint16, TGDIFontVariant)
DrawImage(const NW_GDI_Point2D_t *, const NW_GDI_Rectangle_t *, NW_GDI_ImageBlock_t *)
DrawLine(NW_GDI_Point2D_t, NW_GDI_Point2D_t)
DrawPixel(const NW_GDI_Point2D_t *)
DrawPolyline(NW_GDI_Metric_t, const NW_GDI_Point2D_t *, TBool)
DrawRectangle(const NW_GDI_Rectangle_t *)
DrawText(const NW_GDI_Point2D_t *, const NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_TextDecoration_t, NW_GDI_FlowDirection_t, NW_GDI_Metric_t)
FillRectangle(const NW_GDI_Rectangle_t *)
GetColorPalette(NW_GDI_ColorPalette_t *)
GetFlowDirection(NW_Text_t *, NW_GDI_FlowDirection_t *)
GetHighlightColor(NW_GDI_Color_t *)
GetScaledCFont(CGDIFont *)
void *
|
GetScaledCFont
|
(
|
CGDIFont
*
|
aFont
|
)
|
const
|
GetSubstringExtent(const NW_Text_t *, CGDIFont *, NW_Text_Length_t, NW_Text_Length_t, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_GDI_Dimension2D_t *)
GetTextExtent(const NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_GDI_Dimension2D_t *)
InitializeGraphicsContext()
void
|
InitializeGraphicsContext
|
(
|
)
|
[private]
|
IsThaiCell(TText16, TText16)
Checks whether or not the two consecutive characters are within a single Thai script "cell".
-
Since
-
2.6
NewL(void *, CView *)
CGDIDeviceContext
*
|
NewL
|
(
|
void *
|
aGraphicsContext,
|
|
CView *
|
aOocEpoc32View
|
|
)
|
[static]
|
Parameters
void * aGraphicsContext
|
|
CView * aOocEpoc32View
|
|
PostDraw(TBool)
void
|
PostDraw
|
(
|
TBool
|
aDrawNow
|
)
|
|
ScaleBitmap(CFbsBitmap *, CFbsBitmap **, TRect *)
ScaleImage(const NW_GDI_Dimension3D_t *, const NW_GDI_ImageBlock_t *, NW_GDI_ImageBlock_t *)
SetBackgroundColor(NW_GDI_Color_t)
SetClipRect(const NW_GDI_Rectangle_t *)
SetDisplayBounds(const NW_GDI_Rectangle_t *)
SetFillPattern(NW_GDI_Pattern_t)
SetFontSizeLevel()
TBool
|
SetFontSizeLevel
|
(
|
)
|
|
SetFontSizeLevel(TGDIDeviceContextFontSizeLevel)
void
|
SetFontSizeLevel
|
(
|
TGDIDeviceContextFontSizeLevel
|
aFontSizeLevel
|
)
|
|
Parameters
TGDIDeviceContextFontSizeLevel
aFontSizeLevel
|
|
SetForegroundColor(NW_GDI_Color_t)
SetGraphicsContext(void *)
void
|
SetGraphicsContext
|
(
|
void *
|
aGraphicsContext
|
)
|
|
SetLinePattern(NW_GDI_Pattern_t)
SetLineWidth(NW_GDI_Metric_t)
SetOrigin(const NW_GDI_Point2D_t *)
SetPaintMode(NW_GDI_PaintMode_t)
SetRemoveNbsp(TBool)
void
|
SetRemoveNbsp
|
(
|
TBool
|
aFlag
|
)
|
|
SetTextDirection(NW_GDI_TextDirection_t)
SplitAtNewline(NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_Text_Length_t *)
SplitText(NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_Text_Length_t *, TUint8)
SupportedLanguage()
TGDISupportedLanguage
|
SupportedLanguage
|
(
|
)
|
|
SwapColorBytes(NW_GDI_Color_t)
SwitchAgainstBG(NW_GDI_Color_t *)
Truncate(NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_Text_Length_t *)
VariantFlag()
EVariantFlag
|
VariantFlag
|
(
|
)
|
|
WordWrap(NW_Text_t *, CGDIFont *, NW_GDI_Metric_t, NW_GDI_Metric_t, NW_GDI_FlowDirection_t, NW_Text_Length_t *)
Member Data Documentation
NW_GDI_Color_t
iBackgroundColor
NW_GDI_Rectangle_t
iClipRect
NW_GDI_Rectangle_t
iDisplayBounds
NW_GDI_Pattern_t
iFillPattern
TGDIDeviceContextFontSizeLevel
iFontSizeLevel
TGDIDeviceContextFontSizeLevel
|
iFontSizeLevel
|
[private]
|
NW_GDI_Color_t
iForegroundColor
void * iGraphicsContext
void *
|
iGraphicsContext
|
[private]
|
NW_GDI_Pattern_t
iLinePattern
NW_GDI_Metric_t
iLineWidth
CView * iOocEpoc32View
CView *
|
iOocEpoc32View
|
[private]
|
NW_GDI_PaintMode_t
iPaintMode
TBool
iRemoveNbsp
TBool
|
iRemoveNbsp
|
[private]
|
NW_Int32
iResourceFileOffset
TGDISupportedLanguage
iSupportedLanguage
TGDISupportedLanguage
|
iSupportedLanguage
|
[private]
|
NW_GDI_TextDirection_t
iTextDirection
EVariantFlag
iVariantFlag
EVariantFlag
|
iVariantFlag
|
[private]
|
CWsScreenDevice * iWsScreenDev
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.