home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / datatypes / datatypesclass.i < prev    next >
Encoding:
Text File  |  1992-09-24  |  7.3 KB  |  313 lines

  1.     IFND DATATYPES_DATATYPESCLASS_I
  2. DATATYPES_DATATYPESCLASS_I    SET    1
  3. **
  4. **    $VER: datatypesclass.i 39.2 (24.06.92)
  5. **    Includes Release 39.108
  6. **
  7. **    (C) Copyright 1991-1992 Commodore-Amiga, Inc.
  8. **        All Rights Reserved
  9. **
  10.  
  11. ;------------------------------------------------------------------------------
  12.  
  13.     IFND EXEC_TYPES_I
  14.     INCLUDE "exec/types.i"
  15.     ENDC
  16.  
  17.     IFND DOS_DOS_I
  18.     INCLUDE "dos/dos.i"
  19.     ENDC
  20.  
  21.     IFND GRAPHICS_GFX_I
  22.     INCLUDE 'graphics/gfx.i'
  23.     ENDC
  24.  
  25.     IFND GRAPHICS_MONITOR_I
  26.     INCLUDE 'graphics/monitor.i'
  27.     ENDC
  28.  
  29.     IFND GRAPHICS_MODEID_I
  30.     INCLUDE 'graphics/modeid.i'
  31.     ENDC
  32.  
  33.     IFND UTILITY_TAGITEM_I
  34.     INCLUDE "utility/tagitem.i"
  35.     ENDC
  36.  
  37.     IFND DATATYPES_DATATYPES_I
  38.     INCLUDE "datatypes/datatypes.i"
  39.     ENDC
  40.  
  41.     IFND INTUITION_INTUITION_I
  42.     INCLUDE "intuition/intuition.i"
  43.     ENDC
  44.  
  45.     IFND DEVICES_PRINTER_I
  46.     INCLUDE "devices/printer.i"
  47.     ENDC
  48.  
  49.     IFND DEVICES_PRTBASE_I
  50.     INCLUDE "devices/prtbase.i"
  51.     ENDC
  52.  
  53. ;------------------------------------------------------------------------------
  54.  
  55. DATATYPESCLASS    equ    "datatypesclass"
  56.  
  57. ;------------------------------------------------------------------------------
  58.  
  59. DTA_Dummy    equ    (TAG_USER+$1000)
  60.  
  61. ; Generic attributes
  62. DTA_TextAttr        equ    (DTA_Dummy+10)
  63. DTA_TopVert        equ    (DTA_Dummy+11)
  64. DTA_VisibleVert        equ    (DTA_Dummy+12)
  65. DTA_TotalVert        equ    (DTA_Dummy+13)
  66. DTA_VertUnit        equ    (DTA_Dummy+14)
  67. DTA_TopHoriz        equ    (DTA_Dummy+15)
  68. DTA_VisibleHoriz    equ    (DTA_Dummy+16)
  69. DTA_TotalHoriz        equ    (DTA_Dummy+17)
  70. DTA_HorizUnit        equ    (DTA_Dummy+18)
  71. DTA_NodeName        equ    (DTA_Dummy+19)
  72. DTA_Title        equ    (DTA_Dummy+20)
  73. DTA_TriggerMethods    equ    (DTA_Dummy+21)
  74. DTA_Data        equ    (DTA_Dummy+22)
  75. DTA_TextFont        equ    (DTA_Dummy+23)
  76. DTA_Methods        equ    (DTA_Dummy+24)
  77. DTA_PrinterStatus    equ    (DTA_Dummy+25)
  78. DTA_PrinterProc        equ    (DTA_Dummy+26)
  79. DTA_LayoutProc        equ    (DTA_Dummy+27)
  80. DTA_Busy        equ    (DTA_Dummy+28)
  81.     ; Used to turn the applications' busy pointer off and on.
  82.  
  83. DTA_Sync        equ    (DTA_Dummy+29)
  84.     ; Used to indicate that new information has been loaded into
  85.     ; an object.  This is for models that cache the DTA_TopVert-
  86.     ; like tags
  87.  
  88. DTA_BaseName        equ    (DTA_Dummy+30)
  89.     ; The base name of the class
  90.  
  91. DTA_GroupID        equ    (DTA_Dummy+31)
  92.     ; Group that the object must belong in
  93.  
  94. DTA_ErrorLevel        equ    (DTA_Dummy+32)
  95.     ; Error level
  96.  
  97. DTA_ErrorNumber        equ    (DTA_Dummy+33)
  98.     ; datatypes.library error number
  99.  
  100. DTA_ErrorString        equ    (DTA_Dummy+34)
  101.     ; Argument for datatypes.library error
  102.  
  103. ; DTObject attributes
  104. DTA_Name        equ    (DTA_Dummy+100)
  105. DTA_SourceType        equ    (DTA_Dummy+101)
  106. DTA_Handle        equ    (DTA_Dummy+102)
  107. DTA_DataType        equ    (DTA_Dummy+103)
  108. DTA_Domain        equ    (DTA_Dummy+104)
  109. DTA_Left        equ    (DTA_Dummy+105)
  110. DTA_Top            equ    (DTA_Dummy+106)
  111. DTA_Width        equ    (DTA_Dummy+107)
  112. DTA_Height        equ    (DTA_Dummy+108)
  113. DTA_ObjName        equ    (DTA_Dummy+109)
  114. DTA_ObjAuthor        equ    (DTA_Dummy+110)
  115. DTA_ObjAnnotation    equ    (DTA_Dummy+111)
  116. DTA_ObjCopyright    equ    (DTA_Dummy+112)
  117. DTA_ObjVersion        equ    (DTA_Dummy+113)
  118. DTA_ObjectID        equ    (DTA_Dummy+114)
  119. DTA_UserData        equ    (DTA_Dummy+115)
  120. DTA_FrameInfo        equ    (DTA_Dummy+116)
  121. DTA_RelRight        equ    (DTA_Dummy+117)
  122. DTA_RelBottom        equ    (DTA_Dummy+118)
  123. DTA_RelWidth        equ    (DTA_Dummy+119)
  124. DTA_RelHeight        equ    (DTA_Dummy+120)
  125. DTA_SelectDomain    equ    (DTA_Dummy+121)
  126. DTA_TotalPVert        equ    (DTA_Dummy+122)
  127. DTA_TotalPHoriz        equ    (DTA_Dummy+123)
  128. DTA_NominalVert        equ    (DTA_Dummy+124)
  129. DTA_NominalHoriz    equ    (DTA_Dummy+125)
  130.  
  131. ; Printing attributes
  132. DTA_DestCols        equ    (DTA_Dummy+400)
  133. DTA_DestRows        equ    (DTA_Dummy+401)
  134. DTA_Special        equ    (DTA_Dummy+402)
  135.  
  136. ;------------------------------------------------------------------------------
  137.  
  138. DTST_RAM        equ    1
  139. DTST_FILE        equ    2
  140. DTST_CLIPBOARD        equ    3
  141. DTST_HOTLINK        equ    4
  142.  
  143. ;------------------------------------------------------------------------------
  144.  
  145. ; Attached to the Gadget.SpecialInfo field of the gadget.  Don't access directly,
  146. ;  use the Get/Set calls instead.
  147.  
  148.     STRUCTURE DTSpecialInfo,0
  149.     STRUCT        si_Lock,SS_SIZE            ; Locked while in DoAsyncLayout()
  150.     ULONG        si_Flags
  151.  
  152.     LONG        si_TopVert            ; Top row in units
  153.     LONG        si_VisVert            ; Number of visible rows in units
  154.     LONG        si_TotVert            ; Total number of rows in units
  155.     LONG        si_OTopVert            ; Previous top in units
  156.     LONG        si_VertUnit            ; Number of pixels per vertical unit
  157.  
  158.     LONG        si_TopHoriz            ; Top column in units
  159.     LONG        si_VisHoriz            ; Number of visible columns in units
  160.     LONG        si_TotHoriz            ; Total number of columns in units
  161.     LONG        si_OTopHoriz            ; Previous top in units
  162.     LONG        si_HorizUnit            ; Number of pixels per horizontal unit
  163.  
  164.     LABEL DTSpecialInfo_SIZEOF
  165.  
  166. ; si_Flag values
  167.     BITDEF DTSI,LAYOUT,0
  168.     BITDEF DTSI,NEWSIZE,1
  169.     BITDEF DTSI,DRAGGING,2
  170.     BITDEF DTSI,DRAGSELECT,3
  171.     BITDEF DTSI,HIGHLIGHT,4
  172.     BITDEF DTSI,PRINTING,5
  173.     BITDEF DTSI,LAYOUTPROC,6
  174.  
  175. ;------------------------------------------------------------------------------
  176.  
  177.     STRUCTURE DTMethod,0
  178.     APTR    dtm_Label
  179.     APTR    dtm_Command
  180.     ULONG    dtm_Method
  181.     LABEL DTMethod_SIZEOF
  182.  
  183. ;------------------------------------------------------------------------------
  184. ; Methods
  185.  
  186. ; Inquire what environment an object requires
  187. DTM_FRAMEBOX        equ    $0601
  188.  
  189. ; Same as GM_LAYOUT except guaranteed to be on a process already
  190. DTM_PROCLAYOUT        equ    $0602
  191.  
  192. ; Layout that is occurring on a process
  193. DTM_ASYNCLAYOUT        equ    $0603
  194.  
  195. ; When a RemoveDTObject() is called
  196. DTM_REMOVEDTOBJECT    equ    $0604
  197.  
  198. DTM_SELECT        equ    $0605
  199. DTM_CLEARSELECTED    equ    $0606
  200.  
  201. DTM_COPY        equ    $0607
  202. DTM_PRINT        equ    $0608
  203. DTM_ABORTPRINT        equ    $0609
  204.  
  205. DTM_NEWMEMBER        equ    $0610
  206. DTM_DISPOSEMEMBER    equ    $0611
  207.  
  208. DTM_GOTO        equ    $0630
  209. DTM_TRIGGER        equ    $0631
  210.  
  211. DTM_OBTAINDRAWINFO    equ    $0640
  212. DTM_DRAW        equ    $0641
  213. DTM_RELEASEDRAWINFO    equ    $0642
  214.  
  215. DTM_WRITE        equ    $0650
  216.  
  217. ; Used to ask the object about itself
  218.     STRUCTURE FrameInfo,0
  219.     ULONG        fri_PropertyFlags        ; DisplayInfo (graphics/displayinfo.i)
  220.     STRUCT        fri_Resolution,tpt_SIZEOF    ; ticks-per-pixel X/Y
  221.     UBYTE        fri_RedBits            ; number of Red bits
  222.     UBYTE        fri_GreenBits            ; number of Green bits
  223.     UBYTE        fri_BlueBits            ; number of Blue bits
  224.     ULONG        fri_Width
  225.     ULONG        fri_Height
  226.     ULONG        fri_Depth
  227.     APTR        fri_Screen
  228.     APTR        fri_ColorMap
  229.     ULONG        fri_Flags
  230.     LABEL FrameInfo_SIZEOF
  231.  
  232.     BITDEF FI,SCALABLE,0
  233.     BITDEF FI,SCROLLABLE,1
  234.     BITDEF FI,REMAPPABLE,2
  235.  
  236. ; DTM_REMOVEDTOBJECT, DTM_CLEARSELECTED, DTM_COPY, DTM_ABORTPRINT
  237.     STRUCTURE dtGeneral,4
  238.     ; ULONG        MethodID
  239.     APTR        dtg_GInfo
  240.  
  241. ; DTM_SELECT
  242.     STRUCTURE dtSelect,4
  243.     ; ULONG        MethodID
  244.     APTR        dts_GInfo
  245.     STRUCT        dts_Select,ra_SIZEOF
  246.  
  247. ; DTM_FRAMEBOX
  248.     STRUCTURE dtFrameBox,4
  249.     ; ULONG        MethodID
  250.     APTR        dtf_GInfo
  251.     APTR        dtf_ContentsInfo
  252.     APTR        dtf_FrameInfo
  253.     ULONG        dtf_SizeFrameInfo
  254.     ULONG        dtf_FrameFlags
  255.  
  256.     IFND FRAMEF_SPECIFY
  257.     BITDEF FRAME,SPECIFY,0
  258.     ENDC
  259.  
  260. ; DTM_GOTO
  261.     STRUCTURE dtGoto,4
  262.     ; ULONG        MethodID
  263.     APTR        dtgo_GInfo
  264.     APTR        dtgo_NodeName            ; Node to goto
  265.     APTR        dtgo_AttrList            ; Additional attributes
  266.  
  267. ; DTM_TRIGGER
  268.     STRUCTURE dtTrigger,4
  269.     ; ULONG        MethodID
  270.     APTR        dtt_GInfo
  271.     ULONG        dtt_Function
  272.     APTR        dtt_Data
  273.  
  274. STM_PAUSE        equ    1
  275. STM_PLAY        equ    2
  276. STM_CONTENTS        equ    3
  277. STM_INDEX        equ    4
  278. STM_RETRACE        equ    5
  279. STM_BROWSE_PREV        equ    6
  280. STM_BROWSE_NEXT        equ    7
  281.  
  282. STM_NEXT_FIELD        equ    8
  283. STM_PREV_FIELD        equ    9
  284. STM_ACTIVATE_FIELD    equ    10
  285. STM_COMMAND        equ    11
  286.  
  287. ; DTM_DRAW
  288.     STRUCTURE dtDraw,4
  289.     ; ULONG        MethodID
  290.     APTR        dtd_RPort
  291.     LONG        dtd_Left
  292.     LONG        dtd_Top
  293.     LONG        dtd_Width
  294.     LONG        dtd_Height
  295.     LONG        dtd_TopHoriz
  296.     LONG        dtd_TopVert
  297.     APTR        dtd_AttrList
  298.  
  299. ; DTM_WRITE
  300.     STRUCTURE dtWrite,4
  301.     ; ULONG        MethodID
  302.     APTR        dtw_GInfo
  303.     BPTR        dtw_FileHandle
  304.     ULONG        dtw_Mode
  305.     APTR        dtw_AttrList
  306.  
  307. DTWM_IFF    equ    0
  308. DTWM_RAW    equ    1
  309.  
  310. ;------------------------------------------------------------------------------
  311.  
  312.     ENDC    ; DATATYPES_DATATYPESCLASS_I
  313.