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

CUICheckListBox Class Reference

A List Box that contains a number of CUICheckBox. More...

#include <UIListBoxes.h>

Inheritance diagram for CUICheckListBox:

CUIListBox CUIWidgetGroup MUIWidget List of all members.

Public Member Functions

 CUICheckListBox (const CUIRect &aRectangle, const char *aTitle=NULL, MUIWidgetEvents *aObserver=NULL)
 Constructs the CUICheckListBox object.

virtual unsigned int GetItemsNumber ()
 Returns the number of items in the ListBox.

virtual unsigned int GetItemHeight (unsigned int aItemIndex)
 Returns the height of item with given index.

virtual void DrawItem (unsigned int aItemIndex, CUIRect &aRect)
 Draws specified item in a given rectangle.

bool AddCheckBox (const char *aTitle)
 Adds a new CUICheckBox to the List Box.

bool IsChecked (unsigned int aIndex)
 Returns true if Check Box with specified index is checked.

void SetChecked (unsigned int aIndex, bool aChecked)
 Sets the check state of Check Box with specified index.

const char * GetItemTitle (unsigned int aIndex)
 Returns title of Check Box with given index.

void SetItemTitle (unsigned int aIndex, const char *aTitle)
 Sets the title of Check Box with given index.


Detailed Description

A List Box that contains a number of CUICheckBox.


Member Function Documentation

bool CUICheckListBox::AddCheckBox const char *  aTitle  ) 
 

Adds a new CUICheckBox to the List Box.

Parameters:
aTitle Title for new Radio Button. Can not be NULL

virtual unsigned int CUICheckListBox::GetItemHeight unsigned int  aItemIndex  )  [virtual]
 

Returns the height of item with given index.

If KConstItemHeight is among the iOptions only GetItemHeight(0) is called by the CUIListBox. GetItemHeight( 0 ) is also called from the CalculateParameters() so the derived class must be ready to return a correct value even if the ListBox contains no items yet.

Implements CUIListBox.


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