CBandedDevice Class Reference

#include <banddev.h>

Link against: pdrstr.lib

class CBandedDevice : public CGraphicsDevice

Inherits from

  • CBandedDevice
    Public Member Functions
    ~CBandedDevice()
    CFbsBitmap *BandBitmap()
    IMPORT_C TRectBandRect()
    TBandingDirection BandingDirection()
    virtual IMPORT_C TIntCreateContext(CGraphicsContext *&)
    virtual IMPORT_C TDisplayModeDisplayMode()
    virtual IMPORT_C TIntFontHeightInTwips(TInt, TInt)
    IMPORT_C TPointFullOriginToBandOrigin(const TPoint &)
    virtual IMPORT_C TIntGetNearestFontInTwips(CFont *&, const TFontSpec &)
    virtual IMPORT_C TIntGetNearestFontToDesignHeightInTwips(CFont *&, const TFontSpec &)
    virtual IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&, const TFontSpec &, TInt)
    virtual IMPORT_C TIntGetPalette(CPalette *&)
    IMPORT_C TIntHorizontalPixelsToTwips(TInt)
    IMPORT_C TIntHorizontalTwipsToPixels(TInt)
    IMPORT_C CBandedDevice *NewL(TRect, TSize, TDisplayMode, TBandingDirection, TInt)
    IMPORT_C TIntNextBand()
    IMPORT_C TIntNumBands()
    virtual IMPORT_C TIntNumTypefaces()
    virtual IMPORT_C voidPaletteAttributes(TBool &, TInt &)
    IMPORT_C voidReleaseFont(CFont *)
    IMPORT_C voidReset()
    virtual IMPORT_C voidSetPalette(CPalette *)
    virtual IMPORT_C TSizeSizeInPixels()
    virtual IMPORT_C TSizeSizeInTwips()
    virtual IMPORT_C voidTypefaceSupport(TTypefaceSupport &, TInt)
    IMPORT_C TIntVerticalPixelsToTwips(TInt)
    IMPORT_C TIntVerticalTwipsToPixels(TInt)
    Inherited Functions
    CBase::CBase()
    CBase::Delete(CBase *)
    CBase::Extension_(TUint,TAny *&,TAny *)
    CBase::operator new(TUint)
    CBase::operator new(TUint,TAny *)
    CBase::operator new(TUint,TLeave)
    CBase::operator new(TUint,TLeave,TUint)
    CBase::operator new(TUint,TUint)
    CBase::~CBase()

    Constructor & Destructor Documentation

    ~CBandedDevice ( )

    IMPORT_C~CBandedDevice()

    Member Function Documentation

    BandBitmap ( )

    CFbsBitmap *BandBitmap()const [inline]

    BandRect ( )

    IMPORT_C TRectBandRect()const

    BandingDirection ( )

    TBandingDirection BandingDirection()const [inline]

    CreateContext ( CGraphicsContext *& )

    IMPORT_C TIntCreateContext(CGraphicsContext *&aGC)[virtual]

    Creates a graphics context for the device.

    ParameterDescription
    aGCOn return, contains a pointer to the created graphics context.

    Returns: KErrNone, if successful; otherwise, another of the system-wide error codes.

    DisplayMode ( )

    IMPORT_C TDisplayModeDisplayMode()const [virtual]

    Gets the display mode of the device.

    Returns: The display mode of the device.

    FontHeightInTwips ( TInt, TInt )

    IMPORT_C TIntFontHeightInTwips(TIntaTypefaceIndex,
    TIntaHeightIndex
    )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.

    ParameterDescription
    aTypefaceIndexAn index identifying the typeface, in the range: 0 to (NumTypefaces() - 1).
    aHeightIndexAn 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.

    FullOriginToBandOrigin ( const TPoint & )

    IMPORT_C TPointFullOriginToBandOrigin(const TPoint &aPoint)const

    GetNearestFontInTwips ( CFont *&, const TFontSpec & )

    IMPORT_C TIntGetNearestFontInTwips(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()

    Deprecated

    ParameterDescription
    aFontOn return, points to the font which most closely matches the specified font.
    aFontSpecAn 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.

    GetNearestFontToDesignHeightInTwips ( CFont *&, const TFontSpec & )

    IMPORT_C TIntGetNearestFontToDesignHeightInTwips(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()

    ParameterDescription
    aFontOn return, points to the font which most closely matches the specified font.
    aFontSpecAn 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.

    GetNearestFontToMaxHeightInTwips ( CFont *&, const TFontSpec &, TInt )

    IMPORT_C TIntGetNearestFontToMaxHeightInTwips(CFont *&aFont,
    const TFontSpec &aFontSpec,
    TIntaMaxHeight
    )[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.

    GetPalette ( CPalette *& )

    IMPORT_C TIntGetPalette(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().

    ParameterDescription
    aPaletteOn return, holds the device's current palette.

    Returns: KErrNone, if successful; otherwise, another of the system-wide error codes.

    HorizontalPixelsToTwips ( TInt )

    IMPORT_C TIntHorizontalPixelsToTwips(TIntaPixels)const

    HorizontalTwipsToPixels ( TInt )

    IMPORT_C TIntHorizontalTwipsToPixels(TIntaTwips)const

    NewL ( TRect, TSize, TDisplayMode, TBandingDirection, TInt )

    IMPORT_C CBandedDevice *NewL(TRectaRectInPixels,
    TSizeaKPixelSizeInTwips,
    TDisplayModeaDisplayMode,
    TBandingDirectionaBandingDirection = EBandingTopToBottom,
    TIntaScanLinesPerBand = 0
    )[static]

    NextBand ( )

    IMPORT_C TIntNextBand()

    NumBands ( )

    IMPORT_C TIntNumBands()const

    NumTypefaces ( )

    IMPORT_C TIntNumTypefaces()const [virtual]

    Gets the number of typefaces supported by the graphics device.

    Returns: The number of typefaces supported.

    PaletteAttributes ( TBool &, TInt & )

    IMPORT_C voidPaletteAttributes(TBool &aModifiable,
    TInt &aNumEntries
    )const [virtual]

    Gets the palette attributes of the device.

    ParameterDescription
    aModifiableOn return, holds information on whether or not the device's palette is modifiable (ETrue) or fixed (EFalse).
    aNumEntriesOn return, holds the number of entries in the device's palette.

    ReleaseFont ( CFont * )

    IMPORT_C voidReleaseFont(CFont *aFont)

    Reset ( )

    IMPORT_C voidReset()

    SetPalette ( CPalette * )

    IMPORT_C voidSetPalette(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().

    ParameterDescription
    aPaletteThe new palette for the device.

    SizeInPixels ( )

    IMPORT_C TSizeSizeInPixels()const [virtual]

    Gets the size of the device area in pixels.

    Returns: The width and height of the device area, in pixels

    SizeInTwips ( )

    IMPORT_C TSizeSizeInTwips()const [virtual]

    Gets the size of the device area in twips.

    Returns: The width and height of the device area, in twips

    TypefaceSupport ( TTypefaceSupport &, TInt )

    IMPORT_C voidTypefaceSupport(TTypefaceSupport &aTypefaceSupport,
    TIntaTypefaceIndex
    )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

    See also: NumTypefaces()

    ParameterDescription
    aTypefaceSupportOn return, contains the typeface information.
    aTypefaceIndexA typeface index number, in the range: zero to (NumTypefaces() - 1).

    VerticalPixelsToTwips ( TInt )

    IMPORT_C TIntVerticalPixelsToTwips(TIntaPixels)const

    VerticalTwipsToPixels ( TInt )

    IMPORT_C TIntVerticalTwipsToPixels(TIntaTwips)const