listbox-window.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /** \file listbox-window.h
  2. * \brief Header: Listbox widget, a listbox within dialog window
  3. */
  4. #ifndef MC__LISTBOX_DIALOG_H
  5. #define MC__LISTBOX_DIALOG_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. #define LISTBOX_APPEND_TEXT(l,h,t,d) \
  8. listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d)
  9. /*** enums ***************************************************************************************/
  10. /*** structures declarations (and typedefs of structures)*****************************************/
  11. typedef struct
  12. {
  13. struct Dlg_head *dlg;
  14. struct WListbox *list;
  15. } Listbox;
  16. /*** global variables defined in .c file *********************************************************/
  17. /*** declarations of public functions ************************************************************/
  18. /* Listbox utility functions */
  19. Listbox *create_listbox_window_centered (int center_y, int center_x, int lines, int cols,
  20. const char *title, const char *help);
  21. Listbox *create_listbox_window (int lines, int cols, const char *title, const char *help);
  22. int run_listbox (Listbox * l);
  23. /*** inline functions ****************************************************************************/
  24. #endif /* MC__LISTBOX_DIALOG_H */