CPdrDevice Class Reference
class CPdrDevice : public CPrinterDevice |
Constructor & Destructor Documentation
CPdrDevice()
IMPORT_C | CPdrDevice | ( | ) | [protected] |
~CPdrDevice()
IMPORT_C | ~CPdrDevice | ( | ) | [virtual] |
Member Functions Documentation
DisplayMode()
Gets the display mode of the device.
DoSetModelL()
void | DoSetModelL | ( | ) | [private] |
Flags()
IMPORT_C TInt | Flags | ( | ) | const |
FontHeightInTwips(TInt, TInt)
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.
Parameters
TInt aTypefaceIndex | An index identifying the typeface, in the range: 0 to (NumTypefaces() - 1). |
TInt aHeightIndex | An index identifying the font height, in the range: 0 to (iNumHeights - 1). Note that iNumHeights is in the TTypefaceSupport object returned by TypefaceSupport(). |
GetNearestFontInTwips(CFont *&, const TFontSpec &)
GetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
IMPORT_C TInt | GetNearestFontToDesignHeightInTwips | ( | CFont *& | aFont, |
| const TFontSpec & | aFontSpec |
| ) | |
GetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)
GetPalette(CPalette *&)
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().
Parameters
CPalette *& aPalette | On return, holds the device's current palette. |
HorizontalPixelsToTwips(TInt)
IMPORT_C TInt | HorizontalPixelsToTwips | ( | TInt | aPixels | ) | const |
HorizontalTwipsToPixels(TInt)
IMPORT_C TInt | HorizontalTwipsToPixels | ( | TInt | aTwips | ) | const |
KPixelSizeInTwips()
IMPORT_C TSize | KPixelSizeInTwips | ( | ) | const [protected, virtual] |
Model()
Gets the printer model entry.
NumTypefaces()
IMPORT_C TInt | NumTypefaces | ( | ) | const [virtual] |
Gets the number of typefaces supported by the graphics device.
OffsetInPixels()
IMPORT_C TPoint | OffsetInPixels | ( | ) | |
PaletteAttributes(TBool &, TInt &)
IMPORT_C void | PaletteAttributes | ( | TBool & | aModifiable, |
| TInt & | aNumEntries |
| ) | const [virtual] |
Gets the palette attributes of the device.
Parameters
TBool & aModifiable | On return, holds information on whether or not the device's palette is modifiable (ETrue) or fixed (EFalse). |
TInt & aNumEntries | On return, holds the number of entries in the device's palette. |
PrintablePageInPixels()
IMPORT_C TRect | PrintablePageInPixels | ( | ) | const [virtual] |
ReleaseFont(CFont *)
IMPORT_C void | ReleaseFont | ( | CFont * | aFont | ) | |
SelectPageSpecInTwips(const TPageSpec &)
IMPORT_C void | SelectPageSpecInTwips | ( | const TPageSpec & | aPageSpec | ) | [virtual] |
Sets the page specification in twips.
Parameters
const TPageSpec & aPageSpec | The page specification in twips. |
SetModel(const TPrinterModelHeader &, CStreamStore &)
Sets the printer model header and the store.
SetPalette(CPalette *)
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().
Parameters
CPalette * aPalette | The new palette for the device. |
SizeInPixels()
IMPORT_C TSize | SizeInPixels | ( | ) | const [virtual] |
Gets the size of the device area in pixels.
SizeInTwips()
IMPORT_C TSize | SizeInTwips | ( | ) | const [virtual] |
Gets the size of the device area in twips.
TypefaceSupport(TTypefaceSupport &, TInt)
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
NumTypefaces()
Parameters
TTypefaceSupport & aTypefaceSupport | On return, contains the typeface information. |
TInt aTypefaceIndex | A typeface index number, in the range: zero to (NumTypefaces() - 1). |
VerticalPixelsToTwips(TInt)
IMPORT_C TInt | VerticalPixelsToTwips | ( | TInt | aPixels | ) | const |
VerticalTwipsToPixels(TInt)
IMPORT_C TInt | VerticalTwipsToPixels | ( | TInt | aTwips | ) | const |
Member Data Documentation
TPrinterModelHeader
iModel
CPdrModelInfo * iModelInfo
CPdrModelInfo * | iModelInfo | [protected] |
CPdrTypefaceStore * iTypefaceStore
CPdrTypefaceStore * | iTypefaceStore | [protected] |
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.