#include <clistdataitem.hxx>
Class representing a data item within a list. Intended for use within the CListData class.
Definition at line 103 of file clistdataitem.hxx.
◆ CListDataItem()
| CListDataItem::CListDataItem |
( |
const CNxString & |
text, |
|
|
const uint32_t |
value |
|
) |
| |
Constructor.
- Parameters
-
| text | The text to display in the item. |
| value | The value of the item. |
Definition at line 98 of file clistdataitem.cxx.
◆ ~CListDataItem()
| CListDataItem::~CListDataItem |
( |
void |
| ) |
|
|
virtual |
◆ compareTo()
Compare the item with another. Comparison is based on the text of the item. Returns 0 if the text in the two items is the same, a value less than 0 if this item is less than the argument, and a value greater than 0 if this item is greater than the argument.
- Parameters
-
| item | An item to compare this object with. |
- Returns
- 0 if the text in the two items is the same, a value less than 0 if this item is less than the argument, and a value greater than 0 if this item is greater than the argument.
Definition at line 125 of file clistdataitem.cxx.
◆ getText()
| const CNxString& NXWidgets::CListDataItem::getText |
( |
void |
| ) |
const |
|
inline |
◆ getValue()
| const uint32_t NXWidgets::CListDataItem::getValue |
( |
void |
| ) |
const |
|
inline |
◆ isSelected()
| const bool NXWidgets::CListDataItem::isSelected |
( |
void |
| ) |
const |
|
inline |
Get the item's selection state.
- Returns
- True if the item is selected; false if not.
Definition at line 155 of file clistdataitem.hxx.
◆ setSelected()
| void NXWidgets::CListDataItem::setSelected |
( |
bool |
selected | ) |
|
|
inline |
Set the item's selection state.
- Parameters
-
| selected | True to select the item; false to deselect it. |
Definition at line 166 of file clistdataitem.hxx.
◆ m_isSelected
| bool NXWidgets::CListDataItem::m_isSelected |
|
protected |
◆ m_text
◆ m_value
| uint32_t NXWidgets::CListDataItem::m_value |
|
protected |
The documentation for this class was generated from the following files: