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

  1.     IFND LIBRARIES_ASL_I
  2. LIBRARIES_ASL_I    SET    1
  3. **
  4. **    $VER: asl.i 38.7 (5.1.93)
  5. **    Includes Release 40.15
  6. **
  7. **    ASL library structures and constants
  8. **
  9. **    (C) Copyright 1989-1993 Commodore-Amiga Inc.
  10. **    (C) Copyright 1989-1990 Charlie Heath
  11. **    All Rights Reserved
  12. **
  13.  
  14. ;---------------------------------------------------------------------------
  15.  
  16.     IFND EXEC_TYPES_I
  17.     INCLUDE "exec/types.i"
  18.     ENDC
  19.  
  20.     IFND EXEC_NODES_I
  21.     INCLUDE "exec/nodes.i"
  22.     ENDC
  23.  
  24.     IFND GRAPHICS_TEXT_I
  25.     INCLUDE "graphics/text.i"
  26.     ENDC
  27.  
  28.     IFND GRAPHICS_DISPLAYINFO_I
  29.     INCLUDE "graphics/displayinfo.i"
  30.     ENDC
  31.  
  32. ;---------------------------------------------------------------------------
  33.  
  34. AslName    MACRO
  35.     DC.B 'asl.library',0
  36.     ENDM
  37. ASL_TB    equ (TAG_USER+$80000)
  38.  
  39. ;---------------------------------------------------------------------------
  40.  
  41. ; Types of requesters known to ASL, used as arguments to AllocAslRequest()
  42. ASL_FileRequest          equ 0
  43. ASL_FontRequest          equ 1
  44. ASL_ScreenModeRequest equ 2
  45.  
  46. ;---------------------------------------------------------------------------
  47. ;*
  48. ;* ASL File Requester data structures and constants
  49. ;*
  50. ;* This structure must only be allocated by asl.library amd is READ-ONLY!
  51. ;* Control of the various fields is provided via tags when the requester
  52. ;* is created with AllocAslRequest() and when it is displayed via
  53. ;* AslRequest()
  54. ;*
  55.    STRUCTURE FileRequester,4
  56.     APTR    fr_File          ; Contents of File gadget on exit
  57.     APTR    fr_Drawer      ; Contents of Drawer gadget on exit
  58.     STRUCT    fr_Reserved1,10
  59.     WORD    fr_LeftEdge      ; Coordinates of requester on exit
  60.     WORD    fr_TopEdge
  61.     WORD    fr_Width
  62.     WORD    fr_Height
  63.     STRUCT    fr_Reserved2,2
  64.     LONG    fr_NumArgs      ; Number of files selected
  65.     APTR    fr_ArgList      ; List of files selected
  66.     APTR    fr_UserData      ; You can store your own data here
  67.     STRUCT    fr_Reserved3,8
  68.     APTR    fr_Pattern      ; Contents of Pattern gadget on exit
  69.  
  70. ; File requester tag values, used by AllocAslRequest() and AslRequest()
  71.  
  72. ; Window control
  73. ASLFR_Window          equ ASL_TB+2   ; Parent window
  74. ASLFR_Screen          equ ASL_TB+40  ; Screen to open on if no window
  75. ASLFR_PubScreenName   equ ASL_TB+41  ; Name of public screen
  76. ASLFR_PrivateIDCMP    equ ASL_TB+42  ; Allocate private IDCMP?
  77. ASLFR_IntuiMsgFunc    equ ASL_TB+70  ; Function to handle IntuiMessages
  78. ASLFR_SleepWindow     equ ASL_TB+43  ; Block input in ASLFR_Window?
  79. ASLFR_UserData          equ ASL_TB+52  ; What to put in fr_UserData
  80.  
  81. ; Text display
  82. ASLFR_TextAttr          equ ASL_TB+51  ; Text font to use for gadget text
  83. ASLFR_Locale          equ ASL_TB+50  ; Locale ASL should use for text
  84. ASLFR_TitleText       equ ASL_TB+1   ; Title of requester
  85. ASLFR_PositiveText    equ ASL_TB+18  ; Positive gadget text
  86. ASLFR_NegativeText    equ ASL_TB+19  ; Negative gadget text
  87.  
  88. ; Initial settings
  89. ASLFR_InitialLeftEdge equ ASL_TB+3   ; Initial requester coordinates
  90. ASLFR_InitialTopEdge  equ ASL_TB+4
  91. ASLFR_InitialWidth    equ ASL_TB+5   ; Initial requester dimensions
  92. ASLFR_InitialHeight   equ ASL_TB+6
  93. ASLFR_InitialFile     equ ASL_TB+8   ; Initial contents of File gadget
  94. ASLFR_InitialDrawer   equ ASL_TB+9   ; Initial contents of Drawer gadget
  95. ASLFR_InitialPattern  equ ASL_TB+10  ; Initial contents of Pattern gadget
  96.  
  97. ; Options
  98. ASLFR_Flags1          equ ASL_TB+20  ; Option flags
  99. ASLFR_Flags2          equ ASL_TB+22  ; Additional option flags
  100. ASLFR_DoSaveMode      equ ASL_TB+44  ; Being used for saving?
  101. ASLFR_DoMultiSelect   equ ASL_TB+45  ; Do multi-select?
  102. ASLFR_DoPatterns      equ ASL_TB+46  ; Display a Pattern gadget?
  103.  
  104. ; Filtering
  105. ASLFR_DrawersOnly     equ ASL_TB+47  ; Don't display files?
  106. ASLFR_FilterFunc      equ ASL_TB+49  ; Function to filter files
  107. ASLFR_RejectIcons     equ ASL_TB+60  ; Display .info files?
  108. ASLFR_RejectPattern   equ ASL_TB+61  ; Don't display files matching pattern
  109. ASLFR_AcceptPattern   equ ASL_TB+62  ; Accept only files matching pattern
  110. ASLFR_FilterDrawers   equ ASL_TB+63  ; Also filter drawers with patterns
  111. ASLFR_HookFunc          equ ASL_TB+7   ; Combined callback function
  112.  
  113. ; Flag bits for the ASLFR_Flags1 tag
  114.     BITDEF FR,DOWILDFUNC,7
  115.     BITDEF FR,DOMSGFUNC,6
  116.     BITDEF FR,DOSAVEMODE,5
  117.     BITDEF FR,PRIVATEIDCMP,4
  118.     BITDEF FR,DOMULTISELECT,3
  119.     BITDEF FR,DOPATTERNS,0
  120.  
  121. ; Flag bits for the ASLFR_Flags2 tag
  122.     BITDEF FR,DRAWERSONLY,0
  123.     BITDEF FR,FILTERDRAWERS,1
  124.     BITDEF FR,REJECTICONS,2
  125.  
  126. ;---------------------------------------------------------------------------
  127. ;*
  128. ;* ASL Font Requester data structures and constants
  129. ;*
  130. ;* This structure must only be allocated by asl.library amd is READ-ONLY!
  131. ;* Control of the various fields is provided via tags when the requester
  132. ;* is created with AllocAslRequest() and when it is displayed via
  133. ;* AslRequest()
  134. ;*
  135.    STRUCTURE FontRequester,8
  136.     STRUCT    fo_Attr,ta_SIZEOF    ; Returned TextAttr
  137.     UBYTE    fo_FrontPen         ; Returned front pen
  138.     UBYTE    fo_BackPen         ; Returned back pen
  139.     UBYTE    fo_DrawMode         ; Returned drawing mode
  140.     UBYTE    fo_Reserved1
  141.     APTR    fo_UserData         ; You can store your own data here
  142.     WORD    fo_LeftEdge         ; Coordinates of requester on exit
  143.     WORD    fo_TopEdge
  144.     WORD    fo_Width
  145.     WORD    fo_Height
  146.     STRUCT    fo_TAttr,tta_SIZEOF  ; Returned TTextAttr
  147.  
  148. ; Font requester tag values, used by AllocAslRequest() and AslRequest()
  149.  
  150. ; Window control
  151. ASLFO_Window          equ ASL_TB+2   ; Parent window
  152. ASLFO_Screen          equ ASL_TB+40  ; Screen to open on if no window
  153. ASLFO_PubScreenName   equ ASL_TB+41  ; Name of public screen
  154. ASLFO_PrivateIDCMP    equ ASL_TB+42  ; Allocate private IDCMP?
  155. ASLFO_IntuiMsgFunc    equ ASL_TB+70  ; Function to handle IntuiMessages
  156. ASLFO_SleepWindow     equ ASL_TB+43  ; Block input in ASLFO_Window?
  157. ASLFO_UserData          equ ASL_TB+52  ; What to put in fo_UserData
  158.  
  159. ; Text display
  160. ASLFO_TextAttr          equ ASL_TB+51  ; Text font to use for gadget text
  161. ASLFO_Locale          equ ASL_TB+50  ; Locale ASL should use for text
  162. ASLFO_TitleText       equ ASL_TB+1   ; Title of requester
  163. ASLFO_PositiveText    equ ASL_TB+18  ; Positive gadget text
  164. ASLFO_NegativeText    equ ASL_TB+19  ; Negative gadget text
  165.  
  166. ; Initial settings
  167. ASLFO_InitialLeftEdge equ ASL_TB+3   ; Initial requester coordinates
  168. ASLFO_InitialTopEdge  equ ASL_TB+4
  169. ASLFO_InitialWidth    equ ASL_TB+5   ; Initial requester dimensions
  170. ASLFO_InitialHeight   equ ASL_TB+6
  171. ASLFO_InitialName     equ ASL_TB+10  ; Initial contents of Name gadget
  172. ASLFO_InitialSize     equ ASL_TB+11  ; Initial contents of Size gadget
  173. ASLFO_InitialStyle    equ ASL_TB+12  ; Initial font style
  174. ASLFO_InitialFlags    equ ASL_TB+13  ; Initial font flags for TextAttr
  175. ASLFO_InitialFrontPen equ ASL_TB+14  ; Initial front pen
  176. ASLFO_InitialBackPen  equ ASL_TB+15  ; Initial back pen
  177. ASLFO_InitialDrawMode equ ASL_TB+59  ; Initial draw mode
  178.  
  179. ; Options
  180. ASLFO_Flags          equ ASL_TB+20  ; Option flags
  181. ASLFO_DoFrontPen      equ ASL_TB+44  ; Display Front color selector?
  182. ASLFO_DoBackPen       equ ASL_TB+45  ; Display Back color selector?
  183. ASLFO_DoStyle          equ ASL_TB+46  ; Display Style checkboxes?
  184. ASLFO_DoDrawMode      equ ASL_TB+47  ; Display DrawMode cycle gadget?
  185.  
  186. ; Filtering
  187. ASLFO_FixedWidthOnly  equ ASL_TB+48  ; Only allow fixed-width fonts?
  188. ASLFO_MinHeight       equ ASL_TB+16  ; Minimum font height to display
  189. ASLFO_MaxHeight       equ ASL_TB+17  ; Maximum font height to display
  190. ASLFO_FilterFunc      equ ASL_TB+49  ; Function to filter fonts
  191. ASLFO_HookFunc          equ ASL_TB+7   ; Combined callback function
  192. ASLFO_MaxFrontPen     equ ASL_TB+66  ; Max # of colors in front palette
  193. ASLFO_MaxBackPen      equ ASL_TB+67  ; Max # of colors in back palette
  194.  
  195. ; Custom additions
  196. ASLFO_ModeList          equ ASL_TB+21  ; Substitute list for drawmodes
  197. ASLFO_FrontColors     equ ASL_TB+64  ; Color table for front pen palette
  198. ASLFO_BackColors      equ ASL_TB+65  ; Color table for back pen palette
  199.  
  200. ; Flag bits for ASLFO_Flags tag
  201.     BITDEF FO,DOFRONTPEN,0
  202.     BITDEF FO,DOBACKPEN,1
  203.     BITDEF FO,DOFONTSTYLE,2
  204.     BITDEF FO,DODRAWMODE,3
  205.     BITDEF FO,FIXEDWIDTHONLY,4
  206.     BITDEF FO,PRIVATE,5
  207.     BITDEF FO,DOMSGFUNC,6
  208.     BITDEF FO,DOWILDFUNC,7
  209.  
  210. ;---------------------------------------------------------------------------
  211. ;*
  212. ;* ASL ScreenMode Requester data structures and constants
  213. ;*
  214. ;* This structure must only be allocated by asl.library and is READ-ONLY!
  215. ;* Control of the various fields is provided via tags when the requester
  216. ;* is created with AllocAslRequest() and when it is displayed via
  217. ;* AslRequest()
  218. ;*
  219.    STRUCTURE ScreenModeRequester,0
  220.     ULONG sm_DisplayID    ; Display mode ID
  221.     ULONG sm_DisplayWidth    ; Width of display in pixels
  222.     ULONG sm_DisplayHeight    ; Height of display in pixels
  223.     UWORD sm_DisplayDepth    ; Number of bit-planes of display
  224.     UWORD sm_OverscanType    ; Type of overscan of display
  225.     UWORD sm_AutoScroll    ; Display should auto-scroll?
  226.  
  227.     ULONG sm_BitMapWidth    ; Used to create your own BitMap
  228.     ULONG sm_BitMapHeight
  229.  
  230.     WORD  sm_LeftEdge    ; Coordinates of requester on exit
  231.     WORD  sm_TopEdge
  232.     WORD  sm_Width
  233.     WORD  sm_Height
  234.  
  235.     BOOL  sm_InfoOpened    ; Info window opened on exit?
  236.     WORD  sm_InfoLeftEdge    ; Last coordinates of Info window
  237.     WORD  sm_InfoTopEdge
  238.     WORD  sm_InfoWidth
  239.     WORD  sm_InfoHeight
  240.  
  241.     APTR  sm_UserData    ; You can store your own data here
  242.  
  243. ;* An Exec list of custom modes can be added to the list of available modes.
  244. ;* The DimensionInfo structure must be completely initialized, including the
  245. ;* Header. See <graphics/displayinfo.h>. Custom mode ID's must be in the range
  246. ;* 0xFFFF0000..0xFFFFFFFF. Regular properties which apply to your custom modes
  247. ;* can be added in the dn_PropertyFlags field. Custom properties are not
  248. ;* allowed.
  249. ;*
  250.    STRUCTURE DisplayMode,LN_SIZE                ; see ln_Name
  251.     STRUCT dm_DimensionInfo,dim_SIZEOF    ; mode description
  252.     ULONG  dm_PropertyFlags            ; applicable properties
  253.    LABEL DisplayMode_SIZEOF
  254.  
  255. ; ScreenMode requester tag values, used by AllocAslRequest() and AslRequest()
  256.  
  257. ; Window control
  258. ASLSM_Window          equ ASL_TB+2   ; Parent window
  259. ASLSM_Screen          equ ASL_TB+40  ; Screen to open on if no window
  260. ASLSM_PubScreenName   equ ASL_TB+41  ; Name of public screen
  261. ASLSM_PrivateIDCMP    equ ASL_TB+42  ; Allocate private IDCMP?
  262. ASLSM_IntuiMsgFunc    equ ASL_TB+70  ; Function to handle IntuiMessages
  263. ASLSM_SleepWindow     equ ASL_TB+43  ; Block input in ASLSM_Window?
  264. ASLSM_UserData        equ ASL_TB+52  ; What to put in sm_UserData
  265.  
  266. ; Text display
  267. ASLSM_TextAttr        equ ASL_TB+51  ; Text font to use for gadget text
  268. ASLSM_Locale          equ ASL_TB+50  ; Locale ASL should use for text
  269. ASLSM_TitleText       equ ASL_TB+1   ; Title of requester
  270. ASLSM_PositiveText    equ ASL_TB+18  ; Positive gadget text
  271. ASLSM_NegativeText    equ ASL_TB+19  ; Negative gadget text
  272.  
  273. ; Initial settings
  274. ASLSM_InitialLeftEdge equ ASL_TB+3   ; Initial requester coordinates
  275. ASLSM_InitialTopEdge  equ ASL_TB+4
  276. ASLSM_InitialWidth    equ ASL_TB+5   ; Initial requester dimensions
  277. ASLSM_InitialHeight   equ ASL_TB+6
  278. ASLSM_InitialDisplayID     equ ASL_TB+100 ; Initial display mode id
  279. ASLSM_InitialDisplayWidth  equ ASL_TB+101 ; Initial display width
  280. ASLSM_InitialDisplayHeight equ ASL_TB+102 ; Initial display height
  281. ASLSM_InitialDisplayDepth  equ ASL_TB+103 ; Initial display depth
  282. ASLSM_InitialOverscanType  equ ASL_TB+104 ; Initial type of overscan
  283. ASLSM_InitialAutoScroll    equ ASL_TB+105 ; Initial autoscroll setting
  284. ASLSM_InitialInfoOpened    equ ASL_TB+106 ; Info wndw initially opened?
  285. ASLSM_InitialInfoLeftEdge  equ ASL_TB+107 ; Initial Info window coords.
  286. ASLSM_InitialInfoTopEdge   equ ASL_TB+108
  287.  
  288. ; Options
  289. ASLSM_DoWidth         equ ASL_TB+109  ; Display Width gadget?
  290. ASLSM_DoHeight        equ ASL_TB+110  ; Display Height gadget?
  291. ASLSM_DoDepth         equ ASL_TB+111  ; Display Depth gadget?
  292. ASLSM_DoOverscanType  equ ASL_TB+112  ; Display Overscan Type gadget?
  293. ASLSM_DoAutoScroll    equ ASL_TB+113  ; Display AutoScroll gadget?
  294.  
  295. ; Filtering
  296. ASLSM_PropertyFlags   equ ASL_TB+114  ; Must have these Property flags
  297. ASLSM_PropertyMask    equ ASL_TB+115  ; Only these should be looked at
  298. ASLSM_MinWidth        equ ASL_TB+116  ; Minimum display width to allow
  299. ASLSM_MaxWidth        equ ASL_TB+117  ; Maximum display width to allow
  300. ASLSM_MinHeight       equ ASL_TB+118  ; Minimum display height to allow
  301. ASLSM_MaxHeight       equ ASL_TB+119  ; Maximum display height to allow
  302. ASLSM_MinDepth        equ ASL_TB+120  ; Minimum display depth
  303. ASLSM_MaxDepth        equ ASL_TB+121  ; Maximum display depth
  304. ASLSM_FilterFunc      equ ASL_TB+122  ; Function to filter mode id's
  305.  
  306. ; Custom additions
  307. ASLSM_CustomSMList    equ ASL_TB+123  ; Exec list of struct DisplayMode
  308.  
  309. ;---------------------------------------------------------------------------
  310. ; Obsolete ASL definitions, here for source code compatibility only.
  311. ; Please do NOT use in new code.
  312. ;
  313. ; Set ASL_V38_NAMES_ONLY to remove these older names
  314. ;
  315.     IFND ASL_V38_NAMES_ONLY
  316. rf_File        equ    fr_File
  317. rf_Dir        equ    fr_Drawer
  318. rf_LeftEdge    equ    fr_LeftEdge
  319. rf_TopEdge    equ    fr_TopEdge
  320. rf_Width    equ    fr_Width
  321. rf_Height    equ    fr_Height
  322. rf_NumArgs    equ    fr_NumArgs
  323. rf_ArgList    equ    fr_ArgList
  324. rf_UserData    equ    fr_UserData
  325. rf_Pat        equ    fr_Pattern
  326. ASL_Dummy    equ    TAG_USER+$80000
  327. ASL_Hail    equ    ASL_Dummy+1
  328. ASL_Window    equ    ASL_Dummy+2
  329. ASL_LeftEdge    equ    ASL_Dummy+3
  330. ASL_TopEdge    equ    ASL_Dummy+4
  331. ASL_Width    equ    ASL_Dummy+5
  332. ASL_Height    equ    ASL_Dummy+6
  333. ASL_HookFunc    equ    ASL_Dummy+7
  334. ASL_File    equ    ASL_Dummy+8
  335. ASL_Dir        equ    ASL_Dummy+9
  336. ASL_Pattern    equ    ASL_Dummy+10
  337. ASL_FontName    equ    ASL_Dummy+10
  338. ASL_FontHeight    equ    ASL_Dummy+11
  339. ASL_FontStyles    equ    ASL_Dummy+12
  340. ASL_FontFlags    equ    ASL_Dummy+13
  341. ASL_FrontPen    equ    ASL_Dummy+14
  342. ASL_BackPen    equ    ASL_Dummy+15
  343. ASL_MinHeight    equ    ASL_Dummy+16
  344. ASL_MaxHeight    equ    ASL_Dummy+17
  345. ASL_OKText    equ    ASL_Dummy+18
  346. ASL_CancelText    equ    ASL_Dummy+19
  347. ASL_FuncFlags    equ    ASL_Dummy+20
  348. ASL_ModeList    equ    ASL_Dummy+21
  349. ASL_ExtFlags1    equ    ASL_Dummy+22
  350. ; remember what I said up there? Do not use these anymore!
  351.     BITDEF    FIL,PATGAD,0
  352.     BITDEF    FIL,MULTISELECT,3
  353.     BITDEF    FIL,NEWIDCMP,4
  354.     BITDEF    FIL,SAVE,5
  355.     BITDEF    FIL,DOMSGFUNC,6
  356.     BITDEF    FIL,DOWILDFUNC,7
  357.     BITDEF    FIL1,NOFILES,0
  358.     BITDEF    FIL1,MATCHDIRS,1
  359.     BITDEF    RF,DOWILDFUNC,7
  360.     BITDEF    RF,DOMSGFUNC,6
  361.     BITDEF    RF,DOCOLOR,5
  362.     BITDEF    RF,NEWIDCMP,4
  363.     BITDEF    RF,MULTISELECT,3
  364.     BITDEF    RF,PATGAD,0
  365.     BITDEF    FON,FRONTCOLOR,0
  366.     BITDEF    FON,BACKCOLOR,1
  367.     BITDEF    FON,STYLES,2
  368.     BITDEF    FON,DRAWMODE,3
  369.     BITDEF    FON,FIXEDWIDTH,4
  370.     BITDEF    FON,NEWIDCMP,5
  371.     BITDEF    FON,DOMSGFUNC,6
  372.     BITDEF    FON,DOWILDFUNC,7
  373.     ENDC
  374.  
  375. ;---------------------------------------------------------------------------
  376.  
  377.     ENDC    ; LIBRARIES_ASL_I
  378.