Author: ronaldoussoren
Date: Sun Mar 1 04:16:49 2009
New Revision: 2061
Log:
Add manual wrappers for CGWindow related functions that work on a "CFArray of CGWindowID", those arrays
cannot be represented by PyObjC and therefore need manual wrapppers.
Added:
trunk/pyobjc/pyobjc-framework-Quartz/Modules/_cgwindow.m
Modified:
trunk/pyobjc/pyobjc-framework-Quartz/Lib/Quartz/CoreGraphics/__init__.py
trunk/pyobjc/pyobjc-framework-Quartz/setup.py
Modified: trunk/pyobjc/pyobjc-framework-Quartz/Lib/Quartz/CoreGraphics/__init__.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Quartz/Lib/Quartz/CoreGraphics/__init__.py (original)
+++ trunk/pyobjc/pyobjc-framework-Quartz/Lib/Quartz/CoreGraphics/__init__.py Sun Mar 1 04:16:49 2009
@@ -16,11 +16,13 @@
"/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework"),
globals=globals(),
inlineTab=_inline_list_,
+ frameworkResourceName="Quartz.CoreGraphics",
scan_classes=False)
from Quartz.CoreGraphics._callbacks import *
from Quartz.CoreGraphics._doubleindirect import *
from Quartz.CoreGraphics._sortandmap import *
+from Quartz.CoreGraphics._cgwindow import *
setCGPathElement(CGPathElement)
del setCGPathElement
@@ -34,5 +36,29 @@
def CGEventMaskBit(eventType):
return (1 << eventType)
+
+# Some pseudo-constants
+kCGBaseWindowLevel = CGWindowLevelForKey(kCGBaseWindowLevelKey)
+kCGMinimumWindowLevel = CGWindowLevelForKey(kCGMinimumWindowLevelKey)
+kCGDesktopWindowLevel = CGWindowLevelForKey(kCGDesktopWindowLevelKey)
+kCGDesktopIconWindowLevel = CGWindowLevelForKey(kCGDesktopIconWindowLevelKey)
+kCGBackstopMenuLevel = CGWindowLevelForKey(kCGBackstopMenuLevelKey)
+kCGNormalWindowLevel = CGWindowLevelForKey(kCGNormalWindowLevelKey)
+kCGFloatingWindowLevel = CGWindowLevelForKey(kCGFloatingWindowLevelKey)
+kCGTornOffMenuWindowLevel = CGWindowLevelForKey(kCGTornOffMenuWindowLevelKey)
+kCGDockWindowLevel = CGWindowLevelForKey(kCGDockWindowLevelKey)
+kCGMainMenuWindowLevel = CGWindowLevelForKey(kCGMainMenuWindowLevelKey)
+kCGStatusWindowLevel = CGWindowLevelForKey(kCGStatusWindowLevelKey)
+kCGModalPanelWindowLevel = CGWindowLevelForKey(kCGModalPanelWindowLevelKey)
+kCGPopUpMenuWindowLevel = CGWindowLevelForKey(kCGPopUpMenuWindowLevelKey)
+kCGDraggingWindowLevel = CGWindowLevelForKey(kCGDraggingWindowLevelKey)
+kCGScreenSaverWindowLevel = CGWindowLevelForKey(kCGScreenSaverWindowLevelKey)
+kCGCursorWindowLevel = CGWindowLevelForKey(kCGCursorWindowLevelKey)
+kCGOverlayWindowLevel = CGWindowLevelForKey(kCGOverlayWindowLevelKey)
+kCGHelpWindowLevel = CGWindowLevelForKey(kCGHelpWindowLevelKey)
+kCGUtilityWindowLevel = CGWindowLevelForKey(kCGUtilityWindowLevelKey)
+kCGAssistiveTechHighWindowLevel = CGWindowLevelForKey(kCGAssistiveTechHighWindowLevelKey)
+kCGMaximumWindowLevel = CGWindowLevelForKey(kCGMaximumWindowLevelKey)
+
# Some useful tools
from Quartz.CoreGraphics._contextmanager import *
Modified: trunk/pyobjc/pyobjc-framework-Quartz/setup.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-Quartz/setup.py (original)
+++ trunk/pyobjc/pyobjc-framework-Quartz/setup.py Sun Mar 1 04:16:49 2009
@@ -73,5 +73,7 @@
[ 'Modules/_doubleindirect.m' ]),
Extension('Quartz.CoreGraphics._sortandmap',
[ 'Modules/_sortandmap.m' ]),
+ Extension('Quartz.CoreGraphics._cgwindow',
+ [ 'Modules/_cgwindow.m' ]),
],
)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.