Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2. ***************************************************************************
  3. * This file comprises part of PDCurses. PDCurses is Public Domain software.
  4. * You may use this code for whatever purposes you desire. This software
  5. * is provided AS IS with NO WARRANTY whatsoever.
  6. * Should this software be used in another application, an acknowledgement
  7. * that PDCurses code is used would be appreciated, but is not mandatory.
  8. *
  9. * Any changes which you make to this software which may improve or enhance
  10. * it, should be forwarded to the current maintainer for the benefit of
  11. * other users.
  12. *
  13. * The only restriction placed on this code is that no distribution of
  14. * modified PDCurses code be made under the PDCurses name, by anyone
  15. * other than the current maintainer.
  16. *
  17. * See the file maintain.er for details of the current maintainer.
  18. ***************************************************************************
  19. */
  20. /*
  21. $Id
  22. */
  23. /*
  24. *----------------------------------------------------------------------
  25. *                               Panels for PDCurses
  26. *----------------------------------------------------------------------
  27. */
  28.  
  29. #include <curses.h>
  30.  
  31. typedef struct panelobs
  32. {
  33.         struct panelobs *above;
  34.         struct panel *pan;
  35. } PANELOBS;
  36.  
  37. typedef struct panel
  38. {
  39.         WINDOW *win;
  40.         int wstarty;
  41.         int wendy;
  42.         int wstartx;
  43.         int wendx;
  44.         struct panel *below;
  45.         struct panel *above;
  46.         char *user;
  47.         struct panelobs *obscure;
  48. } PANEL;
  49.  
  50. WINDOW *panel_window(PANEL *pan);
  51. void update_panels(void );
  52. int hide_panel(PANEL *pan);
  53. int show_panel(PANEL *pan);
  54. int del_panel(PANEL *pan);
  55. int top_panel(PANEL *pan);
  56. int bottom_panel(PANEL *pan);
  57. PANEL *new_panel(WINDOW *win);
  58. PANEL *panel_above(PANEL *pan);
  59. PANEL *panel_below(PANEL *pan);
  60. int set_panel_userptr(PANEL *pan,char *uptr);
  61. char *panel_userptr(PANEL *pan);
  62. int move_panel(PANEL *pan,int starty,int startx);
  63. int replace_panel(PANEL *pan,WINDOW *win);
  64.  
  65. /* end of panel.h */
  66.