1 /** \file listbox-window.h
2 * \brief Header: Listbox widget, a listbox within dialog window
5 #ifndef MC__LISTBOX_DIALOG_H
6 #define MC__LISTBOX_DIALOG_H
8 /*** typedefs(not structures) and defined constants **********************************************/
10 #define LISTBOX_APPEND_TEXT(l,h,t,d,f) \
11 listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d, f)
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
23 /*** global variables defined in .c file *********************************************************/
25 /*** declarations of public functions ************************************************************/
27 /* Listbox utility functions */
28 Listbox
*listbox_window_centered_new (int center_y
, int center_x
, int lines
, int cols
,
29 const char *title
, const char *help
);
30 Listbox
*listbox_window_new (int lines
, int cols
, const char *title
, const char *help
);
31 int listbox_run (Listbox
* l
);
32 void *listbox_run_with_data (Listbox
* l
, const void *select
);
34 /*** inline functions ****************************************************************************/
36 #endif /* MC__LISTBOX_DIALOG_H */