DEFINITION MODULE ConUnit; (*$Implementation:=FALSE*)
(* 07-May-1992/cn *)

FROM SYSTEM IMPORT ADDRESS,SHORTSET,LONGSET;

FROM Console IMPORT
 mLnm;

FROM ExecD IMPORT
 MsgPort;

FROM GraphicsD IMPORT
 DrawModeSet,TextFontPtr;

FROM InputEvent IMPORT
 classMax;

FROM IntuitionD IMPORT
 WindowPtr;

FROM KeyMapD IMPORT
 KeyMap;

CONST
 conuLibrary=-1;
 conuStandard=0;

 (*36*)conuCharmap=1;
 (*36*)conuSnipmap=3;

 pmbAsm=mLnm+1;
 pmbAwm=pmbAsm+1;
 maxTabs=80;

 (*37*)default=LONGSET{};
 (*37*)nodrawOnNewsize=LONGSET{0};

TYPE
 ConUnit=RECORD
  mp:MsgPort;
  window:WindowPtr;
  xCP:INTEGER;
  yCP:INTEGER;
  xMax:INTEGER;
  yMax:INTEGER;
  xRSize:INTEGER;
  yRSize:INTEGER;
  xROrigin:INTEGER;
  yROrigin:INTEGER;
  xRExtant:INTEGER;
  yRExtant:INTEGER;
  xMinShrink:INTEGER;
  yMinShrink:INTEGER;
  xcCP:INTEGER;
  ycCP:INTEGER;
  keyMapStruct:KeyMap;
  tabStops:ARRAY [0..maxTabs-1] OF CARDINAL;
  mask:SHORTCARD;
  fgPen:SHORTCARD;
  bgPen:SHORTCARD;
  aolPen:SHORTCARD;
  drawMode:DrawModeSet;
  obsolete1:SHORTCARD;
  obsolete2:ADDRESS;
  minTerms:ARRAY [0..7] OF SHORTCARD;
  font:TextFontPtr;
  algoStyle:SHORTCARD;
  txFlags:SHORTCARD;
  txHeight:CARDINAL;
  txWidth:CARDINAL;
  txBaseLine:CARDINAL;
  txSpacing:INTEGER;
  modes0:SHORTSET;
  modes8:SHORTSET;
  modes16:SHORTSET;
  rawEvents0:SHORTSET;
  rawEvents8:SHORTSET;
  rawEvents16:SHORTSET;
 END;
 ConUnitPtr=POINTER TO ConUnit;

END ConUnit.noimp
