mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
671 B
C++
28 lines
671 B
C++
#if defined(Hiro_ListView)
|
|
|
|
struct ListView;
|
|
struct mListView;
|
|
using sListView = shared_pointer<mListView>;
|
|
|
|
struct mListView : mTableView {
|
|
using type = mListView;
|
|
using mTableView::append;
|
|
using mTableView::remove;
|
|
|
|
mListView();
|
|
auto batched() const -> vector<ListViewItem>;
|
|
auto doToggle(ListViewItem) const -> void;
|
|
auto item(uint position) const -> ListViewItem;
|
|
auto items() const -> vector<ListViewItem>;
|
|
auto onToggle(const function<void (ListViewItem)>& callback) -> type&;
|
|
auto reset() -> type& override;
|
|
auto selected() const -> ListViewItem;
|
|
|
|
//private:
|
|
struct State {
|
|
function<void (ListViewItem)> onToggle;
|
|
} state;
|
|
};
|
|
|
|
#endif
|