Code

command.c: put curly braces around a single large statement
[ncmpc.git] / src / list_window.h
index 83beeacaa47f492c162abf4998a2ab7b42349929..bac5d5e77d6aadbeddb3315e8107b260942d7750 100644 (file)
 #include "config.h"
 #include "command.h"
 #include "colors.h"
+#include "ncmpc_curses.h"
 
 #include <glib.h>
 #include <stdbool.h>
 
-#ifdef HAVE_NCURSESW_NCURSES_H
-#include <ncursesw/ncurses.h>
-#else
-#include <ncurses.h>
-#endif
-
 typedef const char *
 (*list_window_callback_fn_t)(unsigned i, void *data);
 
@@ -127,6 +122,13 @@ list_window_mouse(struct list_window *lw, unsigned long bstate, int y);
 void
 list_window_center(struct list_window *lw, unsigned n);
 
+/**
+ * Scrolls the view to item n, as if the cursor would have been moved
+ * to the position.
+ */
+void
+list_window_scroll_to(struct list_window *lw, unsigned n);
+
 /**
  * Sets the position of the cursor.  Disables range selection.
  */