diff options
author | Max Kellermann <max@duempel.org> | 2008-09-17 12:18:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-17 12:18:00 +0200 |
commit | ca2b9d1390a56b89336b963113b5763edd70238e (patch) | |
tree | fb21cce04bc44a9bcb4a8e06fadd1b02776defc9 /src/list_window.h | |
parent | 104b126c69b89cc4b7caf301fbdbd0b1c9a21bda (diff) | |
download | mpd-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.h | 7 |
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); |