summaryrefslogtreecommitdiff
path: root/desktop/treeview.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-07-01 11:47:46 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-07-01 11:47:46 +0100
commitdf1667bd58c95517a16109bca9fb1db0a0a518b5 (patch)
tree7bf6e6c2fc7cedd83c0e96da185e2bb2a2c0c388 /desktop/treeview.h
parent6599f415f7b31fd09320c02bac1c50247574ace3 (diff)
downloadnetsurf-df1667bd58c95517a16109bca9fb1db0a0a518b5.tar.gz
netsurf-df1667bd58c95517a16109bca9fb1db0a0a518b5.tar.bz2
Start keypress handling.
Diffstat (limited to 'desktop/treeview.h')
-rw-r--r--desktop/treeview.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/treeview.h b/desktop/treeview.h
index 2579d8553..9692d0aa7 100644
--- a/desktop/treeview.h
+++ b/desktop/treeview.h
@@ -27,6 +27,7 @@
#include <stdint.h>
#include "desktop/core_window.h"
+#include "desktop/textinput.h"
#include "utils/types.h"
struct treeview;
@@ -232,6 +233,15 @@ void treeview_redraw(struct treeview *tree, int x, int y, struct rect *clip,
const struct redraw_context *ctx);
/**
+ * Key press handling for treeviews.
+ *
+ * \param tree The treeview which got the keypress
+ * \param key The ucs4 character codepoint
+ * \return true if the keypress is dealt with, false otherwise.
+ */
+bool treeview_keypress(struct treeview *tree, uint32_t key);
+
+/**
* Handles all kinds of mouse action
*
* \param tree Treeview object