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

MFrameBuffer Class Reference

Direct TomTom GO FrameBuffer access interface. More...

#include <MFrameBuffer.h>

Inheritance diagram for MFrameBuffer:

MVirtualScreen List of all members.

Public Member Functions

virtual char * GetScreenBuffer ()=0
 Returns the pointer to physical FrameBuffer.

virtual unsigned int GetWidth ()=0
 Returns the width of FrameBuffer screen in pixels.

virtual unsigned int GetHeight ()=0
 Returns the height of FrameBuffer screen in pixels.

virtual unsigned int GetBitsPerPixel ()=0
 Returns the number of bits used by each pixel For more information about pixel modes, refer to GetScreenBuffer() documentation.

virtual unsigned int GetPixelAddressOffset (unsigned int aX, unsigned int aY)=0
 Returns the offset of pixel with given coordinates.

unsigned int GetScreenBufferSize ()
 Returns the size of FrameBuffer in bytes.


Static Public Member Functions

MFrameBufferGetFrameBuffer ()
 Returns the reference to only and only one FrameBuffer interface for current device.


Detailed Description

Direct TomTom GO FrameBuffer access interface.

This interface provides direct access to the TomTom GO FrameBuffer Only one instance of this interface is permitted. The reference to this instance could be obtained via static GetFrameBuffer() method of this interface


Member Function Documentation

virtual unsigned int MFrameBuffer::GetPixelAddressOffset unsigned int  aX,
unsigned int  aY
[pure virtual]
 

Returns the offset of pixel with given coordinates.

This method was introduced in order to map logical coordinates that start from top left corner into physical device addresses

virtual char* MFrameBuffer::GetScreenBuffer  )  [pure virtual]
 

Returns the pointer to physical FrameBuffer.

The available size and physical structure of FrameBuffer depends from actual device.

  • 16bpp device
    1. Every pixel is represented by 2 bytes bit string
    2. RED component: bits 15 - 11
    3. GREEN component: bits 10 - 5
    4. BLUE component: bits 4 - 0

Every change to the memory pointed by returned pointer immediately is reflected on the screen, even if another application is currently active.


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