summaryrefslogtreecommitdiff
path: root/textscreen/txt_table.h
diff options
context:
space:
mode:
authorSimon Howard2009-08-27 23:27:47 +0000
committerSimon Howard2009-08-27 23:27:47 +0000
commitec81c27ef5af20761afb2295cdd7c92b213a5807 (patch)
treefb106b5be3eb95ccfba5f39d498ea301cee910f3 /textscreen/txt_table.h
parent1715116ef17946f1c77fb2da220384e7889f1329 (diff)
downloadchocolate-doom-ec81c27ef5af20761afb2295cdd7c92b213a5807.tar.gz
chocolate-doom-ec81c27ef5af20761afb2295cdd7c92b213a5807.tar.bz2
chocolate-doom-ec81c27ef5af20761afb2295cdd7c92b213a5807.zip
Allow PGUP/PGDN to scroll up and down in scroll panes (thanks
LionsPhil). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1631
Diffstat (limited to 'textscreen/txt_table.h')
-rw-r--r--textscreen/txt_table.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/textscreen/txt_table.h b/textscreen/txt_table.h
index 0e7fbe94..0166abee 100644
--- a/textscreen/txt_table.h
+++ b/textscreen/txt_table.h
@@ -178,6 +178,19 @@ void TXT_SetColumnWidths(TXT_UNCAST_ARG(table), ...);
void TXT_ClearTable(TXT_UNCAST_ARG(table));
+/**
+ * Hack to move the selection in a table by a 'page', triggered by the
+ * scrollpane. This acts as per the keyboard events for the arrows, but moves
+ * the selection by at least the specified number of characters.
+ *
+ * @param table The table.
+ * @param pagex Minimum distance to move the selection horizontally.
+ * @param pagey Minimum distance to move the selection vertically.
+ * @return Non-zero if the selection has been changed.
+ */
+
+int TXT_PageTable(TXT_UNCAST_ARG(table), int pagex, int pagey);
+
#endif /* #ifndef TXT_TABLE_T */