home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
cbm
/
os-include.lha
/
os-include
/
libraries
/
asl.i
< prev
next >
Wrap
Text File
|
1993-10-15
|
14KB
|
378 lines
IFND LIBRARIES_ASL_I
LIBRARIES_ASL_I SET 1
**
** $VER: asl.i 38.7 (5.1.93)
** Includes Release 40.15
**
** ASL library structures and constants
**
** (C) Copyright 1989-1993 Commodore-Amiga Inc.
** (C) Copyright 1989-1990 Charlie Heath
** All Rights Reserved
**
;---------------------------------------------------------------------------
IFND EXEC_TYPES_I
INCLUDE "exec/types.i"
ENDC
IFND EXEC_NODES_I
INCLUDE "exec/nodes.i"
ENDC
IFND GRAPHICS_TEXT_I
INCLUDE "graphics/text.i"
ENDC
IFND GRAPHICS_DISPLAYINFO_I
INCLUDE "graphics/displayinfo.i"
ENDC
;---------------------------------------------------------------------------
AslName MACRO
DC.B 'asl.library',0
ENDM
ASL_TB equ (TAG_USER+$80000)
;---------------------------------------------------------------------------
; Types of requesters known to ASL, used as arguments to AllocAslRequest()
ASL_FileRequest equ 0
ASL_FontRequest equ 1
ASL_ScreenModeRequest equ 2
;---------------------------------------------------------------------------
;*
;* ASL File Requester data structures and constants
;*
;* This structure must only be allocated by asl.library amd is READ-ONLY!
;* Control of the various fields is provided via tags when the requester
;* is created with AllocAslRequest() and when it is displayed via
;* AslRequest()
;*
STRUCTURE FileRequester,4
APTR fr_File ; Contents of File gadget on exit
APTR fr_Drawer ; Contents of Drawer gadget on exit
STRUCT fr_Reserved1,10
WORD fr_LeftEdge ; Coordinates of requester on exit
WORD fr_TopEdge
WORD fr_Width
WORD fr_Height
STRUCT fr_Reserved2,2
LONG fr_NumArgs ; Number of files selected
APTR fr_ArgList ; List of files selected
APTR fr_UserData ; You can store your own data here
STRUCT fr_Reserved3,8
APTR fr_Pattern ; Contents of Pattern gadget on exit
; File requester tag values, used by AllocAslRequest() and AslRequest()
; Window control
ASLFR_Window equ ASL_TB+2 ; Parent window
ASLFR_Screen equ ASL_TB+40 ; Screen to open on if no window
ASLFR_PubScreenName equ ASL_TB+41 ; Name of public screen
ASLFR_PrivateIDCMP equ ASL_TB+42 ; Allocate private IDCMP?
ASLFR_IntuiMsgFunc equ ASL_TB+70 ; Function to handle IntuiMessages
ASLFR_SleepWindow equ ASL_TB+43 ; Block input in ASLFR_Window?
ASLFR_UserData equ ASL_TB+52 ; What to put in fr_UserData
; Text display
ASLFR_TextAttr equ ASL_TB+51 ; Text font to use for gadget text
ASLFR_Locale equ ASL_TB+50 ; Locale ASL should use for text
ASLFR_TitleText equ ASL_TB+1 ; Title of requester
ASLFR_PositiveText equ ASL_TB+18 ; Positive gadget text
ASLFR_NegativeText equ ASL_TB+19 ; Negative gadget text
; Initial settings
ASLFR_InitialLeftEdge equ ASL_TB+3 ; Initial requester coordinates
ASLFR_InitialTopEdge equ ASL_TB+4
ASLFR_InitialWidth equ ASL_TB+5 ; Initial requester dimensions
ASLFR_InitialHeight equ ASL_TB+6
ASLFR_InitialFile equ ASL_TB+8 ; Initial contents of File gadget
ASLFR_InitialDrawer equ ASL_TB+9 ; Initial contents of Drawer gadget
ASLFR_InitialPattern equ ASL_TB+10 ; Initial contents of Pattern gadget
; Options
ASLFR_Flags1 equ ASL_TB+20 ; Option flags
ASLFR_Flags2 equ ASL_TB+22 ; Additional option flags
ASLFR_DoSaveMode equ ASL_TB+44 ; Being used for saving?
ASLFR_DoMultiSelect equ ASL_TB+45 ; Do multi-select?
ASLFR_DoPatterns equ ASL_TB+46 ; Display a Pattern gadget?
; Filtering
ASLFR_DrawersOnly equ ASL_TB+47 ; Don't display files?
ASLFR_FilterFunc equ ASL_TB+49 ; Function to filter files
ASLFR_RejectIcons equ ASL_TB+60 ; Display .info files?
ASLFR_RejectPattern equ ASL_TB+61 ; Don't display files matching pattern
ASLFR_AcceptPattern equ ASL_TB+62 ; Accept only files matching pattern
ASLFR_FilterDrawers equ ASL_TB+63 ; Also filter drawers with patterns
ASLFR_HookFunc equ ASL_TB+7 ; Combined callback function
; Flag bits for the ASLFR_Flags1 tag
BITDEF FR,DOWILDFUNC,7
BITDEF FR,DOMSGFUNC,6
BITDEF FR,DOSAVEMODE,5
BITDEF FR,PRIVATEIDCMP,4
BITDEF FR,DOMULTISELECT,3
BITDEF FR,DOPATTERNS,0
; Flag bits for the ASLFR_Flags2 tag
BITDEF FR,DRAWERSONLY,0
BITDEF FR,FILTERDRAWERS,1
BITDEF FR,REJECTICONS,2
;---------------------------------------------------------------------------
;*
;* ASL Font Requester data structures and constants
;*
;* This structure must only be allocated by asl.library amd is READ-ONLY!
;* Control of the various fields is provided via tags when the requester
;* is created with AllocAslRequest() and when it is displayed via
;* AslRequest()
;*
STRUCTURE FontRequester,8
STRUCT fo_Attr,ta_SIZEOF ; Returned TextAttr
UBYTE fo_FrontPen ; Returned front pen
UBYTE fo_BackPen ; Returned back pen
UBYTE fo_DrawMode ; Returned drawing mode
UBYTE fo_Reserved1
APTR fo_UserData ; You can store your own data here
WORD fo_LeftEdge ; Coordinates of requester on exit
WORD fo_TopEdge
WORD fo_Width
WORD fo_Height
STRUCT fo_TAttr,tta_SIZEOF ; Returned TTextAttr
; Font requester tag values, used by AllocAslRequest() and AslRequest()
; Window control
ASLFO_Window equ ASL_TB+2 ; Parent window
ASLFO_Screen equ ASL_TB+40 ; Screen to open on if no window
ASLFO_PubScreenName equ ASL_TB+41 ; Name of public screen
ASLFO_PrivateIDCMP equ ASL_TB+42 ; Allocate private IDCMP?
ASLFO_IntuiMsgFunc equ ASL_TB+70 ; Function to handle IntuiMessages
ASLFO_SleepWindow equ ASL_TB+43 ; Block input in ASLFO_Window?
ASLFO_UserData equ ASL_TB+52 ; What to put in fo_UserData
; Text display
ASLFO_TextAttr equ ASL_TB+51 ; Text font to use for gadget text
ASLFO_Locale equ ASL_TB+50 ; Locale ASL should use for text
ASLFO_TitleText equ ASL_TB+1 ; Title of requester
ASLFO_PositiveText equ ASL_TB+18 ; Positive gadget text
ASLFO_NegativeText equ ASL_TB+19 ; Negative gadget text
; Initial settings
ASLFO_InitialLeftEdge equ ASL_TB+3 ; Initial requester coordinates
ASLFO_InitialTopEdge equ ASL_TB+4
ASLFO_InitialWidth equ ASL_TB+5 ; Initial requester dimensions
ASLFO_InitialHeight equ ASL_TB+6
ASLFO_InitialName equ ASL_TB+10 ; Initial contents of Name gadget
ASLFO_InitialSize equ ASL_TB+11 ; Initial contents of Size gadget
ASLFO_InitialStyle equ ASL_TB+12 ; Initial font style
ASLFO_InitialFlags equ ASL_TB+13 ; Initial font flags for TextAttr
ASLFO_InitialFrontPen equ ASL_TB+14 ; Initial front pen
ASLFO_InitialBackPen equ ASL_TB+15 ; Initial back pen
ASLFO_InitialDrawMode equ ASL_TB+59 ; Initial draw mode
; Options
ASLFO_Flags equ ASL_TB+20 ; Option flags
ASLFO_DoFrontPen equ ASL_TB+44 ; Display Front color selector?
ASLFO_DoBackPen equ ASL_TB+45 ; Display Back color selector?
ASLFO_DoStyle equ ASL_TB+46 ; Display Style checkboxes?
ASLFO_DoDrawMode equ ASL_TB+47 ; Display DrawMode cycle gadget?
; Filtering
ASLFO_FixedWidthOnly equ ASL_TB+48 ; Only allow fixed-width fonts?
ASLFO_MinHeight equ ASL_TB+16 ; Minimum font height to display
ASLFO_MaxHeight equ ASL_TB+17 ; Maximum font height to display
ASLFO_FilterFunc equ ASL_TB+49 ; Function to filter fonts
ASLFO_HookFunc equ ASL_TB+7 ; Combined callback function
ASLFO_MaxFrontPen equ ASL_TB+66 ; Max # of colors in front palette
ASLFO_MaxBackPen equ ASL_TB+67 ; Max # of colors in back palette
; Custom additions
ASLFO_ModeList equ ASL_TB+21 ; Substitute list for drawmodes
ASLFO_FrontColors equ ASL_TB+64 ; Color table for front pen palette
ASLFO_BackColors equ ASL_TB+65 ; Color table for back pen palette
; Flag bits for ASLFO_Flags tag
BITDEF FO,DOFRONTPEN,0
BITDEF FO,DOBACKPEN,1
BITDEF FO,DOFONTSTYLE,2
BITDEF FO,DODRAWMODE,3
BITDEF FO,FIXEDWIDTHONLY,4
BITDEF FO,PRIVATE,5
BITDEF FO,DOMSGFUNC,6
BITDEF FO,DOWILDFUNC,7
;---------------------------------------------------------------------------
;*
;* ASL ScreenMode Requester data structures and constants
;*
;* This structure must only be allocated by asl.library and is READ-ONLY!
;* Control of the various fields is provided via tags when the requester