home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / WINOD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  2.3 KB  |  82 lines

  1. /*
  2.     winod.h    6/18/88
  3.  
  4.     % Window object definitions for basic window types
  5.  
  6.     OWL 1.1
  7.     Copyright (c) 1988, by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12.      8/09/88 jmd    revised to use new object stuff
  13.     11/20/88 jmd    Window tags are now in oakalloc.h (and have new names)
  14.  
  15.      8/11/89 jmd    Added new bob class
  16. */
  17.  
  18. #ifndef OAK_WINOD
  19. #define OAK_WINOD
  20.  
  21. #include "commonod.h"
  22. /* -------------------------------------------------------------------------- */
  23. /* The bob class */
  24.  
  25. typedef struct {
  26.     common_od    cd;                /* the common object superclass od */
  27.  
  28. } bob_od;
  29.  
  30. /* bob_DoRaw macros to nothing for now */
  31. #define bob_DoRaw(winobj, msg, indata, outdata)     (TRUE)
  32.  
  33. #define bobod_GetSelf(wdd)            (commonod_GetSelf(&(wdd)->cd))
  34.  
  35. /* The window class */
  36.  
  37. typedef struct {
  38.     bob_od        cd;                /* the bob object superclass od */
  39.     boolean        current;        /* flag for whether this is the current, cursor-showing window */
  40.     unsigned     curshide;        /* hide/show count for cursor in this window */
  41.  
  42.     pmap_type     cursunder;        /* graphics cursor under buffer */
  43.     boolean        cudrawn;        /* graphics cursor drawn flag */
  44.     opbox         cubox;            /* graphics cursor under-buffer location */
  45. } win_od;
  46.  
  47. #define win_DoRaw(winobj, msg, indata, outdata)     \
  48.     obj_DoRaw(win_Class, winobj, msg, indata, outdata)
  49.  
  50. #define winod_GetSelf(wdd)            ((win_type) bobod_GetSelf(&(wdd)->cd))
  51.  
  52. /* -------------------------------------------------------------------------- */
  53. /* The no_paint window class */
  54.  
  55. typedef struct {
  56.     win_od    wd;                  /* window super class */
  57. } npwin_od;
  58.  
  59. #define npwin_DoRaw(npwinobj, msg, indata, outdata)     \
  60.     obj_DoRaw(npwin_Class, npwinobj, msg, indata, outdata)
  61.  
  62. #define npwinod_GetSelf(npwdd)        (winod_GetSelf(&(npwdd)->wd))
  63. /* -------------------------------------------------------------------------- */
  64. /* The blank window class */
  65.  
  66. typedef struct {
  67.     win_od    wd;                  /* window super class */
  68. } blwin_od;
  69.  
  70. #define blwin_DoRaw(blwinobj, msg, indata, outdata)     \
  71.     obj_DoRaw(blwin_Class, blwinobj, msg, indata, outdata)
  72.  
  73. #define blwinod_GetSelf(blwdd)        (winod_GetSelf(&(blwdd)->wd))
  74. /* -------------------------------------------------------------------------- */
  75. /* Request funcs */
  76.  
  77. OEXTERN objreq_fptr winreq_loadfptr;
  78. OEXTERN objreq_fptr winreq_savefptr;
  79.  
  80. #endif
  81.  
  82.