#include <ggui/gui_listbox.h>
Public Member Functions | |
tcGuiListItem () | |
Default constructor - an empty list item. | |
tcGuiListItem (const char *apString, tcGuiImage *apImage=NULL) | |
Construct an item with a label. | |
tcGuiListItem (const tcGuiListItem &arOther) | |
Copy constuctor. | |
tcGuiListItem & | operator= (const tcGuiListItem &arOther) |
Assignment operator. | |
~tcGuiListItem () | |
Destructor. | |
void | SetText (const char *apString) |
Set the item text. | |
const char * | Text () const |
Get the item text. Get the text of the item. | |
void | SetSelected (bool abSelected) |
Set the selected state of the item. | |
bool | IsSelected () const |
Get the item text. Get the selected state of the item. | |
Protected Attributes | |
char * | m_string |
Item text. | |
bool | m_selected |
Is the item selected. | |
tcGuiImage * | m_image |
Image for the item (not used). |
The tcGuiListItem class holds information about items in a tcGuiListBox.
MityDSP::tcGuiListItem::tcGuiListItem | ( | ) |
Default constructor - an empty list item.
MityDSP::tcGuiListItem::tcGuiListItem | ( | const char * | apString, | |
tcGuiImage * | apImage = NULL | |||
) |
Construct an item with a label.
MityDSP::tcGuiListItem::tcGuiListItem | ( | const tcGuiListItem & | arOther | ) |
Copy constuctor.
MityDSP::tcGuiListItem::~tcGuiListItem | ( | ) |
Destructor.
tcGuiListItem& MityDSP::tcGuiListItem::operator= | ( | const tcGuiListItem & | arOther | ) |
Assignment operator.
void MityDSP::tcGuiListItem::SetText | ( | const char * | apString | ) |
Set the item text.
const char* MityDSP::tcGuiListItem::Text | ( | ) | const [inline] |
Get the item text. Get the text of the item.
void MityDSP::tcGuiListItem::SetSelected | ( | bool | abSelected | ) |
Set the selected state of the item.
bool MityDSP::tcGuiListItem::IsSelected | ( | ) | const [inline] |
Get the item text. Get the selected state of the item.
char* MityDSP::tcGuiListItem::m_string [protected] |
Item text.
bool MityDSP::tcGuiListItem::m_selected [protected] |
Is the item selected.
tcGuiImage* MityDSP::tcGuiListItem::m_image [protected] |
Image for the item (not used).