aboutsummaryrefslogtreecommitdiffstats
path: root/screen_utils.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-24 15:17:52 +0000
committerKalle Wallin <kaw@linux.se>2004-03-24 15:17:52 +0000
commitb30908800a6594524171afb1eed22413f3e85bba (patch)
treef36ded987c0795c2246361d5333a5194bad0349b /screen_utils.h
parentecaa2131695342d84a3cc3b472032a7805e34a8b (diff)
downloadmpd-b30908800a6594524171afb1eed22413f3e85bba.tar.gz
mpd-b30908800a6594524171afb1eed22413f3e85bba.tar.xz
mpd-b30908800a6594524171afb1eed22413f3e85bba.zip
Moved list window fuctions to list_window.c.
Added function list_window_cmd() for basic commands (movment). git-svn-id: https://svn.musicpd.org/ncmpc/trunk@454 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen_utils.h')
-rw-r--r--screen_utils.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/screen_utils.h b/screen_utils.h
index cddbe7e74..70091f5c8 100644
--- a/screen_utils.h
+++ b/screen_utils.h
@@ -1,48 +1,2 @@
-typedef char * (*list_window_callback_fn_t) (int index,
- int *highlight,
- void *data);
-
-
-
-typedef struct
-{
- WINDOW *w;
- int rows, cols;
-
- int start;
- int selected;
- int clear;
- int repaint;
-
-} list_window_t;
-
-
-
-list_window_t *list_window_init(WINDOW *w, int width, int height);
-list_window_t *list_window_free(list_window_t *lw);
-
-
-void list_window_reset(list_window_t *lw);
-void list_window_set_selected(list_window_t *lw, int n);
-
-void list_window_paint(list_window_t *lw,
- list_window_callback_fn_t callback,
- void *callback_data);
-
-
-
-
-void list_window_previous(list_window_t *lw);
-void list_window_next(list_window_t *lw, int length);
-void list_window_first(list_window_t *lw);
-void list_window_last(list_window_t *lw, int length);
-void list_window_previous_page(list_window_t *lw);
-void list_window_next_page(list_window_t *lw, int length);
-int list_window_find(list_window_t *lw,
- list_window_callback_fn_t callback,
- void *callback_data,
- char *str);
-
-
char *screen_readln(WINDOW *w, char *prompt);