|
CFx SDK Documentation 2026 SP0
|
#include <FxUITableWidget.h>
Additional Inherited Members | |
Public Types inherited from CFxUITableView | |
| enum | UISelectionBehavior { SelectItems , SelectRows , SelectColumns } |
| enum | UISelectionMode { NoSelection , SingleSelection , MultiSelection , ExtendedSelection , ContiguousSelection } |
| enum | UIHeaderResizeMode { Interactive , Stretch , Fixed , ResizeToContents , Custom = Fixed } |
| enum | UISelectionFlag { NoUpdate = 0x0000 , Clear = 0x0001 , Select = 0x0002 , Deselect = 0x0004 , Rows = 0x0020 , Columns = 0x0040 , ClearAndSelect = Clear | Select } |
| enum | UIMouseClickEvent { None = 0 , Left = 1 , Middle = 2 , Right = 4 } |
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 { eExpanding = -1 , eXS = 0 , eS , eM , eL , eXL } |
| enum | UIScrollBarPolicy { eScrollBarAsNeeded = 0 , eScrollBarAlwaysOff , eScrollBarAlwaysOn } |
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 CFxUITableWidget provides a default model/view implementation of a table widget.
Definition at line 54 of file FxUITableWidget.h.
| CFxUITableWidget::CFxUITableWidget | ( | ) |
Constructor
| CFxUITableWidget::~CFxUITableWidget | ( | ) |
Destructor
| void CFxUITableWidget::clearContents | ( | ) |
Clears the contents, i.e. all visible entries are hidden afterwards. The items are not automatically deleted.
| int CFxUITableWidget::columnCount | ( | ) | const |
Gets the number of of columns available in the table widget.
| int CFxUITableWidget::currentRow | ( | ) | const |
Gets the current row which is set when clicked or tapped.
| std::vector< CFxUITableWidgetItem * > CFxUITableWidget::findItems | ( | CFxString | name, |
| FxUIMatchFlag | matchFlag ) |
Reserved for future use
| _name_ | name of items to search for. |
| _matchFlag_ | flags for searching. |
| CFxUITableWidgetItem * CFxUITableWidget::horizontalHeaderItem | ( | int | column | ) |
Gets the item displayed at the specified column of the horizontal header.
| _column_ | the 0-based index of the column used for the item. |
| void CFxUITableWidget::insertRow | ( | int | row | ) |
Inserts an empty row above of the specified row. The inserted row is at the end if it the specified row is the number of rows. The number of rows reserved for use is automatically incremented by 1.
| _row_ | the 0-based index of the first row to be moved down. |
| CFxUITableWidgetItem * CFxUITableWidget::item | ( | int | row, |
| int | column ) |
Gets the item currently set at the specified row and column.
| _row_ | the 0-based index of the row used for the item. |
| _column_ | the 0-based index of the column used for the item. |
| void CFxUITableWidget::removeRow | ( | int | row | ) |
Removes the specified row. Any items contained in the specified row are not automatically cleaned up and must be explicitly deleted beforehand if not referenced anymore. The number of rows reserved for use is automatically decremented by 1.
| _row_ | the 0-based index of the first row to be moved down. |
| int CFxUITableWidget::rowCount | ( | ) | const |
Gets the number of of row available in the table widget.
| void CFxUITableWidget::setColumnCount | ( | int | columns | ) |
Sets the number of of columns available for use in the table widget. This method reserves memory space for storing the required data. Setting items in a column larger than the specified value implicitly expands the reserved memory space.
| _columns_ | the number of columns to reserve. |
| void CFxUITableWidget::setCurrentCell | ( | int | row, |
| int | column ) |
Sets the current position to the specified row and column.
| _row_ | the 0-based index of the row. |
| _column_ | the 0-based index of the column. |
| void CFxUITableWidget::setHorizontalHeaderItem | ( | int | column, |
| CFxUITableWidgetItem * | item ) |
Sets an item in the horizontal header for the specified column. Any item that was previously displayed at the specified position is not automatically deleted.
| _column_ | the 0-based index of the column used for the item. |
| _item_ | the new item to be displayed at the specified position in the header. |
| void CFxUITableWidget::setItem | ( | int | row, |
| int | column, | ||
| CFxUITableWidgetItem * | item ) |
Sets the item at the specified row and column. Any item that was previously displayed at the specified position is not automatically deleted.
| _row_ | the 0-based index of the row used for the item. |
| _column_ | the 0-based index of the column used for the item. |
| _item_ | the new item to be displayed at the specified position. |
| void CFxUITableWidget::setRowCount | ( | int | rows | ) |
Sets the number of of rows available for use in the table widget. This method reserves memory space for storing the data. Setting items in a row larger than the specified value implicitly expands the reserved memory space.
| _rows_ | the number of rows to reserve. |