MWsScreenDevice Class Reference

class MWsScreenDevice : public MWsObjectProvider

Render Stage Screen Device abstraction.

Render Stages provide this interface as an abstraction of the target screen. The screen may not be pixel based, in which case read back of pixel data may not be a reflection of what appears on the screen. The screen might also only be partially readable, for example external video surfaces may be blanked out when a read back is done. The intention of the CopyScreenToBitmap methods is to provide a means to obtain a snapshot of the entire screen for architectures where a composition of the screen can be done once followed by a read back of the entire screen, as opposed to servicing a sequence of GetScanLine calls which may be prohibitively expensive.

Inherits from

Member Functions Documentation

ClearDisplay(TRgb)

void ClearDisplay ( TRgb aBackColor ) [pure virtual]

Parameters

TRgb aBackColor

CopyScreenToBitmapL(CFbsBitmap *, const TRect &)

void CopyScreenToBitmapL ( CFbsBitmap * aBitmap,
const TRect & aRect
) const [pure virtual]

Parameters

CFbsBitmap * aBitmap
const TRect & aRect

DECLARE_WS_TYPE_ID(KMWsScreenDevice)

DECLARE_WS_TYPE_ID ( KMWsScreenDevice ) const [pure virtual]

Parameters

KMWsScreenDevice

DisplayMode()

TDisplayMode DisplayMode ( ) const [pure virtual]

GetPixel(TRgb &, const TPoint &)

void GetPixel ( TRgb & aColor,
const TPoint & aPixel
) const [pure virtual]

Parameters

TRgb & aColor
const TPoint & aPixel

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

void GetScanLine ( TDes8 & aScanLine,
const TPoint & aStartPixel,
TInt aPixelLength,
TDisplayMode aDispMode
) const [pure virtual]

Parameters

TDes8 & aScanLine
const TPoint & aStartPixel
TInt aPixelLength
TDisplayMode aDispMode

PointerRect()

TRect PointerRect ( ) const [pure virtual]

RectCompare(const TRect &, const TRect &)

TBool RectCompare ( const TRect & aRect1,
const TRect & aRect2
) const [pure virtual]

Parameters

const TRect & aRect1
const TRect & aRect2

SizeInPixels()

TSize SizeInPixels ( ) const [pure virtual]

SizeInTwips()

TSize SizeInTwips ( ) const [pure virtual]