MTestScreenCapture Class Reference

class MTestScreenCapture

Window Server client interface for screen capture.

All functions in MTestScreenCapture will automatically flush the client-server session buffer as part of their behavior.

Public Member Functions
TInt ComposeScreen (const CFbsBitmap &)
TInt GetCompositedSize ( TSize &)
TInt TranslateExtent (const TRect &, TRect &)
Public Member Enumerations
enum anonymous { KUidTestScreenCaptureIf  = 0x10286504, ETypeId  = KUidTestScreenCaptureIf }
enum TWsTestScreenCaptureOpcodes { EWsScsInvalid  = 0x00000000, EWsScsScreenCompose  = 0x00000001, EWsScsTranslateExtent  = 0x00000002 }

Member Functions Documentation

ComposeScreen(const CFbsBitmap &)

TInt ComposeScreen ( const CFbsBitmap & aBitmap ) const [pure virtual]

Retrieves the composited screen content. A new composition is initiated and the result is copied in the bitmap created by user. The only bitmap mode supported is EColor16MU.

This function always causes a flush of the window server buffer.

Parameters

const CFbsBitmap & aBitmap retturns the composited screen content.

GetCompositedSize(TSize &)

TInt GetCompositedSize ( TSize & aSize ) const [pure virtual]

Retrieves the size of the composition area in pixels.

This function always causes a flush of the window server buffer.

Parameters

TSize & aSize returns the composition area size

TranslateExtent(const TRect &, TRect &)

TInt TranslateExtent ( const TRect & aSource,
TRect & aTarget
) const [pure virtual]

Maps the source rectangle from application coordinate space to a target coordinate space. Since there may be scaling involved, the target rectangle may be larger or smaller than the source one, or even become empty.

This function always causes a flush of the window server buffer.

Parameters

const TRect & aSource source rectangle
TRect & aTarget target rectangle to be filled in

Member Enumerations Documentation

Enum anonymous

Enumerators

KUidTestScreenCaptureIf = 0x10286504
ETypeId = KUidTestScreenCaptureIf

Enum TWsTestScreenCaptureOpcodes

Enumerators

EWsScsInvalid = 0x00000000
EWsScsScreenCompose = 0x00000001
EWsScsTranslateExtent = 0x00000002