#include <banddev.h>
| class CBandedDevice : public CGraphicsDevice |
| IMPORT_C TInt | CreateContext | ( | CGraphicsContext *& | aGC | ) | [virtual] |
Reimplemented from CGraphicsDevice::CreateContext(CGraphicsContext *&)
Creates a graphics context for the device.
| Parameter | Description |
|---|---|
| aGC | On return, contains a pointer to the created graphics context. |
Returns: KErrNone, if successful; otherwise, another of the system-wide error codes.
| IMPORT_C TDisplayMode | DisplayMode | ( | ) | const [virtual] |
Reimplemented from CGraphicsDevice::DisplayMode()const
Gets the display mode of the device.
Returns: The display mode of the device.
Reimplemented from CGraphicsDevice::FontHeightInTwips(TInt,TInt)const
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.
| Parameter | Description |
|---|---|
| aTypefaceIndex | An index identifying the typeface, in the range: 0 to (NumTypefaces() - 1). |
| 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(). |
Returns: The height of the font, in twips.
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()
| Parameter | Description |
|---|---|
| aFont | On return, points to the font which most closely matches the specified font. |
| aFontSpec | An absolute font specification. Its iHeight member is interpreted as being in twips. |
Returns: KErrNone if successful; otherwise, another one of the system-wide error codes.
| 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()
| Parameter | Description |
|---|---|
| aFont | On return, points to the font which most closely matches the specified font. |
| aFontSpec | An absolute font specification. Its iHeight member is interpreted as being in twips. |
Returns: KErrNone if successful; otherwise, another one of the system-wide error codes.
Reimplemented from CGraphicsDevice::GetPalette(CPalette *&)const
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().
| Parameter | Description |
|---|---|
| aPalette | On return, holds the device's current palette. |
Returns: KErrNone, if successful; otherwise, another of the system-wide error codes.
| IMPORT_C CBandedDevice * | NewL | ( | TRect | aRectInPixels, |
| TSize | aKPixelSizeInTwips, | |||
| TDisplayMode | aDisplayMode, | |||
| TBandingDirection | aBandingDirection = EBandingTopToBottom, | |||
| TInt | aScanLinesPerBand = 0 | |||
| ) | [static] | |||
| IMPORT_C TInt | NumTypefaces | ( | ) | const [virtual] |
Reimplemented from CGraphicsDevice::NumTypefaces()const
Gets the number of typefaces supported by the graphics device.
Returns: The number of typefaces supported.
Reimplemented from CGraphicsDevice::PaletteAttributes(TBool &,TInt &)const
Gets the palette attributes of the device.
| Parameter | Description |
|---|---|
| aModifiable | On return, holds information on whether or not the device's palette is modifiable (ETrue) or fixed (EFalse). |
| aNumEntries | On return, holds the number of entries in the device's palette. |
| IMPORT_C void | SetPalette | ( | CPalette * | aPalette | ) | [virtual] |
Reimplemented from CGraphicsDevice::SetPalette(CPalette *)
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().
| Parameter | Description |
|---|---|
| aPalette | The new palette for the device. |
| IMPORT_C TSize | SizeInPixels | ( | ) | const [virtual] |
Reimplemented from CGraphicsDevice::SizeInPixels()const
Gets the size of the device area in pixels.
Returns: The width and height of the device area, in pixels
| IMPORT_C TSize | SizeInTwips | ( | ) | const [virtual] |
Reimplemented from CGraphicsDevice::SizeInTwips()const
Gets the size of the device area in twips.
Returns: The width and height of the device area, in twips
| IMPORT_C void | TypefaceSupport | ( | TTypefaceSupport & | aTypefaceSupport, |
| TInt | aTypefaceIndex | |||
| ) | const [virtual] | |||
Reimplemented from CGraphicsDevice::TypefaceSupport(TTypefaceSupport &,TInt)const
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
See also: NumTypefaces()
| Parameter | Description |
|---|---|
| aTypefaceSupport | On return, contains the typeface information. |
| aTypefaceIndex | A typeface index number, in the range: zero to (NumTypefaces() - 1). |