home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / misc / imagefx_sdk / include / scan / mod.i < prev    next >
Encoding:
Text File  |  1994-05-10  |  5.1 KB  |  186 lines

  1.                 include 'exec/types.i'
  2.                 include 'exec/libraries.i'
  3.                 include 'exec/semaphores.i'
  4.                 include 'dos/dos.i'
  5.  
  6.                 include 'scan/ged.i'
  7.                 include 'scan/prefs.i'
  8.  
  9.  
  10. MOD_VERSION    EQU    1
  11. MOD_REVISION    EQU    0
  12.  
  13.  
  14. *
  15. * ModuleBase - This is the standard library node used by
  16. *              external modules.  Image Scan will create
  17. *              this structure when the module is opened.
  18. *
  19. *              The module should fill in the NumGads, NewGad,
  20. *              Language, and LangCount fields before returning
  21. *              from its custom Open function.
  22. *
  23.  
  24.               STRUCTURE ModuleBase,LIB_SIZE
  25.                 UBYTE   mb_Flags
  26.                 UBYTE   mb_NumGads
  27.                 BPTR    mb_Segment
  28.                 APTR    mb_SysLib
  29.                 APTR    mb_ScanBase
  30.                 APTR    mb_NewGad
  31.                 STRUCT  mb_GContext,gedctxt_SIZEOF
  32.                 APTR    mb_Language
  33.                 APTR    mb_Text
  34.                 LONG    mb_LangCount
  35.                 APTR    mb_CmdTable
  36.                 ULONG   mb_PrefID
  37.                 ULONG   mb_PrefLen
  38.                 STRUCT  mb_Reserved,4*14
  39.                 LABEL   modbase_SIZEOF
  40.                 ; 64 bytes reserved here...
  41.                 STRUCT  mb_Private,64
  42.                 LABEL   xmodbase_SIZEOF
  43.  
  44. MB_VISIBLE    EQU    0
  45. MB_TEXTLOADED    EQU    1
  46.  
  47. *
  48. * ScanBase - The library base maintained by Image Scan.  Hook programs
  49. *            will open this library to gain access to Image Scan functions,
  50. *            while modules will be passed a pointer directly to this
  51. *            base for accessing the same functions.  These fields should
  52. *            be considered READ ONLY, excepted where noted otherwise.
  53. *
  54.  
  55.               STRUCTURE ScanBase,LIB_SIZE
  56.                 APTR    sb_pScreen
  57.                 APTR    sb_pWindow
  58.                 APTR    sb_pRPort
  59.                 STRUCT  sb_Prefs,prefs_SIZEOF
  60.                 APTR    sb_IntuitionBase
  61.                 APTR    sb_GfxBase
  62.                 ULONG   sb_LastError
  63.                 APTR    sb_MainBuffer
  64.                 APTR    sb_SwapBuffer
  65.                 APTR    sb_Text
  66.                 STRUCT  sb_Lock,SS_SIZE
  67.                 APTR    sb_Alpha
  68.                 ;
  69.                 ; New for Mirage 0.53:
  70.                 ;
  71.                 BYTE    sb_AreaTool
  72.                 BYTE    sb_DrawTool
  73.                 UBYTE   sb_Channel
  74.                 BYTE    sb_GuiLocked
  75.  
  76.                 BYTE    sb_ArexxCmd
  77.                 BYTE    sb_Iconified
  78.  
  79.                 BYTE    sb_FillType
  80.                 BYTE    sb_FillRange1
  81.                 BYTE    sb_FillRange2
  82.                 BYTE    sb_FillSmooth
  83.                 BYTE    sb_FillSkew
  84.                 BYTE    sb_FillRough
  85.                 WORD    sb_FloodClose
  86.                 BYTE    sb_LightTab
  87.                 BYTE    sb_AlphaMask
  88.  
  89.                 BYTE    sb_EdgeMode
  90.                 UBYTE   sb_EdgeDir
  91.                 WORD    sb_EdgeRadius
  92.  
  93.                 BYTE    sb_Hidden
  94.                 BYTE    sb_TranspRange
  95.                 WORD    sb_TranspClose
  96.  
  97.                 BYTE    sb_AirRadius
  98.                 BYTE    sb_DrawMode
  99.                 BYTE    sb_DrawBlend
  100.                 BYTE    sb_Mode
  101.  
  102.                 WORD    sb_GridX
  103.                 WORD    sb_GridY
  104.                 WORD    sb_GOffsetX
  105.                 WORD    sb_GOffsetY
  106.  
  107.                 APTR    sb_Brush
  108.  
  109.                 APTR    sb_Scanner
  110.                 APTR    sb_Render
  111.                 APTR    sb_Printer
  112.  
  113.                 APTR    sb_PubName
  114.                 APTR    sb_ArexxName
  115.  
  116.                 APTR    sb_CurrentDir
  117.                 APTR    sb_ThisTask
  118.  
  119.                 BYTE    sb_DrawAlpha
  120.                 BYTE    sb_AirDensity
  121.                 BYTE    sb_AirSmear
  122.                 BYTE    sb_BackPen
  123.  
  124.                 APTR    sb_Shanghai
  125.  
  126.                 BYTE    sb_PenType
  127.                 BYTE    sb_PenSize
  128.                 BYTE    sb_AlphaTab
  129.                 BYTE    sb_AirRough
  130.  
  131.                 APTR    sb_HookMsg
  132.  
  133.                 APTR    sb_vScreen
  134.  
  135.                 APTR    sb_HelpLock
  136.  
  137.                 APTR    sb_HostPort
  138.  
  139.                 ULONG   sb_Magic
  140.  
  141.                 APTR    sb_TextLock
  142.  
  143.                 WORD    sb_PantoDX
  144.                 WORD    sb_PantoDY
  145.                 WORD    sb_PantoCX
  146.                 WORD    sb_PantoCY
  147.  
  148.                 APTR    sb_PenArray
  149.                 WORD    sb_PenWidth
  150.                 WORD    sb_PenHeight
  151.  
  152.                 APTR    sb_AirArray
  153.                 WORD    sb_AirWidth
  154.                 WORD    sb_AirHeight
  155.  
  156.                 UBYTE   sb_Exclusive
  157.                 STRUCT  sb_pad3,3
  158.  
  159.                 STRUCT  sb_LearnOpts,64
  160.  
  161.                 ; New for 2.0
  162.  
  163.                 STRUCT  sb_BufList,MLH_SIZE
  164.  
  165.                 ULONG   sb_NewFlags
  166.                 APTR    sb_EnvDir
  167.  
  168.                 APTR    sb_EWindow
  169.                 APTR    sb_MWindow
  170.                 APTR    sb_PWindow
  171.  
  172.                 APTR    sb_EGSIntuiBase
  173.                 APTR    sb_EGSGfxBase
  174.                 APTR    sb_EScreen
  175.  
  176.                 STRUCT  sb_BrushList,MLH_SIZE
  177.  
  178.                 UBYTE   sb_Include
  179.                 UBYTE   sb_Exclude
  180.                 UBYTE   sb_TClose
  181.                 UBYTE   sb_pad4
  182.  
  183.                 LABEL   scanbase_SIZEOF
  184.  
  185.  
  186.