wxVListBox: add GetCurrent()/SetCurrent() accessors
This commit is contained in:
parent
8967bed190
commit
89e78831f7
2 changed files with 23 additions and 0 deletions
|
|
@ -95,6 +95,12 @@ public:
|
|||
bool IsCurrent() const { return wxVScrolledWindow::IsCurrent(); }
|
||||
#endif
|
||||
|
||||
// get current item
|
||||
int GetCurrent() const { return m_current; }
|
||||
|
||||
// set current item
|
||||
void SetCurrent(int current) { DoSetCurrent(current); }
|
||||
|
||||
// is this item selected?
|
||||
bool IsSelected(size_t item) const;
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue