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

CUIBitmap Class Reference

CUIBitmap behaves like CUILabel but additionally it can display an image on the top of its title More...

#include <CUIBitmap.h>

Inheritance diagram for CUIBitmap:

CUILabel MUIWidget List of all members.

Public Types

typedef unsigned int EBitmapOptions
enum  EBitmapOption { KFreeBitmap = 0x01, KCenterBitmapX = 0x02, KCenterBitmapY = 0x04, KDefaultOptions = KFreeBitmap | KCenterBitmapX }

Public Member Functions

 CUIBitmap (const CUIRect &aRectangle, const char *aTitle, MImage *aImage)
 Creates CUIBitmap object.

virtual void Draw ()
 Draws this widget on the virtual screen.


Public Attributes

MImageiImage
EBitmapOptions iOptions

Detailed Description

CUIBitmap behaves like CUILabel but additionally it can display an image on the top of its title

The image transparency depends from the image and the title is always drawn as CUILabel does.

Normally, CUIBitmap deletes its iImage unless KFreeBitmap flag is reset in its iOptions.


Member Typedef Documentation

typedef unsigned int CUIBitmap::EBitmapOptions
 

Drawing options set


Member Enumeration Documentation

enum CUIBitmap::EBitmapOption
 

Enumeration values:
KFreeBitmap  If set to 1, the CUIBitmap destructs its iImage upon deletion
KCenterBitmapX  Centers the bitmap horizontally in the iRectangle
KCenterBitmapY  Centers the bitmap vertically in the iRectangle
KDefaultOptions  Default options


Constructor & Destructor Documentation

CUIBitmap::CUIBitmap const CUIRect aRectangle,
const char *  aTitle,
MImage aImage
 

Creates CUIBitmap object.

Parameters:
aRectangle Position and size of the CUIBitmap
aTitle Text to display. Can be NULL
aImage Image to draw. Can be NULL The dimensions of the image should not be larger than the dimensions of bounding iRectangle


Member Function Documentation

virtual void CUIBitmap::Draw  )  [virtual]
 

Draws this widget on the virtual screen.

The library does not provide any clipping mechanism, so the widget is completely responsible for drawing in its iRectangle. If the widget should be drawn fully or partially transparently over its iParent, it should call iParent->RestoreBackground() for every transparent region

Reimplemented from CUILabel.


Member Data Documentation

MImage* CUIBitmap::iImage
 

Pointer to image to draw

EBitmapOptions CUIBitmap::iOptions
 

Drawing options


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