Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-12 12:12:53 +0000
committerStijn Buys <ingar@osirion.org>2012-02-12 12:12:53 +0000
commit130a23f483fe2e486e6d9d804b9d998c159fbcb0 (patch)
tree6360656b183866ec24476a79d9389a47a6ad60c1 /src/ui/listview.h
parentddee07454e4910a218ed58febe910904bd50ae57 (diff)
Scroll listview content by item count instead of by height,
enabled listview mousewheel scrolling.
Diffstat (limited to 'src/ui/listview.h')
-rw-r--r--src/ui/listview.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/ui/listview.h b/src/ui/listview.h
index b097184..b4c00dc 100644
--- a/src/ui/listview.h
+++ b/src/ui/listview.h
@@ -64,22 +64,29 @@ public:
* @brief sort child ListItems according to their sortkey
* Sort will fail with an assert error if the ListView
* contains any non-ListItem child widgets
- */
+ * */
void sort();
/**
* @brief reverse sort child ListItems according to their sortkey
* Sort will fail with an assert error if the ListView
* contains any non-ListItem child widgets
- */
+ * */
void sort_reverse();
protected:
virtual void resize();
- /// emit event handler
+ /**
+ * @brief emit event handler
+ * */
virtual bool on_emit(Widget *sender, const Event event, void *data);
+ /**
+ * @brief keypress event handler
+ * */
+ virtual bool on_keypress(const int key, const unsigned int modifier);
+
private:
float listview_scroll;