Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
38b504e9
Commit
38b504e9
authored
Mar 02, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for SyncCGContextOriginWithPort().
parent
a5d78cc2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
0 deletions
+25
-0
Mac/Modules/cg/CGStubLib
Mac/Modules/cg/CGStubLib
+0
-0
Mac/Modules/cg/CGStubLib.exp
Mac/Modules/cg/CGStubLib.exp
+1
-0
Mac/Modules/cg/_CGmodule.c
Mac/Modules/cg/_CGmodule.c
+16
-0
Mac/Modules/cg/cgsupport.py
Mac/Modules/cg/cgsupport.py
+8
-0
No files found.
Mac/Modules/cg/CGStubLib
View file @
38b504e9
No preview for this file type
Mac/Modules/cg/CGStubLib.exp
View file @
38b504e9
...
...
@@ -56,3 +56,4 @@ CGContextRestoreGState
CGContextSaveGState
CGContextRelease
CreateCGContextForPort
SyncCGContextOriginWithPort
Mac/Modules/cg/_CGmodule.c
View file @
38b504e9
...
...
@@ -1115,6 +1115,20 @@ static PyObject *CGContextRefObj_CGContextSetShouldAntialias(CGContextRefObject
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
[]
=
{
{
"CGContextSaveGState"
,
(
PyCFunction
)
CGContextRefObj_CGContextSaveGState
,
1
,
"() -> None"
},
...
...
@@ -1228,6 +1242,8 @@ static PyMethodDef CGContextRefObj_methods[] = {
"() -> None"
},
{
"CGContextSetShouldAntialias"
,
(
PyCFunction
)
CGContextRefObj_CGContextSetShouldAntialias
,
1
,
"(int shouldAntialias) -> None"
},
{
"SyncCGContextOriginWithPort"
,
(
PyCFunction
)
CGContextRefObj_SyncCGContextOriginWithPort
,
1
,
"(CGrafPtr port) -> None"
},
{
NULL
,
NULL
,
0
}
};
...
...
Mac/Modules/cg/cgsupport.py
View file @
38b504e9
...
...
@@ -17,6 +17,7 @@ OUTPUTFILE = MODNAME + "module.c" # The file generated by this program
from
macsupport
import
*
CGrafPtr
=
OpaqueByValueType
(
"CGrafPtr"
,
"GrafObj"
)
# Create the type objects
...
...
@@ -275,6 +276,13 @@ CGContextRef_methods = []
# ADD _methods initializer here
execfile
(
INPUTFILE
)
# manual method, lives in Quickdraw.h
f
=
Method
(
void
,
'SyncCGContextOriginWithPort'
,
(
CGContextRef
,
'ctx'
,
InMode
),
(
CGrafPtr
,
'port'
,
InMode
),
)
CGContextRef_methods
.
append
(
f
)
CreateCGContextForPort_body
=
"""
\
GrafPtr port;
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