Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1c4e6146
Kaydet (Commit)
1c4e6146
authored
Nis 21, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Re-generated from new (3.1) universal headers
üst
02facaf9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
206 additions
and
90 deletions
+206
-90
Cmmodule.c
Mac/Modules/cm/Cmmodule.c
+67
-0
ctlscan.py
Mac/Modules/ctl/ctlscan.py
+2
-0
Dlgmodule.c
Mac/Modules/dlg/Dlgmodule.c
+6
-6
dlgscan.py
Mac/Modules/dlg/dlgscan.py
+5
-0
Menumodule.c
Mac/Modules/menu/Menumodule.c
+22
-22
menuscan.py
Mac/Modules/menu/menuscan.py
+4
-0
Qdmodule.c
Mac/Modules/qd/Qdmodule.c
+0
-0
qdscan.py
Mac/Modules/qd/qdscan.py
+12
-0
Qtmodule.c
Mac/Modules/qt/Qtmodule.c
+0
-0
qtscan.py
Mac/Modules/qt/qtscan.py
+32
-27
qtsupport.py
Mac/Modules/qt/qtsupport.py
+7
-1
Resmodule.c
Mac/Modules/res/Resmodule.c
+3
-3
Winmodule.c
Mac/Modules/win/Winmodule.c
+46
-31
No files found.
Mac/Modules/cm/Cmmodule.c
Dosyayı görüntüle @
1c4e6146
...
...
@@ -469,6 +469,67 @@ static PyObject *CmpObj_OpenComponentResFile(_self, _args)
return
_res
;
}
static
PyObject
*
CmpObj_GetComponentResource
(
_self
,
_args
)
ComponentObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
OSErr
_err
;
OSType
resType
;
short
resID
;
Handle
theResource
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&h"
,
PyMac_GetOSType
,
&
resType
,
&
resID
))
return
NULL
;
_err
=
GetComponentResource
(
_self
->
ob_itself
,
resType
,
resID
,
&
theResource
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
_res
=
Py_BuildValue
(
"O&"
,
ResObj_New
,
theResource
);
return
_res
;
}
static
PyObject
*
CmpObj_GetComponentIndString
(
_self
,
_args
)
ComponentObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
OSErr
_err
;
Str255
theString
;
short
strListID
;
short
index
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&hh"
,
PyMac_GetStr255
,
theString
,
&
strListID
,
&
index
))
return
NULL
;
_err
=
GetComponentIndString
(
_self
->
ob_itself
,
theString
,
strListID
,
index
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
CmpObj_ResolveComponentAlias
(
_self
,
_args
)
ComponentObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Component
_rv
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
ResolveComponentAlias
(
_self
->
ob_itself
);
_res
=
Py_BuildValue
(
"O&"
,
CmpObj_New
,
_rv
);
return
_res
;
}
static
PyObject
*
CmpObj_CountComponentInstances
(
_self
,
_args
)
ComponentObject
*
_self
;
PyObject
*
_args
;
...
...
@@ -563,6 +624,12 @@ static PyMethodDef CmpObj_methods[] = {
"(long theRefcon) -> None"
},
{
"OpenComponentResFile"
,
(
PyCFunction
)
CmpObj_OpenComponentResFile
,
1
,
"() -> (short _rv)"
},
{
"GetComponentResource"
,
(
PyCFunction
)
CmpObj_GetComponentResource
,
1
,
"(OSType resType, short resID) -> (Handle theResource)"
},
{
"GetComponentIndString"
,
(
PyCFunction
)
CmpObj_GetComponentIndString
,
1
,
"(Str255 theString, short strListID, short index) -> None"
},
{
"ResolveComponentAlias"
,
(
PyCFunction
)
CmpObj_ResolveComponentAlias
,
1
,
"() -> (Component _rv)"
},
{
"CountComponentInstances"
,
(
PyCFunction
)
CmpObj_CountComponentInstances
,
1
,
"() -> (long _rv)"
},
{
"SetDefaultComponent"
,
(
PyCFunction
)
CmpObj_SetDefaultComponent
,
1
,
...
...
Mac/Modules/ctl/ctlscan.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -55,6 +55,8 @@ class MyScanner(Scanner):
'GetTabContentRect'
,
'SetTabEnabled'
,
'SetDisclosureTriangleLastValue'
,
# Unavailable in CW Pro 3 libraries
'SetUpControlTextColor'
,
]
def
makeblacklisttypes
(
self
):
...
...
Mac/Modules/dlg/Dlgmodule.c
Dosyayı görüntüle @
1c4e6146
...
...
@@ -545,17 +545,17 @@ static PyObject *DlgObj_SizeDialogItem(_self, _args)
PyObject
*
_res
=
NULL
;
OSErr
_err
;
SInt16
inItemNo
;
SInt16
inHeight
;
SInt16
inWidth
;
SInt16
inHeight
;
if
(
!
PyArg_ParseTuple
(
_args
,
"hhh"
,
&
inItemNo
,
&
in
Height
,
&
in
Width
))
&
in
Width
,
&
in
Height
))
return
NULL
;
_err
=
SizeDialogItem
(
_self
->
ob_itself
,
inItemNo
,
in
Height
,
in
Width
);
in
Width
,
in
Height
);
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
...
...
@@ -677,7 +677,7 @@ static PyMethodDef DlgObj_methods[] = {
{
"MoveDialogItem"
,
(
PyCFunction
)
DlgObj_MoveDialogItem
,
1
,
"(SInt16 inItemNo, SInt16 inHoriz, SInt16 inVert) -> None"
},
{
"SizeDialogItem"
,
(
PyCFunction
)
DlgObj_SizeDialogItem
,
1
,
"(SInt16 inItemNo, SInt16 in
Height, SInt16 inWidth
) -> None"
},
"(SInt16 inItemNo, SInt16 in
Width, SInt16 inHeight
) -> None"
},
{
"GetDialogWindow"
,
(
PyCFunction
)
DlgObj_GetDialogWindow
,
1
,
"() -> (DialogPtr _rv)"
},
{
"GetDialogDefaultItem"
,
(
PyCFunction
)
DlgObj_GetDialogDefaultItem
,
1
,
...
...
Mac/Modules/dlg/dlgscan.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -49,11 +49,16 @@ class MyScanner(Scanner):
'CouldDialog'
,
'FreeDialog'
,
'GetStdFilterProc'
,
'GetDialogParent'
,
# Can't find these in the CW Pro 3 libraries
'SetDialogMovableModal'
,
'GetDialogControlNotificationProc'
,
]
def
makeblacklisttypes
(
self
):
return
[
"AlertStdAlertParamPtr"
,
# Too much work, for now
"QTModelessCallbackProcPtr"
,
]
def
makerepairinstructions
(
self
):
...
...
Mac/Modules/menu/Menumodule.c
Dosyayı görüntüle @
1c4e6146
...
...
@@ -102,7 +102,7 @@ static PyObject *MenuObj_DisposeMenu(_self, _args)
return
_res
;
}
static
PyObject
*
MenuObj_AppendMenu
(
_self
,
_args
)
static
PyObject
*
MenuObj_
Mac
AppendMenu
(
_self
,
_args
)
MenuObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -111,8 +111,8 @@ static PyObject *MenuObj_AppendMenu(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
PyMac_GetStr255
,
data
))
return
NULL
;
AppendMenu
(
_self
->
ob_itself
,
data
);
Mac
AppendMenu
(
_self
->
ob_itself
,
data
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -137,7 +137,7 @@ static PyObject *MenuObj_InsertResMenu(_self, _args)
return
_res
;
}
static
PyObject
*
MenuObj_InsertMenu
(
_self
,
_args
)
static
PyObject
*
MenuObj_
Mac
InsertMenu
(
_self
,
_args
)
MenuObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -146,8 +146,8 @@ static PyObject *MenuObj_InsertMenu(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
"h"
,
&
beforeID
))
return
NULL
;
InsertMenu
(
_self
->
ob_itself
,
beforeID
);
Mac
InsertMenu
(
_self
->
ob_itself
,
beforeID
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -169,7 +169,7 @@ static PyObject *MenuObj_AppendResMenu(_self, _args)
return
_res
;
}
static
PyObject
*
MenuObj_InsertMenuItem
(
_self
,
_args
)
static
PyObject
*
MenuObj_
Mac
InsertMenuItem
(
_self
,
_args
)
MenuObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -180,9 +180,9 @@ static PyObject *MenuObj_InsertMenuItem(_self, _args)
PyMac_GetStr255
,
itemString
,
&
afterItem
))
return
NULL
;
InsertMenuItem
(
_self
->
ob_itself
,
itemString
,
afterItem
);
Mac
InsertMenuItem
(
_self
->
ob_itself
,
itemString
,
afterItem
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -919,15 +919,15 @@ static PyObject *MenuObj_as_Resource(_self, _args)
static
PyMethodDef
MenuObj_methods
[]
=
{
{
"DisposeMenu"
,
(
PyCFunction
)
MenuObj_DisposeMenu
,
1
,
"() -> None"
},
{
"
AppendMenu"
,
(
PyCFunction
)
MenuObj_
AppendMenu
,
1
,
{
"
MacAppendMenu"
,
(
PyCFunction
)
MenuObj_Mac
AppendMenu
,
1
,
"(Str255 data) -> None"
},
{
"InsertResMenu"
,
(
PyCFunction
)
MenuObj_InsertResMenu
,
1
,
"(ResType theType, short afterItem) -> None"
},
{
"
InsertMenu"
,
(
PyCFunction
)
MenuObj_
InsertMenu
,
1
,
{
"
MacInsertMenu"
,
(
PyCFunction
)
MenuObj_Mac
InsertMenu
,
1
,
"(short beforeID) -> None"
},
{
"AppendResMenu"
,
(
PyCFunction
)
MenuObj_AppendResMenu
,
1
,
"(ResType theType) -> None"
},
{
"
InsertMenuItem"
,
(
PyCFunction
)
MenuObj_
InsertMenuItem
,
1
,
{
"
MacInsertMenuItem"
,
(
PyCFunction
)
MenuObj_Mac
InsertMenuItem
,
1
,
"(Str255 itemString, short afterItem) -> None"
},
{
"DeleteMenuItem"
,
(
PyCFunction
)
MenuObj_DeleteMenuItem
,
1
,
"(short item) -> None"
},
...
...
@@ -1081,7 +1081,7 @@ static PyObject *Menu_NewMenu(_self, _args)
return
_res
;
}
static
PyObject
*
Menu_GetMenu
(
_self
,
_args
)
static
PyObject
*
Menu_
Mac
GetMenu
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -1091,13 +1091,13 @@ static PyObject *Menu_GetMenu(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
"h"
,
&
resourceID
))
return
NULL
;
_rv
=
GetMenu
(
resourceID
);
_rv
=
Mac
GetMenu
(
resourceID
);
_res
=
Py_BuildValue
(
"O&"
,
MenuObj_New
,
_rv
);
return
_res
;
}
static
PyObject
*
Menu_DeleteMenu
(
_self
,
_args
)
static
PyObject
*
Menu_
Mac
DeleteMenu
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -1106,7 +1106,7 @@ static PyObject *Menu_DeleteMenu(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
"h"
,
&
menuID
))
return
NULL
;
DeleteMenu
(
menuID
);
Mac
DeleteMenu
(
menuID
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -1206,14 +1206,14 @@ static PyObject *Menu_DeleteMCEntries(_self, _args)
return
_res
;
}
static
PyObject
*
Menu_DrawMenuBar
(
_self
,
_args
)
static
PyObject
*
Menu_
Mac
DrawMenuBar
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
DrawMenuBar
();
Mac
DrawMenuBar
();
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -1405,9 +1405,9 @@ static PyMethodDef Menu_methods[] = {
"() -> None"
},
{
"NewMenu"
,
(
PyCFunction
)
Menu_NewMenu
,
1
,
"(short menuID, Str255 menuTitle) -> (MenuHandle _rv)"
},
{
"
GetMenu"
,
(
PyCFunction
)
Menu_
GetMenu
,
1
,
{
"
MacGetMenu"
,
(
PyCFunction
)
Menu_Mac
GetMenu
,
1
,
"(short resourceID) -> (MenuHandle _rv)"
},
{
"
DeleteMenu"
,
(
PyCFunction
)
Menu_
DeleteMenu
,
1
,
{
"
MacDeleteMenu"
,
(
PyCFunction
)
Menu_Mac
DeleteMenu
,
1
,
"(short menuID) -> None"
},
{
"MenuKey"
,
(
PyCFunction
)
Menu_MenuKey
,
1
,
"(CharParameter ch) -> (long _rv)"
},
...
...
@@ -1421,7 +1421,7 @@ static PyMethodDef Menu_methods[] = {
"() -> (long _rv)"
},
{
"DeleteMCEntries"
,
(
PyCFunction
)
Menu_DeleteMCEntries
,
1
,
"(short menuID, short menuItem) -> None"
},
{
"
DrawMenuBar"
,
(
PyCFunction
)
Menu_
DrawMenuBar
,
1
,
{
"
MacDrawMenuBar"
,
(
PyCFunction
)
Menu_Mac
DrawMenuBar
,
1
,
"() -> None"
},
{
"InvalMenuBar"
,
(
PyCFunction
)
Menu_InvalMenuBar
,
1
,
"() -> None"
},
...
...
Mac/Modules/menu/menuscan.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -32,6 +32,8 @@ class MyScanner(Scanner):
def
makeblacklistnames
(
self
):
return
[
"IsShowContextualMenuClick"
,
# Can't find it in the library
"InitContextualMenus"
,
# ditto
]
def
makeblacklisttypes
(
self
):
...
...
@@ -39,6 +41,8 @@ class MyScanner(Scanner):
'MCTableHandle'
,
'MCEntryPtr'
,
'MCTablePtr'
,
'AEDesc_ptr'
,
# For now: doable, but not easy
'ProcessSerialNumber'
,
# ditto
]
def
makerepairinstructions
(
self
):
...
...
Mac/Modules/qd/Qdmodule.c
Dosyayı görüntüle @
1c4e6146
This diff is collapsed.
Click to expand it.
Mac/Modules/qd/qdscan.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -75,6 +75,18 @@ class MyScanner(Scanner):
'CloseCPort'
,
'BitMapToRegionGlue'
,
'StdOpcode'
,
# XXXX Missing from library...
# The following are for non-macos use:
'LockPortBits'
,
'UnlockPortBits'
,
'UpdatePort'
,
'GetPortNativeWindow'
,
'GetNativeWindowPort'
,
'NativeRegionToMacRegion'
,
'MacRegionToNativeRegion'
,
'GetPortHWND'
,
'GetHWNDPort'
,
'GetPICTFromDIB'
,
]
...
...
Mac/Modules/qt/Qtmodule.c
Dosyayı görüntüle @
1c4e6146
This diff is collapsed.
Click to expand it.
Mac/Modules/qt/qtscan.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -58,33 +58,37 @@ class MyScanner(Scanner):
"AddHiliteSample"
,
"HiliteTextSample"
,
# Missing in CW11 quicktime library
"SpriteMediaGetDisplayedSampleNumber"
,
"SpriteMediaGetIndImageDescription"
,
"SpriteMediaCountImages"
,
"SpriteMediaCountSprites"
,
"SpriteMediaHitTestSprites"
,
"SpriteMediaGetProperty"
,
"SpriteMediaSetProperty"
,
"TextMediaSetTextSampleData"
,
"TextMediaHiliteTextSample"
,
"TextMediaFindNextText"
,
"TextMediaAddHiliteSample"
,
"TextMediaAddTESample"
,
"TextMediaAddTextSample"
,
"VideoMediaGetStatistics"
,
"VideoMediaResetStatistics"
,
"EndFullScreen"
,
"NewMovieFromDataRef"
,
"MCPtInController"
,
"MCRemoveAMovie"
,
"MCRemoveAllMovies"
,
"MCInvalidate"
,
"InvalidateMovieRegion"
,
"GetMovieCompositeBufferFlags"
,
"SetMovieCompositeBufferFlags"
,
"SetTrackSoundLocalizationSettings"
,
"GetTrackSoundLocalizationSettings"
,
"GetMovieNaturalBoundsRect"
,
# "SpriteMediaGetDisplayedSampleNumber",
# "SpriteMediaGetIndImageDescription",
# "SpriteMediaCountImages",
# "SpriteMediaCountSprites",
# "SpriteMediaHitTestSprites",
# "SpriteMediaGetProperty",
# "SpriteMediaSetProperty",
# "TextMediaSetTextSampleData",
# "TextMediaHiliteTextSample",
# "TextMediaFindNextText",
# "TextMediaAddHiliteSample",
# "TextMediaAddTESample",
# "TextMediaAddTextSample",
# "VideoMediaGetStatistics",
# "VideoMediaResetStatistics",
# "EndFullScreen",
# "NewMovieFromDataRef",
# "MCPtInController",
# "MCRemoveAMovie",
# "MCRemoveAllMovies",
# "MCInvalidate",
# "InvalidateMovieRegion",
# "GetMovieCompositeBufferFlags",
# "SetMovieCompositeBufferFlags",
# "SetTrackSoundLocalizationSettings",
# "GetTrackSoundLocalizationSettings",
# "GetMovieNaturalBoundsRect",
"MakeTrackTimeTable"
,
# Uses long * return?
"MakeMediaTimeTable"
,
# ditto
"VideoMediaGetStallCount"
,
# Undefined in CW Pro 3 library
]
def
makeblacklisttypes
(
self
):
...
...
@@ -101,6 +105,7 @@ class MyScanner(Scanner):
"MatrixRecord"
,
"MatrixRecord_ptr"
,
"SampleReferencePtr"
,
"QTTweener"
,
# Routine pointers, not yet.
"MoviesErrorUPP"
,
...
...
Mac/Modules/qt/qtsupport.py
Dosyayı görüntüle @
1c4e6146
...
...
@@ -73,8 +73,12 @@ ImageDescriptionHandle = OpaqueByValueType("ImageDescriptionHandle", "ResObj")
TEHandle
=
OpaqueByValueType
(
"TEHandle"
,
"ResObj"
)
CGrafPtr
=
OpaqueByValueType
(
"CGrafPtr"
,
"GrafObj"
)
GDHandle
=
OpaqueByValueType
(
"GDHandle"
,
"ResObj"
)
AliasHandle
=
OpaqueByValueType
(
"AliasHandle"
,
"ResObj"
)
SoundDescriptionHandle
=
OpaqueByValueType
(
"SoundDescriptionHandle"
,
"ResObj"
)
# Silly Apple, passing an OStype by reference...
OSType_ptr
=
OpaqueType
(
"OSType"
,
"PyMac_BuildOSType"
,
"PyMac_GetOSType"
)
# And even sillier: passing floats by address
float_ptr
=
ByAddressType
(
"float"
,
"f"
)
RGBColor
=
OpaqueType
(
"RGBColor"
,
"QdRGB"
)
RGBColor_ptr
=
OpaqueType
(
"RGBColor"
,
"QdRGB"
)
...
...
@@ -97,7 +101,9 @@ HandlerError = Type("HandlerError", "l")
Ptr
=
InputOnlyType
(
"Ptr"
,
"s"
)
StringPtr
=
Type
(
"StringPtr"
,
"s"
)
mcactionparams
=
InputOnlyType
(
"void *"
,
"s"
)
QTParameterDialog
=
Type
(
"QTParameterDialog"
,
"l"
)
QTAtomID
=
Type
(
"QTAtomID"
,
"l"
)
MCInterfaceElement
=
Type
(
"MCInterfaceElement"
,
"l"
)
# Could-not-be-bothered-types (NewMovieFromFile)
dummyshortptr
=
FakeType
(
'(short *)0'
)
dummyStringPtr
=
FakeType
(
'(StringPtr)0'
)
...
...
Mac/Modules/res/Resmodule.c
Dosyayı görüntüle @
1c4e6146
...
...
@@ -108,14 +108,14 @@ static PyObject *ResObj_HomeResFile(_self, _args)
return
_res
;
}
static
PyObject
*
ResObj_LoadResource
(
_self
,
_args
)
static
PyObject
*
ResObj_
Mac
LoadResource
(
_self
,
_args
)
ResourceObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
LoadResource
(
_self
->
ob_itself
);
Mac
LoadResource
(
_self
->
ob_itself
);
{
OSErr
_err
=
ResError
();
if
(
_err
!=
noErr
)
return
PyMac_Error
(
_err
);
...
...
@@ -437,7 +437,7 @@ static PyObject *ResObj_as_Menu(_self, _args)
static
PyMethodDef
ResObj_methods
[]
=
{
{
"HomeResFile"
,
(
PyCFunction
)
ResObj_HomeResFile
,
1
,
"() -> (short _rv)"
},
{
"
LoadResource"
,
(
PyCFunction
)
ResObj_
LoadResource
,
1
,
{
"
MacLoadResource"
,
(
PyCFunction
)
ResObj_Mac
LoadResource
,
1
,
"() -> None"
},
{
"ReleaseResource"
,
(
PyCFunction
)
ResObj_ReleaseResource
,
1
,
"() -> None"
},
...
...
Mac/Modules/win/Winmodule.c
Dosyayı görüntüle @
1c4e6146
...
...
@@ -102,6 +102,19 @@ static void WinObj_dealloc(self)
PyMem_DEL
(
self
);
}
static
PyObject
*
WinObj_MacCloseWindow
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
MacCloseWindow
(
_self
->
ob_itself
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
WinObj_SetWinColor
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
...
...
@@ -263,6 +276,22 @@ static PyObject *WinObj_SelectWindow(_self, _args)
return
_res
;
}
static
PyObject
*
WinObj_HiliteWindow
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Boolean
fHilite
;
if
(
!
PyArg_ParseTuple
(
_args
,
"b"
,
&
fHilite
))
return
NULL
;
HiliteWindow
(
_self
->
ob_itself
,
fHilite
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
WinObj_GetWindowFeatures
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
...
...
@@ -413,22 +442,6 @@ static PyObject *WinObj_DrawGrowIcon(_self, _args)
return
_res
;
}
static
PyObject
*
WinObj_HiliteWindow
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
Boolean
fHilite
;
if
(
!
PyArg_ParseTuple
(
_args
,
"b"
,
&
fHilite
))
return
NULL
;
HiliteWindow
(
_self
->
ob_itself
,
fHilite
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyObject
*
WinObj_SetWTitle
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
...
...
@@ -505,7 +518,7 @@ static PyObject *WinObj_CollapseWindow(_self, _args)
return
_res
;
}
static
PyObject
*
WinObj_MoveWindow
(
_self
,
_args
)
static
PyObject
*
WinObj_M
acM
oveWindow
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -518,10 +531,10 @@ static PyObject *WinObj_MoveWindow(_self, _args)
&
vGlobal
,
&
front
))
return
NULL
;
MoveWindow
(
_self
->
ob_itself
,
hGlobal
,
vGlobal
,
front
);
M
acM
oveWindow
(
_self
->
ob_itself
,
hGlobal
,
vGlobal
,
front
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -620,14 +633,14 @@ static PyObject *WinObj_HideWindow(_self, _args)
return
_res
;
}
static
PyObject
*
WinObj_ShowWindow
(
_self
,
_args
)
static
PyObject
*
WinObj_
Mac
ShowWindow
(
_self
,
_args
)
WindowObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
ShowWindow
(
_self
->
ob_itself
);
Mac
ShowWindow
(
_self
->
ob_itself
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
...
...
@@ -955,6 +968,8 @@ static PyObject *WinObj_SetWindowUserState(_self, _args)
}
static
PyMethodDef
WinObj_methods
[]
=
{
{
"MacCloseWindow"
,
(
PyCFunction
)
WinObj_MacCloseWindow
,
1
,
"() -> None"
},
{
"SetWinColor"
,
(
PyCFunction
)
WinObj_SetWinColor
,
1
,
"(WCTabHandle newColorTable) -> None"
},
{
"ClipAbove"
,
(
PyCFunction
)
WinObj_ClipAbove
,
1
,
...
...
@@ -977,6 +992,8 @@ static PyMethodDef WinObj_methods[] = {
"(WindowPtr behindWindow) -> None"
},
{
"SelectWindow"
,
(
PyCFunction
)
WinObj_SelectWindow
,
1
,
"() -> None"
},
{
"HiliteWindow"
,
(
PyCFunction
)
WinObj_HiliteWindow
,
1
,
"(Boolean fHilite) -> None"
},
{
"GetWindowFeatures"
,
(
PyCFunction
)
WinObj_GetWindowFeatures
,
1
,
"() -> (OSStatus _rv, UInt32 outFeatures)"
},
{
"GetWindowRegion"
,
(
PyCFunction
)
WinObj_GetWindowRegion
,
1
,
...
...
@@ -997,8 +1014,6 @@ static PyMethodDef WinObj_methods[] = {
"() -> None"
},
{
"DrawGrowIcon"
,
(
PyCFunction
)
WinObj_DrawGrowIcon
,
1
,
"() -> None"
},
{
"HiliteWindow"
,
(
PyCFunction
)
WinObj_HiliteWindow
,
1
,
"(Boolean fHilite) -> None"
},
{
"SetWTitle"
,
(
PyCFunction
)
WinObj_SetWTitle
,
1
,
"(Str255 title) -> None"
},
{
"GetWTitle"
,
(
PyCFunction
)
WinObj_GetWTitle
,
1
,
...
...
@@ -1009,7 +1024,7 @@ static PyMethodDef WinObj_methods[] = {
"() -> (Boolean _rv)"
},
{
"CollapseWindow"
,
(
PyCFunction
)
WinObj_CollapseWindow
,
1
,
"(Boolean inCollapseIt) -> (OSStatus _rv)"
},
{
"M
oveWindow"
,
(
PyCFunction
)
WinObj_
MoveWindow
,
1
,
{
"M
acMoveWindow"
,
(
PyCFunction
)
WinObj_Mac
MoveWindow
,
1
,
"(short hGlobal, short vGlobal, Boolean front) -> None"
},
{
"SizeWindow"
,
(
PyCFunction
)
WinObj_SizeWindow
,
1
,
"(short w, short h, Boolean fUpdate) -> None"
},
...
...
@@ -1021,7 +1036,7 @@ static PyMethodDef WinObj_methods[] = {
"(Point startPt, Rect boundsRect) -> None"
},
{
"HideWindow"
,
(
PyCFunction
)
WinObj_HideWindow
,
1
,
"() -> None"
},
{
"
ShowWindow"
,
(
PyCFunction
)
WinObj_
ShowWindow
,
1
,
{
"
MacShowWindow"
,
(
PyCFunction
)
WinObj_Mac
ShowWindow
,
1
,
"() -> None"
},
{
"ShowHide"
,
(
PyCFunction
)
WinObj_ShowHide
,
1
,
"(Boolean showFlag) -> None"
},
...
...
@@ -1236,7 +1251,7 @@ static PyObject *Win_CheckUpdate(_self, _args)
return
_res
;
}
static
PyObject
*
Win_FindWindow
(
_self
,
_args
)
static
PyObject
*
Win_
Mac
FindWindow
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
...
...
@@ -1247,8 +1262,8 @@ static PyObject *Win_FindWindow(_self, _args)
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
PyMac_GetPoint
,
&
thePoint
))
return
NULL
;
_rv
=
FindWindow
(
thePoint
,
&
theWindow
);
_rv
=
Mac
FindWindow
(
thePoint
,
&
theWindow
);
_res
=
Py_BuildValue
(
"hO&"
,
_rv
,
WinObj_WhichWindow
,
theWindow
);
...
...
@@ -1446,7 +1461,7 @@ static PyMethodDef Win_methods[] = {
"(PixPatHandle deskPixPat) -> None"
},
{
"CheckUpdate"
,
(
PyCFunction
)
Win_CheckUpdate
,
1
,
"() -> (Boolean _rv, EventRecord theEvent)"
},
{
"
FindWindow"
,
(
PyCFunction
)
Win_
FindWindow
,
1
,
{
"
MacFindWindow"
,
(
PyCFunction
)
Win_Mac
FindWindow
,
1
,
"(Point thePoint) -> (short _rv, WindowPtr theWindow)"
},
{
"FrontWindow"
,
(
PyCFunction
)
Win_FrontWindow
,
1
,
"() -> (WindowPtr _rv)"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment