Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

MVirtualScreen Class Reference

Represents the virtual screen manager for drawing operations. More...

#include <MVirtualScreen.h>

Inheritance diagram for MVirtualScreen:

MFrameBuffer List of all members.

Public Member Functions

 MVirtualScreen ()
 Default constructor.

virtual void FlushVirtualBuffer (bool aOnlyIfActive=true)=0
 Copies the data from virtual buffer to device physical frame buffer. If the update succeeds, generates FiredScreenRefreshEvent() event.

virtual void FlushFrameBuffer (bool aOnlyIfActive=true)=0
 Copies the data from physical device frame buffer to virtual buffer. If the update succeeds, generates FiredScreenRefreshEvent() event.

virtual char * GetFrameBuffer ()=0
 Returns the reference to underlaying physical MFrameBuffer of current device.


Static Public Member Functions

MVirtualScreenGetVirtualScreen ()
 Returns the reference to the default MVirtualScreen This reference is used by upper library layers.


Public Attributes

MVirtualScreenEventsiEvents

Detailed Description

Represents the virtual screen manager for drawing operations.

This interface manages the shadow virtual buffer associated with the primary MFrameBuffer All the upper library layers are using virtual screen for drawing. Virtual screen could be flushed to the underlying FrameBuffer at any appropriate moment However, the real flushing takes place only if this application is active so it will not spoil the output of other applications

Application could have as many virtual buffers as necessary. However, the upper library layers are using the default MVirtualScreen returned by static GetVirtualScreen() method of this class


Member Function Documentation

virtual void MVirtualScreen::FlushFrameBuffer bool  aOnlyIfActive = true  )  [pure virtual]
 

Copies the data from physical device frame buffer to virtual buffer. If the update succeeds, generates FiredScreenRefreshEvent() event.

Parameters:
aOnlyIfActive If set to true, updates the virtual buffer only if the application is currently active.

virtual void MVirtualScreen::FlushVirtualBuffer bool  aOnlyIfActive = true  )  [pure virtual]
 

Copies the data from virtual buffer to device physical frame buffer. If the update succeeds, generates FiredScreenRefreshEvent() event.

Parameters:
aOnlyIfActive If set to true, updates the physical frame buffer only if the application is currently active.


Member Data Documentation

MVirtualScreenEvents* MVirtualScreen::iEvents
 

A pointer to observer for MVirtualScreenEvents


The documentation for this class was generated from the following file:
Generated on Fri Jul 15 16:46:44 2005 for TomTom GO User Interface library by doxygen 1.3.5