root/lib/widget/listbox-window.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /** \file listbox-window.h
   2  *  \brief Header: Listbox widget, a listbox within dialog window
   3  */
   4 
   5 #ifndef MC__LISTBOX_DIALOG_H
   6 #define MC__LISTBOX_DIALOG_H
   7 
   8 /*** typedefs(not structures) and defined constants **********************************************/
   9 
  10 #define LISTBOX_APPEND_TEXT(l,h,t,d,f) \
  11     listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d, f)
  12 
  13 /*** enums ***************************************************************************************/
  14 
  15 /*** structures declarations (and typedefs of structures)*****************************************/
  16 
  17 typedef struct
  18 {
  19     WDialog *dlg;
  20     WListbox *list;
  21 } Listbox;
  22 
  23 /*** global variables defined in .c file *********************************************************/
  24 
  25 /*** declarations of public functions ************************************************************/
  26 
  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);
  32 void *run_listbox_with_data (Listbox * l, const void *select);
  33 
  34 /*** inline functions ****************************************************************************/
  35 
  36 #endif /* MC__LISTBOX_DIALOG_H */

/* [previous][next][first][last][top][bottom][index][help]  */