diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-21 13:31:30 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-01-21 13:31:30 (GMT) |
commit | d9f5a39ef3c6f14c5b15d64049474a2b914a80d4 (patch) | |
tree | ee943da5c1332e667ac22f5c95f0ebe0b33f1ec2 | |
parent | c0011894b2be2b2f69cf20d0d020b30f79fc4b48 (diff) | |
download | cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.zip cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.tar.gz cpython-d9f5a39ef3c6f14c5b15d64049474a2b914a80d4.tar.bz2 |
Manually added definitions for normal, bold, etc. These are in MacTypes (of all
places) which isn't worth bgenning.
-rw-r--r-- | Mac/Lib/lib-toolbox/QuickDraw.py | 22 | ||||
-rw-r--r-- | Mac/Modules/qd/qdscan.py | 12 |
2 files changed, 31 insertions, 3 deletions
diff --git a/Mac/Lib/lib-toolbox/QuickDraw.py b/Mac/Lib/lib-toolbox/QuickDraw.py index fd9fe16..8983cca 100644 --- a/Mac/Lib/lib-toolbox/QuickDraw.py +++ b/Mac/Lib/lib-toolbox/QuickDraw.py @@ -1,6 +1,15 @@ -# Generated from 'flap:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDraw.h' +# Generated from 'flap:CodeWarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDraw.h' + def FOUR_CHAR_CODE(x): return x +normal = 0 +bold = 1 +italic = 2 +underline = 4 +outline = 8 +shadow = 0x10 +condense = 0x20 +extend = 0x40 invalColReq = -1 srcCopy = 0 srcOr = 1 @@ -130,9 +139,18 @@ kUYVY422PixelFormat = FOUR_CHAR_CODE('UYVY') kYUV211PixelFormat = FOUR_CHAR_CODE('Y211') kCursorImageMajorVersion = 0x0001 kCursorImageMinorVersion = 0x0000 -# Generated from 'flap:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDrawText.h' +# Generated from 'flap:CodeWarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QuickDrawText.h' + def FOUR_CHAR_CODE(x): return x +normal = 0 +bold = 1 +italic = 2 +underline = 4 +outline = 8 +shadow = 0x10 +condense = 0x20 +extend = 0x40 leftCaret = 0 rightCaret = -1 kHilite = 1 diff --git a/Mac/Modules/qd/qdscan.py b/Mac/Modules/qd/qdscan.py index 81a5b1c..969baf3 100644 --- a/Mac/Modules/qd/qdscan.py +++ b/Mac/Modules/qd/qdscan.py @@ -62,7 +62,17 @@ class MyScanner(Scanner): def writeinitialdefs(self): - self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n") + self.defsfile.write(""" +def FOUR_CHAR_CODE(x): return x +normal = 0 +bold = 1 +italic = 2 +underline = 4 +outline = 8 +shadow = 0x10 +condense = 0x20 +extend = 0x40 +""") def makeblacklistnames(self): return [ |