Unify widget and dialog message handling.
[midnight-commander.git] / lib / widget / listbox-window.h
bloba96cd59c5e30ed8955978bf01c6021a74f36baad
1 /** \file listbox-window.h
2 * \brief Header: Listbox widget, a listbox within dialog window
3 */
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) \
11 listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d)
13 /*** enums ***************************************************************************************/
15 /*** structures declarations (and typedefs of structures)*****************************************/
17 typedef struct
19 struct WDialog *dlg;
20 struct WListbox *list;
21 } Listbox;
23 /*** global variables defined in .c file *********************************************************/
25 /*** declarations of public functions ************************************************************/
27 /* Listbox utility functions */
28 Listbox *create_listbox_window_centered (int center_y, int center_x, int lines, int cols,
29 const char *title, const char *help);
30 Listbox *create_listbox_window (int lines, int cols, const char *title, const char *help);
31 int run_listbox (Listbox * l);
33 /*** inline functions ****************************************************************************/
35 #endif /* MC__LISTBOX_DIALOG_H */