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

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/io',
  5.        'graphics/rastport',
  6.        'graphics/view'
  7.  
  8. CONST DEVICES_PRINTER_I=1,
  9.       PRD_RAWWRITE=9,
  10.       PRD_PRTCOMMAND=10,
  11.       PRD_DUMPRPORT=11,
  12.       PRD_QUERY=12,
  13.       ARIS=0,
  14.       ARIN=1,
  15.       AIND=2,
  16.       ANEL=3,
  17.       ARI=4,
  18.       ASGR0=5,
  19.       ASGR3=6,
  20.       ASGR23=7,
  21.       ASGR4=8,
  22.       ASGR24=9,
  23.       ASGR1=10,
  24.       ASGR22=11,
  25.       ASFC=12,
  26.       ASBC=13,
  27.       ASHORP0=14,
  28.       ASHORP2=15,
  29.       ASHORP1=16,
  30.       ASHORP4=17,
  31.       ASHORP3=18,
  32.       ASHORP6=19,
  33.       ASHORP5=20,
  34.       ADEN6=21,
  35.       ADEN5=22,
  36.       ADEN4=23,
  37.       ADEN3=24,
  38.       ADEN2=25,
  39.       ADEN1=26,
  40.       ASUS2=27,
  41.       ASUS1=28,
  42.       ASUS4=29,
  43.       ASUS3=30,
  44.       ASUS0=31,
  45.       APLU=$20,
  46.       APLD=$21,
  47.       AFNT0=$22,
  48.       AFNT1=$23,
  49.       AFNT2=$24,
  50.       AFNT3=$25,
  51.       AFNT4=$26,
  52.       AFNT5=$27,
  53.       AFNT6=$28,
  54.       AFNT7=$29,
  55.       AFNT8=$2A,
  56.       AFNT9=$2B,
  57.       AFNT10=$2C,
  58.       APROP2=$2D,
  59.       APROP1=$2E,
  60.       APROP0=$2F,
  61.       ATSS=$30,
  62.       AJFY5=$31,
  63.       AJFY7=$32,
  64.       AJFY6=$33,
  65.       AJFY0=$34,
  66.       AJFY2=$35,
  67.       AJFY3=$36,
  68.       AVERP0=$37,
  69.       AVERP1=$38,
  70.       ASLPP=$39,
  71.       APERF=$3A,
  72.       APERF0=$3B,
  73.       ALMS=$3C,
  74.       ARMS=$3D,
  75.       ATMS=$3E,
  76.       ABMS=$3F,
  77.       ASTBM=$40,
  78.       ASLRM=$41,
  79.       ACAM=$42,
  80.       AHTS=$43,
  81.       AVTS=$44,
  82.       ATBC0=$45,
  83.       ATBC3=$46,
  84.       ATBC1=$47,
  85.       ATBC4=$48,
  86.       ATBCALL=$49,
  87.       ATBSALL=$4A,
  88.       AEXTEND=$4B,
  89.       ARAW=$4C
  90.  
  91. OBJECT ioprtcmdreq
  92.   io:io
  93.   prtcommand:INT  -> This is unsigned
  94.   parm0:CHAR
  95.   parm1:CHAR
  96.   parm2:CHAR
  97.   parm3:CHAR
  98. ENDOBJECT     /* SIZEOF=38 */
  99.  
  100. OBJECT iodrpreq
  101.   io:io
  102.   rastport:PTR TO rastport
  103.   colormap:PTR TO colormap
  104.   modes:LONG
  105.   srcx:INT  -> This is unsigned
  106.   srcy:INT  -> This is unsigned
  107.   srcwidth:INT  -> This is unsigned
  108.   srcheight:INT  -> This is unsigned
  109.   destcols:LONG
  110.   destrows:LONG
  111.   special:INT  -> This is unsigned
  112. ENDOBJECT     /* SIZEOF=62 */
  113.  
  114. CONST SPECIAL_MILCOLS=1,
  115.       SPECIAL_MILROWS=2,
  116.       SPECIAL_FULLCOLS=4,
  117.       SPECIAL_FULLROWS=8,
  118.       SPECIAL_FRACCOLS=16,
  119.       SPECIAL_FRACROWS=$20,
  120.       SPECIAL_CENTER=$40,
  121.       SPECIAL_ASPECT=$80,
  122.       SPECIAL_DENSITY1=$100,
  123.       SPECIAL_DENSITY2=$200,
  124.       SPECIAL_DENSITY3=$300,
  125.       SPECIAL_DENSITY4=$400,
  126.       SPECIAL_DENSITY5=$500,
  127.       SPECIAL_DENSITY6=$600,
  128.       SPECIAL_DENSITY7=$700,
  129.       SPECIAL_NOFORMFEED=$800,
  130.       SPECIAL_TRUSTME=$1000,
  131.       SPECIAL_NOPRINT=$2000,
  132.       PDERR_NOERR=0,
  133.       PDERR_CANCEL=1,
  134.       PDERR_NOTGRAPHICS=2,
  135.       PDERR_INVERTHAM=3,
  136.       PDERR_BADDIMENSION=4,
  137.       PDERR_DIMENSIONOVFLOW=5,
  138.       PDERR_INTERNALMEMORY=6,
  139.       PDERR_BUFFERMEMORY=7,
  140.       PDERR_TOOKCONTROL=8,
  141.       SPECIAL_DENSITYMASK=$700,
  142.       SPECIAL_DIMENSIONSMASK=$bf
  143.  
  144.