List view & friend items selection.
More...
#include <CListViewSelection.h>
List view & friend items selection.
Allows CListView to work with one or few selected rows without scanning through all the rows in list view for selected rows.
◆ CSelection()
sptk::CSelection::CSelection |
( |
| ) |
|
|
inline |
◆ ~CSelection()
sptk::CSelection::~CSelection |
( |
| ) |
|
|
inline |
◆ clear()
void sptk::CSelection::clear |
( |
| ) |
|
Removes all rows from the selection list
◆ deselect()
Deselects a row and removes it from the selection list
◆ deselectAll()
void sptk::CSelection::deselectAll |
( |
| ) |
|
Deselects all the rows in the selection list and empties the list
◆ findCaption()
Finds an item with a particular caption. Returns NULL if not found.
- Parameters
-
caption | CString, item caption (a string in the first column) |
◆ findKey()
Finds an item with a particular key value. Returns NULL if not found.
- Parameters
-
◆ operator[]()
Element access to the selection, const version only
- Parameters
-
index | int, index in the selection list |
◆ remove()
Removes the row from the selection list
◆ select()
Selects a row and adds it to the selection list
◆ size()
uint32_t sptk::CSelection::size |
( |
| ) |
const |
|
inline |
Returns the number of selected rows
The documentation for this class was generated from the following file: