summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1999-03-07 23:11:21 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1999-03-07 23:11:21 (GMT)
commita4e6ae666794966e0440f31c85461fb781525a10 (patch)
tree6852a2cca4a90850e56cfcb3c1a6fd67055999eb /Mac/Lib
parent6a51b37167cf136efbe4dbaad0d22639658717b4 (diff)
downloadcpython-a4e6ae666794966e0440f31c85461fb781525a10.zip
cpython-a4e6ae666794966e0440f31c85461fb781525a10.tar.gz
cpython-a4e6ae666794966e0440f31c85461fb781525a10.tar.bz2
Offscreen bitmap support, first stab. PixMaps are still treated as ordinary
handles, not fullblown python objects, and UpdateGWorld returns a new GWorld object in stead of modifying the existing one.
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/lib-toolbox/QDOffscreen.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/Mac/Lib/lib-toolbox/QDOffscreen.py b/Mac/Lib/lib-toolbox/QDOffscreen.py
new file mode 100644
index 0000000..8e50688
--- /dev/null
+++ b/Mac/Lib/lib-toolbox/QDOffscreen.py
@@ -0,0 +1,34 @@
+# Generated from 'Moes:Codewarrior Pro 4:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:QDOffscreen.h'
+
+def FOUR_CHAR_CODE(x): return x
+pixPurgeBit = 0
+noNewDeviceBit = 1
+useTempMemBit = 2
+keepLocalBit = 3
+pixelsPurgeableBit = 6
+pixelsLockedBit = 7
+mapPixBit = 16
+newDepthBit = 17
+alignPixBit = 18
+newRowBytesBit = 19
+reallocPixBit = 20
+clipPixBit = 28
+stretchPixBit = 29
+ditherPixBit = 30
+gwFlagErrBit = 31
+pixPurge = 1L << pixPurgeBit
+noNewDevice = 1L << noNewDeviceBit
+useTempMem = 1L << useTempMemBit
+keepLocal = 1L << keepLocalBit
+pixelsPurgeable = 1L << pixelsPurgeableBit
+pixelsLocked = 1L << pixelsLockedBit
+kAllocDirectDrawSurface = 1L << 14
+mapPix = 1L << mapPixBit
+newDepth = 1L << newDepthBit
+alignPix = 1L << alignPixBit
+newRowBytes = 1L << newRowBytesBit
+reallocPix = 1L << reallocPixBit
+clipPix = 1L << clipPixBit
+stretchPix = 1L << stretchPixBit
+ditherPix = 1L << ditherPixBit
+gwFlagErr = 1L << gwFlagErrBit