CFbsScreenDevice Class Reference

class CFbsScreenDevice : public CFbsDevice

A graphics device interface that provides direct access to the screen, without the mediation of the window server.

Inherits from

Public Member Functions
~CFbsScreenDevice()
IMPORT_C const TUint32 *Bits()
IMPORT_C voidCancelSprite()
IMPORT_C voidChangeScreenDevice(CFbsScreenDevice *)
IMPORT_C TDeviceOrientationDeviceOrientation()
IMPORT_C TUintDeviceOrientationsAvailable()
IMPORT_C voidDrawSpriteBegin()
IMPORT_C voidDrawSpriteEnd()
IMPORT_C TIntGetPalette(CPalette *&)
IMPORT_C voidGetPixel(TRgb &, const TPoint &)
IMPORT_C voidGetScanLine(TDes8 &, const TPoint &, TInt, TDisplayMode)
IMPORT_C voidGetSurface(TSurfaceId &)
IMPORT_C RHardwareBitmapHardwareBitmap()
IMPORT_C TSpriteBase *HideSprite()
IMPORT_C TSpriteBase *HideSprite(const TRect &, const TRegion *)
IMPORT_C TIntHorizontalPixelsToTwips(TInt)
IMPORT_C TIntHorizontalTwipsToPixels(TInt)
IMPORT_C CFbsScreenDevice *NewL(const TDesC &, TDisplayMode)
IMPORT_C CFbsScreenDevice *NewL(const TDesC &, TDisplayMode, TRgb)
IMPORT_C CFbsScreenDevice *NewL(TInt, TDisplayMode)
IMPORT_C voidPaletteAttributes(TBool &, TInt &)
IMPORT_C TIntScreenNo()
IMPORT_C voidSetAutoUpdate(TBool)
IMPORT_C TBoolSetDeviceOrientation(TDeviceOrientation)
IMPORT_C voidSetPalette(CPalette *)
IMPORT_C voidShowSprite(TSpriteBase *)
IMPORT_C voidShowSprite(TSpriteBase *, const TRect &, const TRegion *)
IMPORT_C TSizeSizeInTwips()
IMPORT_C TIntStride()
IMPORT_C voidUpdate()
IMPORT_C voidUpdate(const TRegion &)
IMPORT_C TIntVerticalPixelsToTwips(TInt)
IMPORT_C TIntVerticalTwipsToPixels(TInt)
Private Member Functions
CFbsScreenDevice(TInt)
voidConstructL(TInt, TDisplayMode)
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::CreateContext(CFbsBitGc *&)
CFbsDevice::CreateContext(CGraphicsContext *&)
CFbsDevice::DisplayMode()const
CFbsDevice::DisplayMode16M()
CFbsDevice::DoGetScanLine(TDes8 &,const TPoint &,TInt,TDisplayMode)
CFbsDevice::DrawingBegin(TBool)
CFbsDevice::DrawingBegin(const CFbsBitmap *,TBool)
CFbsDevice::DrawingEnd(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::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::SetBits()
CFbsDevice::SetCustomPalette(const CPalette *)
CFbsDevice::SetDrawDeviceOffset(const TPoint &)
CFbsDevice::SetOrientation(CFbsBitGc::TGraphicsOrientation)
CFbsDevice::SetScalingFactor(const TPoint &,TInt,TInt,TInt,TInt)
CFbsDevice::SizeInPixels()const
CFbsDevice::TruncateRect(TRect &)
CFbsDevice::TypefaceSupport(TTypefaceSupport &,TInt)const
CFbsDevice::~CFbsDevice()
Private Attributes
TInt iScreenNo
TInt iSpare1_CFbsScreenDevice
TInt iSpare2_CFbsScreenDevice
Inherited Attributes
CFbsDevice::iBitBltMaskedBuffer
CFbsDevice::iDrawDevice
CFbsDevice::iFbs
CFbsDevice::iGraphicsAccelerator
CFbsDevice::iOrientation
CFbsDevice::iScreenDevice
CFbsDevice::iSpare
CFbsDevice::iTypefaceStore

Constructor & Destructor Documentation

CFbsScreenDevice(TInt)

CFbsScreenDevice(TIntaScreenNo)[private]

Parameters

TInt aScreenNo

~CFbsScreenDevice()

IMPORT_C~CFbsScreenDevice()[virtual]

Member Functions Documentation

Bits()

IMPORT_C const TUint32 *Bits()const

CancelSprite()

IMPORT_C voidCancelSprite()const [virtual]

This method has been deprecated. Sprites are no longer supported in BitGDI. Calling this method has no effect.

ChangeScreenDevice(CFbsScreenDevice *)

IMPORT_C voidChangeScreenDevice(CFbsScreenDevice *aOldDevice)

Parameters

CFbsScreenDevice * aOldDevice

ConstructL(TInt, TDisplayMode)

voidConstructL(TIntaScreenNo,
TDisplayModeaDispMode
)[private]

Parameters

TInt aScreenNo
TDisplayMode aDispMode

DeviceOrientation()

IMPORT_C TDeviceOrientationDeviceOrientation()const

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.

DeviceOrientationsAvailable()

IMPORT_C TUintDeviceOrientationsAvailable()const

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.

DrawSpriteBegin()

IMPORT_C voidDrawSpriteBegin()

DrawSpriteEnd()

IMPORT_C voidDrawSpriteEnd()

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.

GetSurface(TSurfaceId &)

IMPORT_C voidGetSurface(TSurfaceId &aSurface)const

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.

Parameters

TSurfaceId & aSurface

HardwareBitmap()

IMPORT_C RHardwareBitmapHardwareBitmap()

HideSprite()

IMPORT_C TSpriteBase *HideSprite()const [virtual]

This method has been deprecated. Sprites are no longer supported in BitGDI. Calling this method has no effect. TSpriteBase* NULL.

HideSprite(const TRect &, const TRegion *)

IMPORT_C TSpriteBase *HideSprite(const TRect &,
const TRegion *
)const [virtual]

This method has been deprecated. Sprites are no longer supported in BitGDI. Calling this method has no effect. TSpriteBase* NULL.

Parameters

const TRect &
const TRegion *

HorizontalPixelsToTwips(TInt)

IMPORT_C TIntHorizontalPixelsToTwips(TIntaPixels)const

Parameters

TInt aPixels

HorizontalTwipsToPixels(TInt)

IMPORT_C TIntHorizontalTwipsToPixels(TIntaTwips)const

Parameters

TInt aTwips

NewL(const TDesC &, TDisplayMode)

IMPORT_C CFbsScreenDevice *NewL(const TDesC &aLibname,
TDisplayModeaDispMode
)[static]

Parameters

const TDesC & aLibname
TDisplayMode aDispMode

NewL(const TDesC &, TDisplayMode, TRgb)

IMPORT_C CFbsScreenDevice *NewL(const TDesC &aLibname,
TDisplayModeaDispMode,
TRgbaWhite
)[static]

Parameters

const TDesC & aLibname
TDisplayMode aDispMode
TRgb aWhite

NewL(TInt, TDisplayMode)

IMPORT_C CFbsScreenDevice *NewL(TIntaScreenNo,
TDisplayModeaDispMode
)[static]

Parameters

TInt aScreenNo
TDisplayMode aDispMode

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.

ScreenNo()

IMPORT_C TIntScreenNo()const

SetAutoUpdate(TBool)

IMPORT_C voidSetAutoUpdate(TBoolaValue)

Parameters

TBool aValue

SetDeviceOrientation(TDeviceOrientation)

IMPORT_C TBoolSetDeviceOrientation(TDeviceOrientationaOrientation)const

WARNING: Function for internal use ONLY. Compatibility is not guaranteed in future releases.

Parameters

TDeviceOrientation aOrientation

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.

ShowSprite(TSpriteBase *)

IMPORT_C voidShowSprite(TSpriteBase *)const [virtual]

This method has been deprecated. Sprites are no longer supported in BitGDI. Calling this method has no effect.

Parameters

TSpriteBase *

ShowSprite(TSpriteBase *, const TRect &, const TRegion *)

IMPORT_C voidShowSprite(TSpriteBase *,
const TRect &,
const TRegion *
)const [virtual]

This method has been deprecated. Sprites are no longer supported in BitGDI. Calling this method has no effect.

Parameters

TSpriteBase *
const TRect &
const TRegion *

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

Stride()

IMPORT_C TIntStride()const

Update()

IMPORT_C voidUpdate()

Update(const TRegion &)

IMPORT_C voidUpdate(const TRegion &aRegion)

Parameters

const TRegion & aRegion

VerticalPixelsToTwips(TInt)

IMPORT_C TIntVerticalPixelsToTwips(TIntaPixels)const

Parameters

TInt aPixels

VerticalTwipsToPixels(TInt)

IMPORT_C TIntVerticalTwipsToPixels(TIntaTwips)const

Parameters

TInt aTwips

Member Data Documentation

TInt iScreenNo

TInt iScreenNo[private]

TInt iSpare1_CFbsScreenDevice

TInt iSpare1_CFbsScreenDevice[private]

TInt iSpare2_CFbsScreenDevice

TInt iSpare2_CFbsScreenDevice[private]