| class CBandedDevice : public CGraphicsDevice |
| Private Member Functions | |
|---|---|
| CBandedDevice ( TRect , TBandingDirection , TInt ) | |
| void | ConstructL ( TDisplayMode , TSize ) |
| CBandedDevice | ( | TRect | aRectInPixels, |
| TBandingDirection | aBandingDirection, | ||
| TInt | aScanLinesPerBand | ||
| ) | [private] | ||
| TRect aRectInPixels | |
| TBandingDirection aBandingDirection | |
| TInt aScanLinesPerBand |
| void | ConstructL | ( | TDisplayMode | aDisplayMode, |
| TSize | aKPixelSizeInTwips | |||
| ) | [private] | |||
| TDisplayMode aDisplayMode | |
| TSize aKPixelSizeInTwips |
| IMPORT_C TInt | CreateContext | ( | CGraphicsContext *& | aGC | ) | [virtual] |
Creates a graphics context for the device.
| CGraphicsContext *& aGC | On return, contains a pointer to the created graphics context. |
| IMPORT_C TDisplayMode | DisplayMode | ( | ) | const [virtual] |
Gets the display mode of the device.
| IMPORT_C TInt | FontHeightInTwips | ( | TInt | aTypefaceIndex, |
| TInt | aHeightIndex | |||
| ) | const [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.
| IMPORT_C TPoint | FullOriginToBandOrigin | ( | const TPoint & | aPoint | ) | const |
| const TPoint & aPoint |
| IMPORT_C TInt | GetNearestFontInTwips | ( | CFont *& | aFont, |
| const TFontSpec & | aFontSpec | |||
| ) | [virtual] | |||
Creates a font from those available in the printer device's typeface store that most closely matches a font specification.
When the font is no longer needed, call ReleaseFont() .
This function is replaced by GetNearestFontToDesignHeightInTwips()
| IMPORT_C TInt | GetNearestFontToDesignHeightInTwips | ( | CFont *& | aFont, |
| const TFontSpec & | aFontSpec | |||
| ) | [virtual] | |||
Creates a font from those available in the printer device's typeface store that most closely matches a font specification.
When the font is no longer needed, call ReleaseFont() .
This function replaces GetNearestFontInTwips()
| IMPORT_C TInt | GetNearestFontToMaxHeightInTwips | ( | CFont *& | aFont, |
| const TFontSpec & | aFontSpec, | |||
| TInt | aMaxHeight | |||
| ) | [virtual] | |||
This call is defined because it had to be - it appeared as an abstract virtual in the base class. But it should never actually get called for this class.
| IMPORT_C TInt | GetPalette | ( | CPalette *& | aPalette | ) | const [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. |
| IMPORT_C TInt | HorizontalPixelsToTwips | ( | TInt | aPixels | ) | const |
| TInt aPixels |
| IMPORT_C TInt | HorizontalTwipsToPixels | ( | TInt | aTwips | ) | const |
| TInt aTwips |
| IMPORT_C CBandedDevice * | NewL | ( | TRect | aRectInPixels, |
| TSize | aKPixelSizeInTwips, | |||
| TDisplayMode | aDisplayMode, | |||
| TBandingDirection | aBandingDirection = EBandingTopToBottom, | |||
| TInt | aScanLinesPerBand = 0 | |||
| ) | [static] | |||
| TRect aRectInPixels | |
| TSize aKPixelSizeInTwips | |
| TDisplayMode aDisplayMode | |
| TBandingDirection aBandingDirection = EBandingTopToBottom | |
| TInt aScanLinesPerBand = 0 |
| IMPORT_C TInt | NumTypefaces | ( | ) | const [virtual] |
Gets the number of typefaces supported by the graphics device.
| IMPORT_C void | PaletteAttributes | ( | TBool & | aModifiable, |
| TInt & | aNumEntries | |||
| ) | const [virtual] | |||
Gets the palette attributes of the device.
| IMPORT_C void | SetPalette | ( | CPalette * | aPalette | ) | [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. |
| IMPORT_C TSize | SizeInPixels | ( | ) | const [virtual] |
Gets the size of the device area in pixels.
| IMPORT_C TSize | SizeInTwips | ( | ) | const [virtual] |
Gets the size of the device area in twips.
| IMPORT_C void | TypefaceSupport | ( | TTypefaceSupport & | aTypefaceSupport, |
| TInt | aTypefaceIndex | |||
| ) | const [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). |
| IMPORT_C TInt | VerticalPixelsToTwips | ( | TInt | aPixels | ) | const |
| TInt aPixels |
| IMPORT_C TInt | VerticalTwipsToPixels | ( | TInt | aTwips | ) | const |
| TInt aTwips |
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.