MWsBackBuffer Class Reference

class MWsBackBuffer : public MWsObjectProvider

Wserv flickerfree buffer access

Inherits from

Member Functions Documentation

GetBitGc()

CFbsBitGc *GetBitGc()[pure virtual]

Get default wserv flickerfree buffer drawing context. This will always return the original context not the current context (e.g. not the redirecting context when it is redirected).

GetBitGcCurrent()

CFbsBitGc *GetBitGcCurrent()[pure virtual]

Get current wserv flickerfree buffer drawing context. This will return the redirected context when it is set.

GetBitmap()

CFbsBitmap *GetBitmap()[pure virtual]

Get wserv flickerfree buffer bitmap

Observer()

MWsFlickerFreeBufferObserver *Observer()[pure virtual]

This returns the observer set by SetObserver.

RedirectTo(MWsBackBuffer *)

TInt RedirectTo(MWsBackBuffer *aTarget)[pure virtual]

Redirects drawing to another back buffer. Target back buffer must provide bitmap and drawing context which has been activated on a bitmap device.

Parameters

MWsBackBuffer * aTargetTarget back buffer where drawing is redirected to. If it is NULL the redirection will be terminated.

SetBitGc(CFbsBitGc *)

TInt SetBitGc(CFbsBitGc *aBitGc)[pure virtual]

Set wserv flickerfree buffer drawing context to redirect its drawing output. Drawing context must have been activated on a device prior calling this function.

Parameters

CFbsBitGc * aBitGcThe context where flickerfree buffer drawing output is redirected to. If it is NULL the redirection will be cancelled and default drawing context will be restored.

SetObserver(MWsFlickerFreeBufferObserver *)

voidSetObserver(MWsFlickerFreeBufferObserver *aObserver)[pure virtual]

Sets the back buffers observer. The observer will be called just before and just after each complete sequence of drawing to the back buffer.

Parameters

MWsFlickerFreeBufferObserver * aObserverThe observer handling the callbacks