📄 ceguimulticolumnlist.h
字号:
void removeColumnWithID(uint col_id);
/*!
\brief
Move the column at index \a col_idx so it is at index \a position.
\param col_idx
Zero based index of the column to be moved.
\param position
Zero based index of the new position for the column.
\return
Nothing.
\exception InvalidRequestException thrown if \a col_idx is invalid.
*/
void moveColumn(uint col_idx, uint position);
/*!
\brief
Move the column with ID \a col_id so it is at index \a position.
\param col_id
ID code of the column to be moved.
\param position
Zero based index of the new position for the column.
\return
Nothing.
\exception InvalidRequestException thrown if no column with \a col_id is available on this list box.
*/
void moveColumnWithID(uint col_id, uint position);
/*!
\brief
Add an empty row to the list box.
\param row_id
ID code to be assigned to the new row.
\note
If the list is being sorted, the new row will appear at an appropriate position according to the sorting being
applied. If no sorting is being done, the new row will appear at the bottom of the list.
\return
Initial zero based index of the new row.
*/
uint addRow(uint row_id = 0);
/*!
\brief
Add a row to the list box, and set the item in the column with ID \a col_id to \a item.
\note
If the list is being sorted, the new row will appear at an appropriate position according to the sorting being
applied. If no sorting is being done, the new row will appear at the bottom of the list.
\param item
Pointer to a ListboxItem to be used as the initial contents for the column with ID \a col_id.
\param col_id
ID code of the column whos initial item is to be set to \a item.
\param row_id
ID code to be assigned to the new row.
\return
Initial zero based index of the new row.
\exception InvalidRequestException thrown if no column with the specified ID is attached to the list box.
*/
uint addRow(ListboxItem* item, uint col_id, uint row_id = 0);
/*!
\brief
Insert an empty row into the list box.
\note
If the list is being sorted, the new row will appear at an appropriate position according to the sorting being
applied. If no sorting is being done, the new row will appear at the specified index.
\param row_idx
Zero based index where the row should be inserted. If this is greater than the current number of rows, the row is
appended to the list.
\param row_id
ID code to be assigned to the new row.
\return
Zero based index where the row was actually inserted.
*/
uint insertRow(uint row_idx, uint row_id = 0);
/*!
\brief
Insert a row into the list box, and set the item in the column with ID \a col_id to \a item.
\note
If the list is being sorted, the new row will appear at an appropriate position according to the sorting being
applied. If no sorting is being done, the new row will appear at the specified index.
\param item
Pointer to a ListboxItem to be used as the initial contents for the column with ID \a col_id.
\param col_id
ID code of the column whos initial item is to be set to \a item.
\param row_idx
Zero based index where the row should be inserted. If this is greater than the current number of rows, the row is
appended to the list.
\param row_id
ID code to be assigned to the new row.
\return
Zero based index where the row was actually inserted.
\exception InvalidRequestException thrown if no column with the specified ID is attached to the list box.
*/
uint insertRow(ListboxItem* item, uint col_id, uint row_idx, uint row_id = 0);
/*!
\brief
Remove the list box row with index \a row_idx. Any ListboxItem in row \a row_idx using autoDelete mode will be deleted.
\param row_idx
Zero based index of the row to be removed.
\return
Nothing.
\exception InvalidRequestException thrown if \a row_idx is invalid.
*/
void removeRow(uint row_idx);
/*!
\brief
Set the ListboxItem for grid reference \a position.
\param item
Pointer to the ListboxItem to be set at \a position.
\param position
MCLGridRef describing the grid reference of the item to be set.
\return
Nothing.
\exception InvalidRequestException thrown if \a position contains an invalid grid reference.
*/
void setItem(ListboxItem* item, const MCLGridRef& position);
/*!
\brief
Set the ListboxItem for the column with ID \a col_id in row \a row_idx.
\param item
Pointer to the ListboxItem to be set into the list.
\param col_id
ID code of the column to receive \a item.
\param row_idx
Zero based index of the row to receive \a item.
\return
Nothing.
\exception InvalidRequestException thrown if no column with ID \a col_id exists, or of \a row_idx is out of range.
*/
void setItem(ListboxItem* item, uint col_id, uint row_idx);
/*!
\brief
Set the selection mode for the list box.
\param sel_mode
One of the MultiColumnList::SelectionMode enumerated values specifying the selection mode to be used.
\return
Nothing.
\exception InvalidRequestException thrown if the value specified for \a sel_mode is invalid.
*/
void setSelectionMode(MultiColumnList::SelectionMode sel_mode);
/*!
\brief
Set the column to be used for the NominatedColumn* selection modes.
\param col_id
ID code of the column to be used in NominatedColumn* selection modes.
\return
Nothing.
\exception InvalidRequestException thrown if no column has ID code \a col_id.
*/
void setNominatedSelectionColumnID(uint col_id);
/*!
\brief
Set the column to be used for the NominatedColumn* selection modes.
\param col_idx
zero based index of the column to be used in NominatedColumn* selection modes.
\return
Nothing.
\exception InvalidRequestException thrown if \a col_idx is out of range.
*/
void setNominatedSelectionColumn(uint col_idx);
/*!
\brief
Set the row to be used for the NominatedRow* selection modes.
\param row_idx
zero based index of the row to be used in NominatedRow* selection modes.
\return
Nothing.
\exception InvalidRequestException thrown if \a row_idx is out of range.
*/
void setNominatedSelectionRow(uint row_idx);
/*!
\brief
Set the sort direction to be used.
\param direction
One of the ListHeaderSegment::SortDirection enumerated values specifying the sort direction to be used.
\return
Nothing.
*/
void setSortDirection(ListHeaderSegment::SortDirection direction);
/*!
\brief
Set the column to be used as the sort key.
\param col_idx
Zero based index of the column to use as the key when sorting the list items.
\return
Nothing.
\exception InvalidRequestException thrown if col_idx is out of range.
*/
void setSortColumn(uint col_idx);
/*!
\brief
Set the column to be used as the sort key.
\param col_id
ID code of the column to use as the key when sorting the list items.
\return
Nothing.
\exception InvalidRequestException thrown if col_id is invalid for this list box.
*/
void setSortColumnByID(uint col_id);
/*!
\brief
Set whether the vertical scroll bar should always be shown, or just when needed.
\param setting
- true to have the vertical scroll bar shown at all times.
- false to have the vertical scroll bar appear only when needed.
\return
Nothing.
*/
void setShowVertScrollbar(bool setting);
/*!
\brief
Set whether the horizontal scroll bar should always be shown, or just when needed.
\param setting
- true to have the horizontal scroll bar shown at all times.
- false to have the horizontal scroll bar appear only when needed.
\return
Nothing.
*/
void setShowHorzScrollbar(bool setting);
/*!
\brief
Removed the selected state from any currently selected ListboxItem attached to the list.
\return
Nothing.
*/
void clearAllSelections(void);
/*!
\brief
Sets or clears the selected state of the given ListboxItem which must be attached to the list.
\note
Depending upon the current selection mode, this may cause other items to be selected, other
items to be deselected, or for nothing to actually happen at all.
\param item
Pointer to the attached ListboxItem to be affected.
\param state
- true to put the ListboxItem into the selected state.
- false to put the ListboxItem into the de-selected state.
\return
Nothing.
\exception InvalidRequestException thrown if \a item is not attached to the list box.
*/
void setItemSelectState(ListboxItem* item, bool state);
/*!
\brief
Sets or clears the selected state of the ListboxItem at the given grid reference.
\note
Depending upon the current selection mode, this may cause other items to be selected, other
items to be deselected, or for nothing to actually happen at all.
\param grid_ref
MCLGridRef object describing the position of the item to be affected.
\param state
- true to put the ListboxItem into the selected state.
- false to put the ListboxItem into the de-selected state.
\return
Nothing.
\exception InvalidRequestException thrown if \a grid_ref is invalid for this list box.
*/
void setItemSelectState(const MCLGridRef& grid_ref, bool state);
/*!
\brief
Inform the list box that one or more attached ListboxItems have been externally modified, and
the list should re-sync its internal state and refresh the display as needed.
\return
Nothing.
*/
void handleUpdatedItemData(void);
/*!
\brief
Set the width of the specified column header (and therefore the column itself).
\param col_idx
Zero based column index of the column whos width is to be set.
\param width
UDim value specifying the new width for the column.
\return
Nothing.
\exception InvalidRequestException thrown if \a column is out of range.
*/
void setColumnHeaderWidth(uint col_idx, const UDim& width);
/*!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -