aboutsummaryrefslogtreecommitdiffstats
path: root/list_window.h
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-05 11:21:43 +0000
committerKalle Wallin <kaw@linux.se>2004-06-05 11:21:43 +0000
commitf55a67b3f882641abe5a9b14b045d7ce71964af7 (patch)
tree181c15b1c59df30b2e28058f2648e5e701e57c4f /list_window.h
parent677eb1ad30321d83f6196672ea1798c0e1712870 (diff)
downloadmpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.gz
mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.tar.xz
mpd-f55a67b3f882641abe5a9b14b045d7ce71964af7.zip
Changed directory layout (for future use of gettext)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'list_window.h')
-rw-r--r--list_window.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/list_window.h b/list_window.h
deleted file mode 100644
index 9e9170382..000000000
--- a/list_window.h
+++ /dev/null
@@ -1,67 +0,0 @@
-#ifndef LIST_WINDOW_H
-#define LIST_WINDOW_H
-
-#define LW_ROW(lw) (lw ? lw->selected-lw->start : 0)
-
-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;
-
-
-/* create a new list window */
-list_window_t *list_window_init(WINDOW *w, int width, int height);
-
-/* destroy a list window (returns NULL) */
-list_window_t *list_window_free(list_window_t *lw);
-
-/* reset a list window (selected=0, start=0, clear=1) */
-void list_window_reset(list_window_t *lw);
-
-/* paint a list window */
-void list_window_paint(list_window_t *lw,
- list_window_callback_fn_t callback,
- void *callback_data);
-
-/* perform basic list window commands (movement) */
-int list_window_cmd(list_window_t *lw, int rows, command_t cmd);
-
-
-/* select functions */
-void list_window_set_selected(list_window_t *lw, int n);
-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);
-void list_window_check_selected(list_window_t *lw, int length);
-
-/* find a string in a list window */
-int list_window_find(list_window_t *lw,
- list_window_callback_fn_t callback,
- void *callback_data,
- char *str,
- int wrap);
-
-/* find a string in a list window (reversed) */
-int
-list_window_rfind(list_window_t *lw,
- list_window_callback_fn_t callback,
- void *callback_data,
- char *str,
- int wrap,
- int rows);
-
-#endif