CFbsBitmapDevice Class Reference

class CFbsBitmapDevice : public CFbsDevice

A graphics device to which a bitmap managed by the font and bitmap server can be drawn.

The class specialises the bitmap graphics device interface CBitmapDevice for drawing to in-memory bitmaps.

Inherits from

Public Member Functions
~CFbsBitmapDevice()
IMPORT_C voidDrawingBegin(TBool)
IMPORT_C voidDrawingEnd(TBool)
IMPORT_C TIntGetPalette(CPalette *&)
IMPORT_C voidGetPixel(TRgb &, const TPoint &)
IMPORT_C voidGetScanLine(TDes8 &, const TPoint &, TInt, TDisplayMode)
IMPORT_C TIntHorizontalPixelsToTwips(TInt)
IMPORT_C TIntHorizontalTwipsToPixels(TInt)
IMPORT_C CFbsBitmapDevice *NewL(CFbsBitmap *)
IMPORT_C CFbsBitmapDevice *NewL(CFbsBitmap *, const TDesC &)
IMPORT_C voidPaletteAttributes(TBool &, TInt &)
IMPORT_C TIntResize(const TSize &)
IMPORT_C voidSetPalette(CPalette *)
IMPORT_C TSizeSizeInTwips()
IMPORT_C TIntSwapWidthAndHeight()
IMPORT_C TIntVerticalPixelsToTwips(TInt)
IMPORT_C TIntVerticalTwipsToPixels(TInt)
Private Member Functions
CFbsBitmapDevice()
voidConstructL(CFbsBitmap *)
voidConstructL(CFbsBitmap *, const TDesC &)
voidSetBits()
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()
CBitmapDevice::CreateBitmapContext(CBitmapContext *&)
CFbsDevice::AddFile(const TDesC &,TInt &)
CFbsDevice::CFbsDevice()
CFbsDevice::CancelSprite()const
CFbsDevice::CreateContext(CFbsBitGc *&)
CFbsDevice::CreateContext(CGraphicsContext *&)
CFbsDevice::DisplayMode()const
CFbsDevice::DisplayMode16M()
CFbsDevice::DoGetScanLine(TDes8 &,const TPoint &,TInt,TDisplayMode)
CFbsDevice::DrawingBegin(const CFbsBitmap *,TBool)
CFbsDevice::DrawingEnd(const CFbsBitmap *,TBool)
CFbsDevice::FontHeightInPixels(TInt,TInt)const
CFbsDevice::FontHeightInTwips(TInt,TInt)const
CFbsDevice::GetDrawRect(TRect &)const
CFbsDevice::GetFontById(CFbsFont *&,TUid,const TAlgStyle &)
CFbsDevice::GetFontById(CFont *&,TUid,const TAlgStyle &)
CFbsDevice::GetNearestFbsFont(CFbsFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontInPixels(CFbsFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontInPixels(CFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontInTwips(CFbsFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontInTwips(CFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontToDesignHeightInPixels(CFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontToDesignHeightInTwips(CFont *&,const TFontSpec &)
CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont *&,const TFontSpec &,TInt)
CFbsDevice::GetNearestFontToMaxHeightInPixels(CFont *&,const TFontSpec &,TInt)
CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont *&,const TFontSpec &,TInt)
CFbsDevice::GetNearestFontToMaxHeightInTwips(CFont *&,const TFontSpec &,TInt)
CFbsDevice::GraphicsAccelerator()const
CFbsDevice::HideSprite()const
CFbsDevice::HideSprite(const TRect &,const TRegion *)const
CFbsDevice::NumTypefaces()const
CFbsDevice::Orientation()const
CFbsDevice::ReadLineDiffMode(TInt,TInt,TInt,TAny *,TDisplayMode)const
CFbsDevice::RectCompare(const TRect &,const CFbsDevice &,const TRect &)const
CFbsDevice::RegisterLinkedTypeface(const CLinkedTypefaceSpecification &,TInt &)
CFbsDevice::ReleaseFont(CFont *)
CFbsDevice::RemoveFile(TInt)
CFbsDevice::SetCustomPalette(const CPalette *)
CFbsDevice::SetDrawDeviceOffset(const TPoint &)
CFbsDevice::SetOrientation(CFbsBitGc::TGraphicsOrientation)
CFbsDevice::SetScalingFactor(const TPoint &,TInt,TInt,TInt,TInt)
CFbsDevice::ShowSprite(TSpriteBase *)const
CFbsDevice::ShowSprite(TSpriteBase *,const TRect &,const TRegion *)const
CFbsDevice::SizeInPixels()const
CFbsDevice::TruncateRect(TRect &)
CFbsDevice::TypefaceSupport(TTypefaceSupport &,TInt)const
CFbsDevice::~CFbsDevice()
Private Attributes
CFbsBitGcBitmap *iFbsBmp
Inherited Attributes
CFbsDevice::iBitBltMaskedBuffer
CFbsDevice::iDrawDevice
CFbsDevice::iFbs
CFbsDevice::iGraphicsAccelerator
CFbsDevice::iOrientation
CFbsDevice::iScreenDevice
CFbsDevice::iSpare
CFbsDevice::iTypefaceStore

Constructor & Destructor Documentation

CFbsBitmapDevice()

CFbsBitmapDevice()[private]

~CFbsBitmapDevice()

IMPORT_C~CFbsBitmapDevice()[virtual]

Member Functions Documentation

ConstructL(CFbsBitmap *)

voidConstructL(CFbsBitmap *aFbsBitmap)[private]

Parameters

CFbsBitmap * aFbsBitmap

ConstructL(CFbsBitmap *, const TDesC &)

voidConstructL(CFbsBitmap *aFbsBitmap,
const TDesC &aLibname
)[private]

Parameters

CFbsBitmap * aFbsBitmap
const TDesC & aLibname

DrawingBegin(TBool)

IMPORT_C voidDrawingBegin(TBoolaAlways = EFalse)[virtual]

Parameters

TBool aAlways = EFalse

DrawingEnd(TBool)

IMPORT_C voidDrawingEnd(TBoolaAlways = EFalse)[virtual]

Parameters

TBool aAlways = EFalse

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

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

Parameters

CPalette *& aPaletteOn return, holds the device's current palette.

GetPixel(TRgb &, const TPoint &)

IMPORT_C voidGetPixel(TRgb &aColor,
const TPoint &aPixel
)const [virtual]

Gets the RGB colour of an individual pixel on a bitmapped graphics device.

This pure virtual function is implemented in derived classes.

Parameters

TRgb & aColorOn return, should contain the RGB colour of the pixel.
const TPoint & aPixelThe (x,y) co-ordinates of the pixel. The top left pixel is (0,0).

GetScanLine(TDes8 &, const TPoint &, TInt, TDisplayMode)

IMPORT_C voidGetScanLine(TDes8 &aBuf,
const TPoint &aStartPixel,
TIntaLength,
TDisplayModeaDispMode
)const [virtual]

Copies a scanline into a buffer.

The pixels are converted from the display mode format on the bitmapped graphics device to the format of the specified device display mode.

By specifying the start pixel and the number of pixels, either the whole or a portion of a bitmapped graphics device pixel row may be copied.

This pure virtual function is implemented in derived classes.

Parameters

TDes8 & aBufAn 8 bit modifiable descriptor buffer into which pixels are copied; it must be sufficiently large to store all the scanline pixels.
const TPoint & aStartPixelThe (x,y) co-ordinates of the first pixel of the bitmap scanline to be put into the buffer.
TInt aLengthThe number of pixels to put into the buffer.
TDisplayMode aDispModeThe display mode into which to convert the pixels.

HorizontalPixelsToTwips(TInt)

IMPORT_C TIntHorizontalPixelsToTwips(TIntaPixels)const [virtual]

Parameters

TInt aPixels

HorizontalTwipsToPixels(TInt)

IMPORT_C TIntHorizontalTwipsToPixels(TIntaTwips)const [virtual]

Parameters

TInt aTwips

NewL(CFbsBitmap *)

IMPORT_C CFbsBitmapDevice *NewL(CFbsBitmap *aFbsBitmap)[static]

Parameters

CFbsBitmap * aFbsBitmap

NewL(CFbsBitmap *, const TDesC &)

IMPORT_C CFbsBitmapDevice *NewL(CFbsBitmap *aFbsBitmap,
const TDesC &aLibname
)[static]

Parameters

CFbsBitmap * aFbsBitmap
const TDesC & aLibname

PaletteAttributes(TBool &, TInt &)

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

Gets the palette attributes of the device.

Parameters

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

Resize(const TSize &)

IMPORT_C TIntResize(const TSize &aSize)

Parameters

const TSize & aSize

SetBits()

voidSetBits()[private, virtual]

Sets the bit level.

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

Parameters

CPalette * aPaletteThe new palette for the device.

SizeInTwips()

IMPORT_C TSizeSizeInTwips()const [virtual]

Gets the size of the device area in twips.

The width and height of the device area, in twips

SwapWidthAndHeight()

IMPORT_C TIntSwapWidthAndHeight()

VerticalPixelsToTwips(TInt)

IMPORT_C TIntVerticalPixelsToTwips(TIntaPixels)const [virtual]

Parameters

TInt aPixels

VerticalTwipsToPixels(TInt)

IMPORT_C TIntVerticalTwipsToPixels(TIntaTwips)const [virtual]

Parameters

TInt aTwips

Member Data Documentation

CFbsBitGcBitmap * iFbsBmp

CFbsBitGcBitmap *iFbsBmp[private]