home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / libraries / asl.e < prev    next >
Text File  |  1995-07-05  |  8KB  |  303 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. OPT PREPROCESS
  5.  
  6. MODULE 'exec/lists',
  7.        'exec/nodes',
  8.        'graphics/displayinfo',
  9.        'graphics/text',
  10.        'workbench/startup'
  11.  
  12. #define ASLNAME 'asl.library'
  13.  
  14. CONST ASL_TB=$80080000,
  15.       ASL_FILEREQUEST=0,
  16.       ASL_FONTREQUEST=1,
  17.       ASL_SCREENMODEREQUEST=2
  18.  
  19. OBJECT filerequester
  20.   reserved0[4]:ARRAY
  21.   file:LONG
  22.   drawer:LONG
  23.   reserved1[10]:ARRAY
  24.   leftedge:INT
  25.   topedge:INT
  26.   width:INT
  27.   height:INT
  28.   reserved2[2]:ARRAY
  29.   numargs:LONG
  30.   arglist:PTR TO wbarg
  31.   userdata:LONG
  32.   reserved3[8]:ARRAY
  33.   pattern:PTR TO CHAR
  34. ENDOBJECT     /* SIZEOF=NONE !!! */
  35.  
  36. CONST ASLFR_WINDOW=$80080002,
  37.       ASLFR_SCREEN=$80080028,
  38.       ASLFR_PUBSCREENNAME=$80080029,
  39.       ASLFR_PRIVATEIDCMP=$8008002A,
  40.       ASLFR_INTUIMSGFUNC=$80080046,
  41.       ASLFR_SLEEPWINDOW=$8008002B,
  42.       ASLFR_USERDATA=$80080034,
  43.       ASLFR_TEXTATTR=$80080033,
  44.       ASLFR_LOCALE=$80080032,
  45.       ASLFR_TITLETEXT=$80080001,
  46.       ASLFR_POSITIVETEXT=$80080012,
  47.       ASLFR_NEGATIVETEXT=$80080013,
  48.       ASLFR_INITIALLEFTEDGE=$80080003,
  49.       ASLFR_INITIALTOPEDGE=$80080004,
  50.       ASLFR_INITIALWIDTH=$80080005,
  51.       ASLFR_INITIALHEIGHT=$80080006,
  52.       ASLFR_INITIALFILE=$80080008,
  53.       ASLFR_INITIALDRAWER=$80080009,
  54.       ASLFR_INITIALPATTERN=$8008000A,
  55.       ASLFR_FLAGS1=$80080014,
  56.       ASLFR_FLAGS2=$80080016,
  57.       ASLFR_DOSAVEMODE=$8008002C,
  58.       ASLFR_DOMULTISELECT=$8008002D,
  59.       ASLFR_DOPATTERNS=$8008002E,
  60.       ASLFR_DRAWERSONLY=$8008002F,
  61.       ASLFR_FILTERFUNC=$80080031,
  62.       ASLFR_REJECTICONS=$8008003C,
  63.       ASLFR_REJECTPATTERN=$8008003D,
  64.       ASLFR_ACCEPTPATTERN=$8008003E,
  65.       ASLFR_FILTERDRAWERS=$8008003F,
  66.       ASLFR_HOOKFUNC=$80080007,
  67.       FRF_DOWILDFUNC=$80, -> Obsolete
  68.       FRB_FILTERFUNC=7,
  69.       FRF_FILTERFUNC=$80,
  70.       FRF_DOMSGFUNC=$40, -> Obsolete
  71.       FRB_INTUIFUNC=6,
  72.       FRF_INTUIFUNC=$40,
  73.       FRB_DOSAVEMODE=5,
  74.       FRF_DOSAVEMODE=$20,
  75.       FRB_PRIVATEIDCMP=4,
  76.       FRF_PRIVATEIDCMP=16,
  77.       FRB_DOMULTISELECT=3,
  78.       FRF_DOMULTISELECT=8,
  79.       FRB_DOPATTERNS=0,
  80.       FRF_DOPATTERNS=1,
  81.       FRB_DRAWERSONLY=0,
  82.       FRF_DRAWERSONLY=1,
  83.       FRB_FILTERDRAWERS=1,
  84.       FRF_FILTERDRAWERS=2,
  85.       FRB_REJECTICONS=2,
  86.       FRF_REJECTICONS=4
  87.  
  88. OBJECT fontrequester
  89.   reserved0[8]:ARRAY
  90.   attr:textattr
  91.   frontpen:CHAR
  92.   backpen:CHAR
  93.   drawmode:CHAR
  94.   reserved1:CHAR
  95.   userdata:LONG
  96.   leftedge:INT
  97.   topedge:INT
  98.   width:INT
  99.   height:INT
  100.   tattr:ttextattr
  101. ENDOBJECT     /* SIZEOF=NONE !!! */
  102.  
  103. CONST ASLFO_WINDOW=$80080002,
  104.       ASLFO_SCREEN=$80080028,
  105.       ASLFO_PUBSCREENNAME=$80080029,
  106.       ASLFO_PRIVATEIDCMP=$8008002A,
  107.       ASLFO_INTUIMSGFUNC=$80080046,
  108.       ASLFO_SLEEPWINDOW=$8008002B,
  109.       ASLFO_USERDATA=$80080034,
  110.       ASLFO_TEXTATTR=$80080033,
  111.       ASLFO_LOCALE=$80080032,
  112.       ASLFO_TITLETEXT=$80080001,
  113.       ASLFO_POSITIVETEXT=$80080012,
  114.       ASLFO_NEGATIVETEXT=$80080013,
  115.       ASLFO_INITIALLEFTEDGE=$80080003,
  116.       ASLFO_INITIALTOPEDGE=$80080004,
  117.       ASLFO_INITIALWIDTH=$80080005,
  118.       ASLFO_INITIALHEIGHT=$80080006,
  119.       ASLFO_INITIALNAME=$8008000A,
  120.       ASLFO_INITIALSIZE=$8008000B,
  121.       ASLFO_INITIALSTYLE=$8008000C,
  122.       ASLFO_INITIALFLAGS=$8008000D,
  123.       ASLFO_INITIALFRONTPEN=$8008000E,
  124.       ASLFO_INITIALBACKPEN=$8008000F,
  125.       ASLFO_INITIALDRAWMODE=$8008003B,
  126.       ASLFO_FLAGS=$80080014,
  127.       ASLFO_DOFRONTPEN=$8008002C,
  128.       ASLFO_DOBACKPEN=$8008002D,
  129.       ASLFO_DOSTYLE=$8008002E,
  130.       ASLFO_DODRAWMODE=$8008002F,
  131.       ASLFO_FIXEDWIDTHONLY=$80080030,
  132.       ASLFO_MINHEIGHT=$80080010,
  133.       ASLFO_MAXHEIGHT=$80080011,
  134.       ASLFO_FILTERFUNC=$80080031,
  135.       ASLFO_HOOKFUNC=$80080007,
  136.       ASLFO_MODELIST=$80080015,
  137.       ASLFO_FRONTPENS=$80080040,
  138.       ASLFO_BACKPENS=$80080041,
  139.       ASLFO_MAXFRONTPEN=$80080042,
  140.       ASLFO_MAXBACKPEN=$80080043,
  141.       FOB_DOFRONTPEN=0,
  142.       FOB_DOBACKPEN=1,
  143.       FOB_DOFONTSTYLE=2,
  144.       FOB_DODRAWMODE=3,
  145.       FOB_FIXEDWIDTHONLY=4,
  146.       FOB_PRIVATEIDCMP=5,
  147.       FOB_INTUIFUNC=6,
  148.       FOB_FILTERFUNC=7,
  149.       FOF_DOFRONTPEN=1,
  150.       FOF_DOBACKPEN=2,
  151.       FOF_DOFONTSTYLE=4,
  152.       FOF_DODRAWMODE=8,
  153.       FOF_FIXEDWIDTHONLY=16,
  154.       FOF_PRIVATE=$20, -> Obsolete
  155.       FOF_PRIVATEIDCMP=$20,
  156.       FOF_DOMSGFUNC=$40, -> Obsolete
  157.       FOF_INTUIFUNC=$40,
  158.       FOF_DOWILDFUNC=$80, -> Obsolete
  159.       FOF_FILTERFUNC=$80
  160.  
  161. OBJECT screenmoderequester
  162.   displayid:LONG
  163.   displaywidth:LONG
  164.   displayheight:LONG
  165.   displaydepth:INT  -> This is unsigned
  166.   overscantype:INT  -> This is unsigned
  167.   autoscroll:INT
  168.   bitmapwidth:LONG
  169.   bitmapheight:LONG
  170.   leftedge:INT
  171.   topedge:INT
  172.   width:INT
  173.   height:INT
  174.   infoopened:INT
  175.   infoleftedge:INT
  176.   infotopedge:INT
  177.   infowidth:INT
  178.   infoheight:INT
  179.   userdata:LONG
  180. ENDOBJECT     /* SIZEOF=NONE !!! */
  181.  
  182. OBJECT displaymode
  183.   ln:ln
  184.   dimensioninfo:dimensioninfo
  185.   propertyflags:LONG
  186. ENDOBJECT     /* SIZEOF=106 */
  187.  
  188. CONST ASLSM_WINDOW=$80080002,
  189.       ASLSM_SCREEN=$80080028,
  190.       ASLSM_PUBSCREENNAME=$80080029,
  191.       ASLSM_PRIVATEIDCMP=$8008002A,
  192.       ASLSM_INTUIMSGFUNC=$80080046,
  193.       ASLSM_SLEEPWINDOW=$8008002B,
  194.       ASLSM_USERDATA=$80080034,
  195.       ASLSM_TEXTATTR=$80080033,
  196.       ASLSM_LOCALE=$80080032,
  197.       ASLSM_TITLETEXT=$80080001,
  198.       ASLSM_POSITIVETEXT=$80080012,
  199.       ASLSM_NEGATIVETEXT=$80080013,
  200.       ASLSM_INITIALLEFTEDGE=$80080003,
  201.       ASLSM_INITIALTOPEDGE=$80080004,
  202.       ASLSM_INITIALWIDTH=$80080005,
  203.       ASLSM_INITIALHEIGHT=$80080006,
  204.       ASLSM_INITIALDISPLAYID=$80080064,
  205.       ASLSM_INITIALDISPLAYWIDTH=$80080065,
  206.       ASLSM_INITIALDISPLAYHEIGHT=$80080066,
  207.       ASLSM_INITIALDISPLAYDEPTH=$80080067,
  208.       ASLSM_INITIALOVERSCANTYPE=$80080068,
  209.       ASLSM_INITIALAUTOSCROLL=$80080069,
  210.       ASLSM_INITIALINFOOPENED=$8008006A,
  211.       ASLSM_INITIALINFOLEFTEDGE=$8008006B,
  212.       ASLSM_INITIALINFOTOPEDGE=$8008006C,
  213.       ASLSM_DOWIDTH=$8008006D,
  214.       ASLSM_DOHEIGHT=$8008006E,
  215.       ASLSM_DODEPTH=$8008006F,
  216.       ASLSM_DOOVERSCANTYPE=$80080070,
  217.       ASLSM_DOAUTOSCROLL=$80080071,
  218.       ASLSM_PROPERTYFLAGS=$80080072,
  219.       ASLSM_PROPERTYMASK=$80080073,
  220.       ASLSM_MINWIDTH=$80080074,
  221.       ASLSM_MAXWIDTH=$80080075,
  222.       ASLSM_MINHEIGHT=$80080076,
  223.       ASLSM_MAXHEIGHT=$80080077,
  224.       ASLSM_MINDEPTH=$80080078,
  225.       ASLSM_MAXDEPTH=$80080079,
  226.       ASLSM_FILTERFUNC=$8008007A,
  227.       ASLSM_CUSTOMSMLIST=$8008007B
  228.  
  229.  -> Obsolete
  230. CONST RF_FILE=4,
  231.       RF_DIR=8,
  232.       RF_LEFTEDGE=22,
  233.       RF_TOPEDGE=24,
  234.       RF_WIDTH=26,
  235.       RF_HEIGHT=28,
  236.       RF_NUMARGS=$20,
  237.       RF_ARGLIST=$24,
  238.       RF_USERDATA=$28,
  239.       RF_PAT=$34,
  240.       ASL_DUMMY=$80080000,
  241.       ASL_HAIL=$80080001,
  242.       ASL_WINDOW=$80080002,
  243.       ASL_LEFTEDGE=$80080003,
  244.       ASL_TOPEDGE=$80080004,
  245.       ASL_WIDTH=$80080005,
  246.       ASL_HEIGHT=$80080006,
  247.       ASL_HOOKFUNC=$80080007,
  248.       ASL_FILE=$80080008,
  249.       ASL_DIR=$80080009,
  250.       ASL_PATTERN=$8008000A,
  251.       ASL_FONTNAME=$8008000A,
  252.       ASL_FONTHEIGHT=$8008000B,
  253.       ASL_FONTSTYLES=$8008000C,
  254.       ASL_FONTFLAGS=$8008000D,
  255.       ASL_FRONTPEN=$8008000E,
  256.       ASL_BACKPEN=$8008000F,
  257.       ASL_MINHEIGHT=$80080010,
  258.       ASL_MAXHEIGHT=$80080011,
  259.       ASL_OKTEXT=$80080012,
  260.       ASL_CANCELTEXT=$80080013,
  261.       ASL_FUNCFLAGS=$80080014,
  262.       ASL_MODELIST=$80080015,
  263.       ASL_EXTFLAGS1=$80080016,
  264.       FILB_PATGAD=0,
  265.       FILB_MULTISELECT=3,
  266.       FILB_NEWIDCMP=4,
  267.       FILB_SAVE=5,
  268.       FILB_DOMSGFUNC=6,
  269.       FILB_DOWILDFUNC=7,
  270.       FILF_PATGAD=1,
  271.       FILF_MULTISELECT=8,
  272.       FILF_NEWIDCMP=16,
  273.       FILF_SAVE=$20,
  274.       FILF_DOMSGFUNC=$40,
  275.       FILF_DOWILDFUNC=$80,
  276.       FIL1B_NOFILES=0,
  277.       FIL1B_MATCHDIRS=1,
  278.       FIL1F_NOFILES=1,
  279.       FIL1F_MATCHDIRS=2,
  280.       RFF_DOWILDFUNC=$80,
  281.       RFF_DOMSGFUNC=$40,
  282.       RFF_DOCOLOR=$20,
  283.       RFF_NEWIDCMP=16,
  284.       RFF_MULTISELECT=8,
  285.       RFF_PATGAD=1,
  286.       FONB_FRONTCOLOR=0,
  287.       FONB_BACKCOLOR=1,
  288.       FONB_STYLES=2,
  289.       FONB_DRAWMODE=3,
  290.       FONB_FIXEDWIDTH=4,
  291.       FONB_NEWIDCMP=5,
  292.       FONB_DOMSGFUNC=6,
  293.       FONB_DOWILDFUNC=7,
  294.       FONF_FRONTCOLOR=1,
  295.       FONF_BACKCOLOR=2,
  296.       FONF_STYLES=4,
  297.       FONF_DRAWMODE=8,
  298.       FONF_FIXEDWIDTH=16,
  299.       FONF_NEWIDCMP=$20,
  300.       FONF_DOMSGFUNC=$40,
  301.       FONF_DOWILDFUNC=$80
  302.  
  303.