aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-17 12:18:00 +0200
committerMax Kellermann <max@duempel.org>2008-09-17 12:18:00 +0200
commitca2b9d1390a56b89336b963113b5763edd70238e (patch)
treefb21cce04bc44a9bcb4a8e06fadd1b02776defc9 /src/list_window.h
parent104b126c69b89cc4b7caf301fbdbd0b1c9a21bda (diff)
downloadmpd-ca2b9d1390a56b89336b963113b5763edd70238e.tar.gz
mpd-ca2b9d1390a56b89336b963113b5763edd70238e.tar.xz
mpd-ca2b9d1390a56b89336b963113b5763edd70238e.zip
list_window: added list_window_scroll_cmd()
It is similar to list_window_cmd(), but it scrolls the window instead of moving the selection. It is used by the "lyrics" and the "help" screen.
Diffstat (limited to 'src/list_window.h')
-rw-r--r--src/list_window.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/list_window.h b/src/list_window.h
index 2efff8a5c..ab02f4bdd 100644
--- a/src/list_window.h
+++ b/src/list_window.h
@@ -49,6 +49,13 @@ void list_window_paint(struct list_window *lw,
/* perform basic list window commands (movement) */
int list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd);
+/**
+ * Scroll the window. Returns non-zero if the command has been
+ * consumed.
+ */
+int
+list_window_scroll_cmd(struct list_window *lw, unsigned rows, command_t cmd);
+
/* select functions */
void list_window_set_selected(struct list_window *lw, unsigned n);