Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*----------------------------------------------------------------------*
  2.  *                         Panels for PDCurses                          *
  3.  *----------------------------------------------------------------------*/
  4.  
  5. #ifndef __PDCURSES_PANEL_H__
  6. #define __PDCURSES_PANEL_H__ 1
  7.  
  8. #include <curses.h>
  9.  
  10. #ifdef __cplusplus
  11. extern "C"
  12. {
  13. #endif
  14.  
  15. typedef struct panelobs
  16. {
  17.     struct panelobs *above;
  18.     struct panel *pan;
  19. } PANELOBS;
  20.  
  21. typedef struct panel
  22. {
  23.     WINDOW *win;
  24.     int wstarty;
  25.     int wendy;
  26.     int wstartx;
  27.     int wendx;
  28.     struct panel *below;
  29.     struct panel *above;
  30.     const void *user;
  31.     struct panelobs *obscure;
  32. } PANEL;
  33.  
  34. PDCEX  int     bottom_panel(PANEL *pan);
  35. PDCEX  int     del_panel(PANEL *pan);
  36. PDCEX  int     hide_panel(PANEL *pan);
  37. PDCEX  int     move_panel(PANEL *pan, int starty, int startx);
  38. PDCEX  PANEL  *new_panel(WINDOW *win);
  39. PDCEX  PANEL  *panel_above(const PANEL *pan);
  40. PDCEX  PANEL  *panel_below(const PANEL *pan);
  41. PDCEX  int     panel_hidden(const PANEL *pan);
  42. PDCEX  const void *panel_userptr(const PANEL *pan);
  43. PDCEX  WINDOW *panel_window(const PANEL *pan);
  44. PDCEX  int     replace_panel(PANEL *pan, WINDOW *win);
  45. PDCEX  int     set_panel_userptr(PANEL *pan, const void *uptr);
  46. PDCEX  int     show_panel(PANEL *pan);
  47. PDCEX  int     top_panel(PANEL *pan);
  48. PDCEX  void    update_panels(void);
  49.  
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53.  
  54. #endif /* __PDCURSES_PANEL_H__ */
  55.