wxVListBox: add GetCurrent()/SetCurrent() accessors

This commit is contained in:
Bill Su 2024-01-11 00:47:04 -05:00
parent 8967bed190
commit 89e78831f7
2 changed files with 23 additions and 0 deletions

View file

@ -183,6 +183,23 @@ public:
*/
bool IsCurrent(size_t item) const;
/**
Get the current item or @c wxNOT_FOUND if there is no
current item.
@since 3.2.5
*/
int GetCurrent() const;
/**
Set the specified item as the current item, if it is wxNOT_FOUND
the current item is unset. The current item will be automatically
scrolled into view if it isn't currently visible.
@since 3.2.5
*/
void SetCurrent(int current);
/**
Returns @true if this item is selected, @false otherwise.
*/