helper for using of SelectionListLayerWrapper; suggested to use SelectionListLayerWrapper whenever it makes sense
More...
#include <_dd_misc.h>
|
| SelectionListLayerHelper (SelectionListDDLayer *selectionListLayer) |
|
SelectionListDDLayer * | getLayer () |
|
int | getOffset () |
|
int | getSelectionCount () |
|
void | setListStateChangedCallback (void(*listStateChangedCallback)(), int viewSelectionCount=-1) |
| set the "list state changed" callback; here "state" refers to "list add/remove text or change of offset"
|
|
int | add (int selectionIdx=-1) |
|
int | remove (int selectionIdx=-1) |
|
void | setOffset (int offset) |
|
void | decrementOffset () |
|
void | incrementOffset () |
|
void | scrollToView (int selectionIdx) |
|
|
void | onListStateChanged () |
|
helper for using of SelectionListLayerWrapper; suggested to use SelectionListLayerWrapper whenever it makes sense
◆ add()
int SelectionListLayerHelper::add |
( |
int |
selectionIdx = -1 | ) |
|
|
inline |
- Parameters
-
selectionIdx | -1 means append as the last selection |
- Returns
- -1 if selectionIdx is out of range
◆ remove()
int SelectionListLayerHelper::remove |
( |
int |
selectionIdx = -1 | ) |
|
|
inline |
- Parameters
-
selectionIdx | -1 means the last selection |
- Returns
- -1 if selectionIdx is out of range