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
38b504e9
Kaydet (Commit)
38b504e9
authored
Mar 02, 2002
tarafından
Just van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added support for SyncCGContextOriginWithPort().
üst
a5d78cc2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
CGStubLib
Mac/Modules/cg/CGStubLib
+0
-0
CGStubLib.exp
Mac/Modules/cg/CGStubLib.exp
+1
-0
_CGmodule.c
Mac/Modules/cg/_CGmodule.c
+16
-0
cgsupport.py
Mac/Modules/cg/cgsupport.py
+8
-0
No files found.
Mac/Modules/cg/CGStubLib
Dosyayı görüntüle @
38b504e9
No preview for this file type
Mac/Modules/cg/CGStubLib.exp
Dosyayı görüntüle @
38b504e9
...
@@ -56,3 +56,4 @@ CGContextRestoreGState
...
@@ -56,3 +56,4 @@ CGContextRestoreGState
CGContextSaveGState
CGContextSaveGState
CGContextRelease
CGContextRelease
CreateCGContextForPort
CreateCGContextForPort
SyncCGContextOriginWithPort
Mac/Modules/cg/_CGmodule.c
Dosyayı görüntüle @
38b504e9
...
@@ -1115,6 +1115,20 @@ static PyObject *CGContextRefObj_CGContextSetShouldAntialias(CGContextRefObject
...
@@ -1115,6 +1115,20 @@ static PyObject *CGContextRefObj_CGContextSetShouldAntialias(CGContextRefObject
return
_res
;
return
_res
;
}
}
static
PyObject
*
CGContextRefObj_SyncCGContextOriginWithPort
(
CGContextRefObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
CGrafPtr
port
;
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
GrafObj_Convert
,
&
port
))
return
NULL
;
SyncCGContextOriginWithPort
(
_self
->
ob_itself
,
port
);
Py_INCREF
(
Py_None
);
_res
=
Py_None
;
return
_res
;
}
static
PyMethodDef
CGContextRefObj_methods
[]
=
{
static
PyMethodDef
CGContextRefObj_methods
[]
=
{
{
"CGContextSaveGState"
,
(
PyCFunction
)
CGContextRefObj_CGContextSaveGState
,
1
,
{
"CGContextSaveGState"
,
(
PyCFunction
)
CGContextRefObj_CGContextSaveGState
,
1
,
"() -> None"
},
"() -> None"
},
...
@@ -1228,6 +1242,8 @@ static PyMethodDef CGContextRefObj_methods[] = {
...
@@ -1228,6 +1242,8 @@ static PyMethodDef CGContextRefObj_methods[] = {
"() -> None"
},
"() -> None"
},
{
"CGContextSetShouldAntialias"
,
(
PyCFunction
)
CGContextRefObj_CGContextSetShouldAntialias
,
1
,
{
"CGContextSetShouldAntialias"
,
(
PyCFunction
)
CGContextRefObj_CGContextSetShouldAntialias
,
1
,
"(int shouldAntialias) -> None"
},
"(int shouldAntialias) -> None"
},
{
"SyncCGContextOriginWithPort"
,
(
PyCFunction
)
CGContextRefObj_SyncCGContextOriginWithPort
,
1
,
"(CGrafPtr port) -> None"
},
{
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
0
}
};
};
...
...
Mac/Modules/cg/cgsupport.py
Dosyayı görüntüle @
38b504e9
...
@@ -17,6 +17,7 @@ OUTPUTFILE = MODNAME + "module.c" # The file generated by this program
...
@@ -17,6 +17,7 @@ OUTPUTFILE = MODNAME + "module.c" # The file generated by this program
from
macsupport
import
*
from
macsupport
import
*
CGrafPtr
=
OpaqueByValueType
(
"CGrafPtr"
,
"GrafObj"
)
# Create the type objects
# Create the type objects
...
@@ -275,6 +276,13 @@ CGContextRef_methods = []
...
@@ -275,6 +276,13 @@ CGContextRef_methods = []
# ADD _methods initializer here
# ADD _methods initializer here
execfile
(
INPUTFILE
)
execfile
(
INPUTFILE
)
# manual method, lives in Quickdraw.h
f
=
Method
(
void
,
'SyncCGContextOriginWithPort'
,
(
CGContextRef
,
'ctx'
,
InMode
),
(
CGrafPtr
,
'port'
,
InMode
),
)
CGContextRef_methods
.
append
(
f
)
CreateCGContextForPort_body
=
"""
\
CreateCGContextForPort_body
=
"""
\
GrafPtr port;
GrafPtr port;
CGContextRef ctx;
CGContextRef ctx;
...
...
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