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

CUIBitmapButton Class Reference

A button that also draws a bitmap on top of its title. More...

#include <CUIBitmapButton.h>

Inheritance diagram for CUIBitmapButton:

CUIButton MUIWidget List of all members.

Public Types

typedef unsigned int EBitmapOptions
enum  EBitmapOption { KFreeBitmap = 0x01, KCenterBitmapX = 0x02, KCenterBitmapY = 0x04, KDefaultOptions = KFreeBitmap | KCenterBitmapX }
 Individual drawing options. More...


Public Member Functions

 CUIBitmapButton (const CUIRect &aRectangle, const char *aTitle, MUIWidgetEvents *aObserver, MImage *aImage)
 Constructs CUIBitmapButton object.

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


Public Attributes

MImageiImage
EBitmapOptions iOptions

Detailed Description

A button that also draws a bitmap on top of its title.

For more detailed description about the behaviour of this class refer to CUIButton


Member Typedef Documentation

typedef unsigned int CUIBitmapButton::EBitmapOptions
 

Drawing options set


Member Enumeration Documentation

enum CUIBitmapButton::EBitmapOption
 

Individual drawing options.

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

CUIBitmapButton::CUIBitmapButton const CUIRect aRectangle,
const char *  aTitle,
MUIWidgetEvents *  aObserver,
MImage aImage
 

Constructs CUIBitmapButton object.

Parameters:
aRectangle Position and size
aTitle Text to write on the button. Can be NULL
aObserver Observer for events. Can not 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 CUIBitmapButton::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 CUIButton.


Member Data Documentation

MImage* CUIBitmapButton::iImage
 

Pointer to image to draw.

EBitmapOptions CUIBitmapButton::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