mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Exposed quite a few more calls.
This commit is contained in:
parent
1990943095
commit
f8d6473782
3 changed files with 191 additions and 28 deletions
|
@ -35,7 +35,7 @@ RefObjectTypes = ["EventRef",
|
|||
"EventHotKeyRef",
|
||||
]
|
||||
|
||||
class CarbonEvents_Scanner(Scanner):
|
||||
class CarbonEvents_Scanner(Scanner_OSX):
|
||||
def destination(self, type, name, arglist):
|
||||
classname = "CarbonEventsFunction"
|
||||
listname = "functions"
|
||||
|
@ -50,8 +50,17 @@ class CarbonEvents_Scanner(Scanner):
|
|||
print "not method"
|
||||
return classname, listname
|
||||
|
||||
def writeinitialdefs(self):
|
||||
self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
||||
self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
|
||||
self.defsfile.write("false = 0\n")
|
||||
self.defsfile.write("true = 1\n")
|
||||
self.defsfile.write("keyAEEventClass = FOUR_CHAR_CODE('evcl')\n")
|
||||
self.defsfile.write("keyAEEventID = FOUR_CHAR_CODE('evti')\n")
|
||||
|
||||
def makeblacklistnames(self):
|
||||
return [
|
||||
"sHandler",
|
||||
"MacCreateEvent",
|
||||
"TrackMouseLocationWithOptions",
|
||||
"TrackMouseLocation",
|
||||
|
@ -64,6 +73,12 @@ class CarbonEvents_Scanner(Scanner):
|
|||
"InvokeEventHandlerUPP",
|
||||
"InvokeEventComparatorUPP",
|
||||
"InvokeEventLoopTimerUPP",
|
||||
"NewEventComparatorUPP",
|
||||
"NewEventLoopTimerUPP",
|
||||
"NewEventHandlerUPP",
|
||||
"DisposeEventComparatorUPP",
|
||||
"DisposeEventLoopTimerUPP",
|
||||
"DisposeEventHandlerUPP",
|
||||
|
||||
# Wrote by hand
|
||||
"InstallEventHandler",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue