class CGraphicsDevice : public CBase |
Specifies the interface for concrete device classes.
It holds information on the capabilities and attributes of a graphics device. The CBitmapDevice and CPrinterDevice classes are derived from CGraphicsDevice .
Public Member Functions | |
---|---|
TInt | CreateContext ( CGraphicsContext *&) |
TDisplayMode | DisplayMode () |
TInt | FontHeightInTwips ( TInt , TInt ) |
TInt | GetPalette ( CPalette *&) |
TInt | NumTypefaces () |
void | PaletteAttributes ( TBool &, TInt &) |
void | SetPalette ( CPalette *) |
TSize | SizeInPixels () |
TSize | SizeInTwips () |
void | TypefaceSupport ( TTypefaceSupport &, TInt ) |
TInt | CreateContext | ( | CGraphicsContext *& | aGC | ) | [pure virtual] |
Creates a graphics context for the device.
CGraphicsContext *& aGC | On return, contains a pointer to the created graphics context. |
TDisplayMode | DisplayMode | ( | ) | const [pure virtual] |
Gets the display mode of the device.
TInt | FontHeightInTwips | ( | TInt | aTypefaceIndex, |
TInt | aHeightIndex | |||
) | const [pure virtual] |
Get the height of a font in twips.
The font is identified by typeface and height.
The value returned is rounded up or down to the nearest font height in twips.
TInt | GetPalette | ( | CPalette *& | aPalette | ) | const [pure virtual] |
Gets the device's current palette.
This function is only supported if the device has a modifiable palette, which can be determined by calling PaletteAttributes() .
CPalette *& aPalette | On return, holds the device's current palette. |
TInt | NumTypefaces | ( | ) | const [pure virtual] |
Gets the number of typefaces supported by the graphics device.
void | PaletteAttributes | ( | TBool & | aModifiable, |
TInt & | aNumEntries | |||
) | const [pure virtual] |
Gets the palette attributes of the device.
void | SetPalette | ( | CPalette * | aPalette | ) | [pure virtual] |
Sets the device's palette.
Setting the palette is only possible if the device has a modifiable palette, which can be determined by calling PaletteAttributes() .
CPalette * aPalette | The new palette for the device. |
TSize | SizeInPixels | ( | ) | const [pure virtual] |
Gets the size of the device area in pixels.
void | TypefaceSupport | ( | TTypefaceSupport & | aTypefaceSupport, |
TInt | aTypefaceIndex | |||
) | const [pure virtual] |
Gets typeface information for a specified typeface.
This information is returned in aTypefaceSupport, and includes:
the typeface name and typeface attributes
the number of font heights
the maximum and minimum font heights
whether it is a scalable typeface
TTypefaceSupport & aTypefaceSupport | On return, contains the typeface information. |
TInt aTypefaceIndex | A typeface index number, in the range: zero to (NumTypefaces() - 1). |
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.