home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / code / desklib / DeskLib / !DeskLib / h / Window < prev   
Encoding:
Text File  |  1995-08-28  |  1.8 KB  |  51 lines

  1.  
  2. #ifndef __dl_window_h
  3. #define __dl_window_h
  4. #ifndef __dl_wimp_h
  5. #include "Wimp.h"
  6. #endif
  7. #ifndef __dl_wimpswis_h
  8. #include "WimpSWIs.h"
  9. #endif
  10. #ifndef __dl_pointer_h
  11. #include "Pointer.h"
  12. #endif
  13. #ifndef __dl_coord_h
  14. #include "Coord.h"
  15. #endif
  16. typedef enum
  17. {
  18. open_WHEREVER, 
  19. open_CENTERED, 
  20. open_CENTEREDUNDERPOINTER, 
  21. open_OVERCARET, 
  22. open_UNDERPOINTER, 
  23. open_NEARLAST 
  24. } window_openpos;
  25. extern window_handle Window_Create(char *windowname, int maxtitlesize);
  26. extern window_handle Window_CreateOrig(char *windowname);
  27. extern void Window_Show(window_handle window, window_openpos openpos);
  28. extern window_handle Window_CreateAndShow(char *windowname,
  29. int maxtitlesize,
  30. window_openpos openpos);
  31. #define Window_Hide(handle) Wimp_CloseWindow(handle)
  32. extern void Window_Delete(window_handle window);
  33. extern void Window_DeleteOrig(window_handle window);
  34. extern void Window_GetInfo(window_handle window, window_info *result);
  35. extern os_error *Window_GetInfo3(window_handle window, window_info *result);
  36. extern void Window_ParentName(window_handle window, char *windowname);
  37. extern BOOL Window_AutoHelp(window_handle window, icon_handle icon);
  38. extern BOOL Window_HelpHandler(event_pollblock *event, void *reference);
  39. extern void Window_ModeChange(void);
  40. extern void Window_SetTitle(window_handle window, char *title);
  41. extern void Window_BringToFront(window_handle window);
  42. #define Window_ConstrainMouse(WND) (Pointer_RestrictToWindow(WND))
  43. extern void Window_SetExtent(window_handle wh, int x0, int y0, int x1, int y1);
  44. extern void Window_ForceRedraw(window_handle wh,
  45. int x0, int y0, int x1, int y1);
  46. extern void Window_GetCoords(window_handle wh, convert_block *coords);
  47. extern os_error *Window_GainCaret(window_handle window);
  48. extern os_error *Window_ForceWholeRedraw(window_handle window);
  49. extern BOOL Window_MoveWindow(event_pollblock *event, void *reference);
  50. #endif
  51.