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