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
3355be3f
Kaydet (Commit)
3355be3f
authored
May 08, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added _id attribute to GrafPort objects (real id of grafport, numeric)
üst
d9585c93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Qdmodule.c
Mac/Modules/qd/Qdmodule.c
+3
-3
qdsupport.py
Mac/Modules/qd/qdsupport.py
+3
-0
No files found.
Mac/Modules/qd/Qdmodule.c
Dosyayı görüntüle @
3355be3f
...
...
@@ -40,9 +40,6 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern
PyObject
*
BMObj_New
(
BitMapPtr
);
extern
int
BMObj_Convert
(
PyObject
*
,
BitMapPtr
*
);
extern
PyObject
*
PMObj_New
(
PixMapHandle
);
extern
int
PMObj_Convert
(
PyObject
*
,
PixMapHandle
*
);
extern
PyObject
*
WinObj_WhichWindow
(
WindowPtr
);
#include <QuickDraw.h>
...
...
@@ -218,6 +215,9 @@ static PyObject *GrafObj_getattr(self, name)
if
(
strcmp
(
name
,
"spExtra"
)
==
0
)
return
Py_BuildValue
(
"O&"
,
PyMac_BuildFixed
,
self
->
ob_itself
->
spExtra
);
/* XXXX Add more, as needed */
/* This one is so we can compare grafports: */
if
(
strcmp
(
name
,
"_id"
)
==
0
)
return
Py_BuildValue
(
"l"
,
(
long
)
self
->
ob_itself
);
}
return
Py_FindMethodInChain
(
&
GrafObj_chain
,
(
PyObject
*
)
self
,
name
);
}
...
...
Mac/Modules/qd/qdsupport.py
Dosyayı görüntüle @
3355be3f
...
...
@@ -204,6 +204,9 @@ class MyGRObjectDefinition(GlobalObjectDefinition):
if ( strcmp(name, "spExtra") == 0 )
return Py_BuildValue("O&", PyMac_BuildFixed, self->ob_itself->spExtra);
/* XXXX Add more, as needed */
/* This one is so we can compare grafports: */
if ( strcmp(name, "_id") == 0 )
return Py_BuildValue("l", (long)self->ob_itself);
}"""
)
class
MyBMObjectDefinition
(
GlobalObjectDefinition
):
...
...
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