panel.pp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {$IFNDEF FPC_DOTTEDUNITS}
  2. unit panel;
  3. {$ENDIF FPC_DOTTEDUNITS}
  4. interface
  5. {$IFDEF FPC_DOTTEDUNITS}
  6. uses
  7. Api.Ncurses;
  8. {$ELSE FPC_DOTTEDUNITS}
  9. uses
  10. ncurses;
  11. {$ENDIF FPC_DOTTEDUNITS}
  12. {$PACKRECORDS C}
  13. {$linklib panelw}
  14. const
  15. libpanel = 'panelw';
  16. type
  17. PPANEL = ^TPANEL;
  18. TPANEL = record
  19. win : PWINDOW;
  20. below : PPANEL;
  21. above : PPANEL;
  22. user : Pointer;
  23. end;
  24. function panel_window(_para1:PPANEL):PWINDOW; cdecl;external libpanel;
  25. procedure update_panels; cdecl;external libpanel;
  26. function hide_panel(_para1:PPANEL):Longint; cdecl;external libpanel;
  27. function show_panel(_para1:PPANEL):Longint; cdecl;external libpanel;
  28. function del_panel(_para1:PPANEL):Longint; cdecl;external libpanel;
  29. function top_panel(_para1:PPANEL):Longint; cdecl;external libpanel;
  30. function bottom_panel(_para1:PPANEL):Longint; cdecl;external libpanel;
  31. function new_panel(_para1:PWINDOW):PPANEL; cdecl;external libpanel;
  32. function panel_above(_para1:PPANEL):PPANEL; cdecl;external libpanel;
  33. function panel_below(_para1:PPANEL):PPANEL; cdecl;external libpanel;
  34. function set_panel_userptr(_para1:PPANEL; _para2:pointer):Longint; cdecl;external libpanel;
  35. function panel_userptr(_para1:PPANEL):pointer; cdecl;external libpanel;
  36. function move_panel(_para1:PPANEL; _para2:Longint; _para3:Longint):Longint; cdecl;external libpanel;
  37. function replace_panel(_para1:PPANEL; _para2:PWINDOW):Longint; cdecl;external libpanel;
  38. function panel_hidden(_para1:PPANEL):Longint; cdecl;external libpanel;
  39. implementation
  40. end.