#include <ggui/gui_listbox.h>
List of all members.
Detailed Description
The tcGuiListItem class holds information about items in a tcGuiListBox.
- See also:
- tcGuiListbox Page
Constructor & Destructor Documentation
tcGuiListItem::tcGuiListItem |
( |
| ) |
|
Default constructor - an empty list item.
Default constructor for a tcGuiListItem
MityDSP::tcGuiListItem::tcGuiListItem |
( |
const char * |
apString, |
|
|
tcGuiImage * |
apImage = NULL |
|
) |
| |
Construct an item with a label.
tcGuiListItem::~tcGuiListItem |
( |
| ) |
|
Destructor.
destructor - clean up string data, leave image alone as it belongs to the bench.
Member Function Documentation
Assignment operator.
Assignment operator for list items. Copies the string data, keeps the image as a pointer to the source image as images belong to the bench.
- Parameters:
-
[in] | arOther | RHS of assignment |
- Returns:
- reference to the object (LHS)
void tcGuiListItem::SetText |
( |
const char * |
apString | ) |
|
Set the item text.
Set the text of the list item to the string passed in. memory is allocated and string copied.
- Parameters:
-
const char* MityDSP::tcGuiListItem::Text |
( |
| ) |
const |
|
inline |
Get the item text. Get the text of the item.
- Returns:
- pointer to internal string data.
void tcGuiListItem::SetSelected |
( |
bool |
abSelected | ) |
|
Set the selected state of the item.
Set the selected state of the list item.
- Parameters:
-
[in] | abSelected | true to select. |
bool MityDSP::tcGuiListItem::IsSelected |
( |
| ) |
const |
|
inline |
Get the item text. Get the selected state of the item.
- Returns:
- true if item is selected.
Member Data Documentation
char* MityDSP::tcGuiListItem::m_string |
|
protected |
bool MityDSP::tcGuiListItem::m_selected |
|
protected |
Image for the item (not used)