; File:  E16.Quickdraw
;
;
; Copyright Apple Computer, Inc. 1986-90
; All Rights Reserved
;
;
alreadyInitialized EQU $0401  ; Quickdraw already initialized
cannotReset EQU $0402  ; never used
notInitialized EQU $0403  ; Quickdraw not initialized
screenReserved EQU $0410  ; screen reserved
badRect EQU $0411  ; bad rectangle
notEqualChunkiness EQU $0420  ; Chunkiness is not equal
rgnAlreadyOpen EQU $0430  ; region is already open
rgnNotOpen EQU $0431  ; region is not open
rgnScanOverflow EQU $0432  ; region scan overflow
rgnFull EQU $0433  ; region is full
polyAlreadyOpen EQU $0440  ; poly is already open
polyNotOpen EQU $0441  ; poly is not open
polyTooBig EQU $0442  ; poly is too big
badTableNum EQU $0450  ; bad table number
badColorNum EQU $0451  ; bad color number
badScanLine EQU $0452  ; bad scan line
notImplemented EQU $04FF  ; not implemented
tsNumber EQU $04
_colorTable EQU $0F  ; Mask for SCB color table
scbReserved EQU $10  ; Mask for SCB reserved bit
scbFill EQU $20  ; Mask for SCB fill bit
scbInterrupt EQU $40  ; Mask for SCB interrupt bit
scbColorMode EQU $80  ; Mask for SCB color mode bit
table320 EQU $32  ; (val=size)
table640 EQU $32  ; (val=size)
blueMask EQU $000F  ; Mask for Blue nibble
greenMask EQU $00F0  ; Mask for green nibble
redMask EQU $0F00  ; Mask for red nibble
widMaxSize EQU $0001
zeroSize EQU $0002
maskSize EQU $08  ; Mask Size (val=size)
locSize EQU $10  ; Loc Size (val=size)
patsize EQU $20  ; Pattern Size (val=size)
pnStateSize EQU $32  ; Pen State Size (Val=size)
portSize EQU $AA  ; Size of GrafPort
black EQU $000  ; These work in 320 and 640 mode
blue EQU $00F  ; These work in 320 and 640 mode
darkGreen320 EQU $080  ; These work in 320 mode
green320 EQU $0E0  ; These work in 320 mode
green640 EQU $0F0  ; These work in 640 mode
lightBlue320 EQU $4DF  ; These work in 320 mode
purple320 EQU $72C  ; These work in 320 mode
darkGray320 EQU $777  ; These work in 320 mode
periwinkleBlue320 EQU $78F  ; These work in 320 mode
brown320 EQU $841  ; These work in 320 mode
lightGray320 EQU $0CCC  ; These work in 320 mode
red320 EQU $0D00  ; These work in 320 mode
lilac320 EQU $0DAF  ; These work in 320 mode
red640 EQU $0F00  ; These work in 640 mode
orange320 EQU $0F70  ; These work in 320 mode
flesh320 EQU $0FA9  ; These work in 320 mode
yellow EQU $0FF0  ; These work in 320 and 640 mode
white EQU $0FFF  ; These work in 320 and 640 mode
modeCopy EQU $0000
modeOR EQU $0001
modeXOR EQU $0002
modeBIC EQU $0003
modeForeCopy EQU $0004
modeForeOR EQU $0005
modeForeXOR EQU $0006
modeForeBIC EQU $0007
modeNOT EQU $8000
notCopy EQU $8000
notOR EQU $8001
notXOR EQU $8002
notBIC EQU $8003
notForeCOPY EQU $8004
notForeOR EQU $8005
notForeXOR EQU $8006
notForeBIC EQU $8007
mode320 EQU $0000  ; Argument to QDStartup
mode640 EQU $0080  ; Argument to QDStartup
plainMask EQU $0000  ; Mask for plain text bit
boldMask EQU $0001  ; Mask for bold bit
italicMask EQU $0002  ; Mask for italic bit
underlineMask EQU $0004  ; Mask for underline bit
outlineMask EQU $0008  ; Mask for outline bit
shadowMask EQU $0010  ; Mask for shadow bit
fUseShadowing EQU $4000
fFastPortAware EQU $4000
; offset constants for Cursor
ocursorHeight EQU 0
ocursorWidth EQU 2
ocursorData EQU 4
ocursorMask EQU 6
ocursorHotSpot EQU 8
; offset constants for Region
orgnSize EQU 0  ; size in bytes
orgnBBox EQU 2  ; enclosing rectangle
; offset constants for BufDimRec
omaxWidth EQU 0
otextBufHeight EQU 2
otextBufferWords EQU 4
ofontWidth EQU 6
; offset constants for Font
ooffseToMF EQU 0  ; fully defined front of the Font record.
ofamily EQU 2
ostyle EQU 4
osize EQU 6
oversion EQU 8
ofbrExtent EQU 10
ohighowTLoc EQU 12  ;  
; offset constants for FontGlobalsRecord
ofgFontID EQU 0
ofgStyle EQU 2
ofgSize EQU 4
ofgVersion EQU 6
ofgWidMax EQU 8
ofgFBRExtent EQU 10
; offset constants for FontID
ofamNum EQU 0
ofontStyle EQU 2
ofontSize EQU 3
; offset constants for FontInfoRecord
oascent EQU 0
odescent EQU 2
owidMax EQU 4
oleading EQU 6
; offset constants for LocInfo
oportSCB EQU 0
optrToPixImage EQU 2
owidth EQU 6
oboundsRect EQU 8
; offset constants for QDProcs
ostdText EQU 0
ostdLine EQU 4
ostdRect EQU 8
ostdRRect EQU 12
ostdOval EQU 16
ostdArc EQU 20
ostdPoly EQU 24
ostdRgn EQU 28
ostdPixels EQU 32
ostdComment EQU 36
ostdTxMeas EQU 40
ostdTxBnds EQU 44
ostdGetPic EQU 48
ostdPutPic EQU 52
; offset constants for GrafPort
oportInfo EQU 0
oportRect EQU 16  ; PortRect
oclipRgn EQU 24  ; Clip Rgn. Pointer
ovisRgn EQU 28  ; Vis. Rgn. Pointer
obkPat EQU 32  ; BackGround Pattern
opnLoc EQU 64  ; Pen Location
opnSize EQU 68  ; Pen Size
opnMode EQU 72  ; Pen Mode
opnPat EQU 74  ; Pen Pattern
opnMask EQU 106  ; Pen Mask
opnVis EQU 114  ; Pen Visable
ofontHandle EQU 116
ofontID EQU 120  ; Font ID
ofontFlags EQU 124  ; FontFlags
otxSize EQU 126  ; Text Size
otxFace EQU 128  ; Text Face
otxMode EQU 130  ; Text Mode
ospExtra EQU 132  ; Fixed Point Value
ochExtra EQU 136  ; Fixed Point Value
ofgColor EQU 140  ; ForeGround Color
obgColor EQU 142  ; BackGround Color
opicSave EQU 144  ; PicSave
orgnSave EQU 148  ; RgnSave
opolySave EQU 152  ; PolySave
ografProcs EQU 156
oarcRot EQU 160  ; ArcRot
ouserField EQU 162  ; UserField
osysField EQU 166  ; SysField
; offset constants for PaintParam
optrToSourceLocInfo EQU 0
optrToDestLocInfo EQU 4
optrToSourceRect EQU 8
optrToDestPoint EQU 12
omode EQU 16
omaskHandle EQU 18
; offset constants for PenState
opsPenLoc EQU 0
opsPenSize EQU 4
opsPenMode EQU 8
opsPenPat EQU 10
opsPenMask EQU 42  ;  
; offset constants for RomFontRec
orfFamNum EQU 0
orfFamStyle EQU 2
orfSize EQU 4
orfFontHandle EQU 6
orfNamePtr EQU 10
orfFBRExtent EQU 14
