home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / datatypes / datatypesclass.i < prev    next >
Text File  |  1993-10-15  |  8KB  |  339 lines

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