home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / dev / tbsource.lha / TBSource / SimCC / SimCC2.0.i < prev    next >
Text File  |  1993-12-21  |  5KB  |  162 lines

  1. ;
  2. ;Here are the 2.0 stuff needed
  3. ;
  4.  
  5. _LVOOpenWindowTagList:    EQU -$25e
  6. _LVOLockPubScreen:    EQU -$1fe
  7. _LVOUnlockPubScreen:    EQU -$204
  8.  
  9.  
  10. ZOOMED        EQU $10000000    ; identifies "zoom state"
  11.  
  12. ;utility/tagitem.i
  13.  
  14. ; =======================================================================
  15. ; ====    TagItem    ==========================================================
  16. ; =======================================================================
  17. ; This data type may propagate through the system for more general use.
  18. ; In the meantime, it is used as a general mechanism of extensible data
  19. ; arrays for parameter specification and property inquiry (coming soon
  20. ; to a display controller near you).
  21. ; In practice, an array (or chain of arrays) of TagItems is used.
  22.  
  23.  STRUCTURE    TagItem,0
  24.     ULONG    ti_Tag        ; identifies the type of this item
  25.     ULONG    ti_Data        ; type-specific data, can be a pointer
  26.     LABEL    ti_SIZEOF
  27.  
  28. ; ----    system tag values -----------------------------
  29. TAG_DONE   EQU    0    ; terminates array of TagItems. ti_Data unused
  30. TAG_IGNORE EQU    1    ; ignore this item, not end of array
  31. TAG_MORE   EQU    2    ; ti_Data is pointer to another array of TagItems
  32.             ; note that this tag terminates the current array
  33.  
  34. ; ----    user tag identification -----------------------
  35. TAG_USER  EQU    $80000000    ; differentiates user tags from system tags
  36.  
  37. ; until further notice, tag bits 16-30 are RESERVED and should be zero.
  38. ; Also, the value (TAG_USER | 0) should never be used as a tag value.
  39.  
  40.  
  41. ;exec/types.i
  42.  
  43. **
  44. ** Enumerated variables.  Use ENUM to set a base number, and EITEM to assign
  45. ** incrementing values.  ENUM can be used to set a new base at any time.
  46. **
  47. ENUM        MACRO   ;[new base]
  48.         IFC     '\1',''
  49. EOFFSET        SET        0        ; Default to zero
  50.         ENDC
  51.         IFNC    '\1',''
  52. EOFFSET        SET     \1
  53.         ENDC
  54.         ENDM
  55.  
  56. EITEM        MACRO   ;label
  57. \1        EQU     EOFFSET
  58. EOFFSET     SET     EOFFSET+1
  59.         ENDM
  60.  
  61.  
  62. ;Intuition/intuition.i
  63.  
  64.     ENUM TAG_USER+100
  65.  
  66.     ; these tags simply override NewWindow parameters
  67.     EITEM WA_Left
  68.     EITEM WA_Top
  69.     EITEM WA_Width
  70.     EITEM WA_Height
  71.     EITEM WA_DetailPen
  72.     EITEM WA_BlockPen
  73.     EITEM WA_IDCMP
  74.     EITEM WA_Flags    ; not implemented at present
  75.     EITEM WA_Gadgets
  76.     EITEM WA_Checkmark
  77.     EITEM WA_Title
  78.     EITEM WA_ScreenTitle    ; means you don't have to call SetWindowTitles
  79.                  ; after you open your window
  80.  
  81.     EITEM WA_CustomScreen
  82.     EITEM WA_SuperBitMap    ; also implies SUPER_BITMAP property
  83.     EITEM WA_MinWidth
  84.     EITEM WA_MinHeight
  85.     EITEM WA_MaxWidth
  86.     EITEM WA_MaxHeight
  87.  
  88.     ; The following are specifications for new features
  89.  
  90.     EITEM WA_InnerWidth
  91.     EITEM WA_InnerHeight ; You can specify the dimensions of the interior
  92.              ; region of your window, independent of what
  93.              ; the border widths will be.  These are
  94.              ; *supposed* to imply the EITEM WA_AutoAdjust property,
  95.              ; but there is a bug report that says they don't.
  96.  
  97.  
  98.     EITEM WA_PubScreenName    ; declares that you want the window to open as
  99.              ; a visitor on the public screen whose name is
  100.              ; pointed to by (UBYTE *) ti_Data
  101.  
  102.     EITEM WA_PubScreen    ; open as a visitor window on the public screen
  103.             ; whose address is in (struct Screen *) ti_Data.
  104.             ; To insure that this screen remains open, you
  105.             ; should either be the screen's owner, have a
  106.             ; window open on the screen, or use LockPubScreen().
  107.  
  108.     EITEM WA_PubScreenFallBack    ; A Boolean, specifies whether a visitor window
  109.              ; should "fall back" to the default public screen
  110.              ; (or Workbench) if the named public screen isn't
  111.              ; available
  112.  
  113.     EITEM WA_WindowName    ; not implemented
  114.     EITEM WA_Colors    ; a ColorSpec array for colors to be set
  115.             ; when this window is active.  This is not
  116.             ; implemented, and may not be, since the default
  117.             ; values to restore would be hard to track.
  118.             ; We'd like to at least support per-window colors
  119.             ; for the mouse pointer sprite.
  120.  
  121.     EITEM WA_Zoom    ; ti_Data points to an array of four WORD's,
  122.             ; the initial Left/Top/Width/Height values of
  123.             ; the "alternate" zoom position/dimensions.
  124.             ; It also specifies that you want a Zoom gadget
  125.             ; for your window, whether or not you have a
  126.             ; sizing gadget.
  127.  
  128.     EITEM WA_MouseQueue    ; ti_Data contains initial value for the mouse
  129.             ; message backlog limit for this window.
  130.  
  131.     EITEM WA_BackFill    ; unimplemented at present: provides a "backfill
  132.             ; hook" for your window's layer.
  133.  
  134.     EITEM WA_RptQueue    ; initial value of repeat key backlog limit
  135.  
  136.     ; These Boolean tag items are alternatives to the NewWindow.Flags
  137.     ; boolean flags with similar names.
  138.  
  139.     EITEM WA_SizeGadget
  140.     EITEM WA_DragBar
  141.     EITEM WA_DepthGadget
  142.     EITEM WA_CloseGadget
  143.     EITEM WA_Backdrop
  144.     EITEM WA_ReportMouse
  145.     EITEM WA_NoCareRefresh
  146.     EITEM WA_Borderless
  147.     EITEM WA_Activate
  148.     EITEM WA_RMBTrap
  149.     EITEM WA_WBenchWindow    ; PRIVATE!!
  150.     EITEM WA_SimpleRefresh    ; only specify if TRUE
  151.     EITEM WA_SmartRefresh    ; only specify if TRUE
  152.     EITEM WA_SizeBRight
  153.     EITEM WA_SizeBBottom
  154.  
  155.     ; New Boolean properties
  156.     EITEM WA_AutoAdjust    ; shift or squeeze the window's position and
  157.             ; dimensions to fit it on screen.
  158.  
  159.     EITEM WA_GimmeZeroZero    ; equiv. to NewWindow.Flags GIMMEZEROZERO
  160. *** End of Window attribute enumeration ***
  161.