mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 23:39:41 +00:00
Added ListOverlay::SetSelectedIndex
This commit is contained in:
parent
a2d95a6698
commit
76fbc5e6bd
@ -107,6 +107,11 @@ ListOverlay& ListOverlay::SetAdapter(IScrollAdapterPtr adapter) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
ListOverlay& ListOverlay::SetSelectedIndex(size_t index) {
|
||||
this->listWindow->SetSelectedIndex(index);
|
||||
return *this;
|
||||
}
|
||||
|
||||
ListOverlay& ListOverlay::SetItemSelectedCallback(ItemSelectedCallback cb) {
|
||||
this->itemSelectedCallback = cb;
|
||||
return *this;
|
||||
|
@ -56,6 +56,7 @@ namespace cursespp {
|
||||
ListOverlay& SetTitle(const std::string& title);
|
||||
ListOverlay& SetAdapter(IScrollAdapterPtr adapter);
|
||||
ListOverlay& SetItemSelectedCallback(ItemSelectedCallback cb);
|
||||
ListOverlay& SetSelectedIndex(size_t index);
|
||||
|
||||
virtual void Layout();
|
||||
virtual bool KeyPress(const std::string& key);
|
||||
|
Loading…
Reference in New Issue
Block a user