CFx SDK Documentation
2023 SP0
|
#include <FxUIListBox.h>
Additional Inherited Members | |
Public Types inherited from CFxUIBaseView | |
enum | TextAlignment { AlignLeft = 0x0001 , AlignRight = 0x0002 , AlignHCenter = 0x0004 , AlignJustify = 0x0008 , AlignTop = 0x0020 , AlignBottom = 0x0040 , AlignVCenter = 0x0080 , AlignBaseline = 0x0100 , AlignCenter = AlignVCenter | AlignHCenter } |
enum | FocusPolicyType { eNoFocus = 0 , eTabFocus = 0x1 , eClickFocus = 0x2 , eStrongFocus = eTabFocus | eClickFocus | 0x8 , eWheelFocus = eStrongFocus | 0x4 , eKeyboardOnSetfocus = 0x10 } |
enum | UIWidthSizePolicy { eXS = 0 , eS , eM , eL , eXL } |
Static Public Member Functions inherited from CFxUIBaseView | |
static void | setTabOrder (CFxUIObject *first, CFxUIObject *second) |
Protected Member Functions inherited from CFxUIObject | |
CFxUIObject * | sender () |
Protected Attributes inherited from CFxUIObject | |
CFxUIObjectImpl * | m_pImpl |
CFxUIObjectData * | m_pData |
Class CFxUIListBox provides a list of selectable, read-only items.
Definition at line 25 of file FxUIListBox.h.
CFxUIListBox::CFxUIListBox | ( | ) |
Constructor
CFxUIListBox::~CFxUIListBox | ( | ) |
Destructor
void CFxUIListBox::addItem | ( | const CFxUIString & | item | ) |
Add an item with the text label at the end of the list widget.
item | Input |
void CFxUIListBox::clear | ( | ) |
Removes all the items from the list box.
void CFxUIListBox::clearSelection | ( | ) |
Removes the selection from all selected items.
int CFxUIListBox::count | ( | ) | const |
Returns the total number of items in list.
int CFxUIListBox::currentRow | ( | ) | const |
Returns the current row in list box.
bool CFxUIListBox::isItemSelected | ( | int | index | ) |
Returns if item is selected at given index.
index |
const CFxUIString& CFxUIListBox::item | ( | int | index | ) |
Returns the item at given index.
index |
CFxUIVariant CFxUIListBox::itemData | ( | int | index | ) | const |
Returns item data at given index.
index |
CFxUISignal<void( const int& )>& CFxUIListBox::itemDoubleClicked | ( | ) |
Signal is emitted when item is double clicked.
void CFxUIListBox::removeItem | ( | int | index | ) |
Removes the item at given index.
index | Value for item which needs to be removed. |
int CFxUIListBox::row | ( | const CFxUIString & | ) | const |
Returns the row containing the given item.
item | Input. |
CFxUIStringList CFxUIListBox::selectedItems | ( | ) | const |
Returns list of all selected items in the list.
CFxUISignal<void( void )>& CFxUIListBox::selectionChanged | ( | ) |
Signal is emitted on selection changed.
Sets the icon on item present at given index.
index | Value for item at which icon is to be set. |
icon | Input. |
void CFxUIListBox::setItemData | ( | int | index, |
const CFxUIVariant & | data | ||
) |
Sets the data on item present at given index.
index | Value for item at which data is to be set. |
data | Input. |
void CFxUIListBox::setItemSelected | ( | int | index, |
bool | |||
) |
Sets the item selected at given index.
index | Input value to select. |
bSelect | Input. Item is selected if parameter is true. |
void CFxUIListBox::setItemText | ( | int | index, |
const CFxUIString & | sText | ||
) |
Sets the text of item at given index.
index | Value for item at which text is to be set. |
sText | Input. |
CFxUISignal<void(int)>& CFxUIListBox::valueChanged | ( | ) |
Signal is emitted value of item is changed.