wok view wxpython/stuff/wxpython-cairo.patch @ rev 20615
Update varka
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 21 20:44:57 2018 +0100 (2018-12-21) |
parents | |
children |
line source
1 --- wxPython/trunk/wx/lib/wxcairo.py 2011/08/25 18:50:02 68894
2 +++ wxPython/trunk/wx/lib/wxcairo.py 2011/09/22 00:30:25 69181
3 @@ -401,6 +401,48 @@
4 ctypes.py_object)),
5 ('Check_Status', ctypes.PYFUNCTYPE(ctypes.c_int, ctypes.c_int))]
7 + # This structure is known good with pycairo 1.10.0. The keep adding stuff
8 + # to the middle of the structure instead of only adding to the end!
9 + elif cairo.version_info < (1,11):
10 + _fields_ = [
11 + ('Context_Type', ctypes.py_object),
12 + ('Context_FromContext', ctypes.PYFUNCTYPE(ctypes.py_object,
13 + ctypes.c_void_p,
14 + ctypes.py_object,
15 + ctypes.py_object)),
16 + ('FontFace_Type', ctypes.py_object),
17 + ('ToyFontFace_Type', ctypes.py_object), #** new in 1.8.4
18 + ('FontFace_FromFontFace', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p)),
19 + ('FontOptions_Type', ctypes.py_object),
20 + ('FontOptions_FromFontOptions', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p)),
21 + ('Matrix_Type', ctypes.py_object),
22 + ('Matrix_FromMatrix', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p)),
23 + ('Path_Type', ctypes.py_object),
24 + ('Path_FromPath', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p)),
25 + ('Pattern_Type', ctypes.py_object),
26 + ('SolidPattern_Type', ctypes.py_object),
27 + ('SurfacePattern_Type', ctypes.py_object),
28 + ('Gradient_Type', ctypes.py_object),
29 + ('LinearGradient_Type', ctypes.py_object),
30 + ('RadialGradient_Type', ctypes.py_object),
31 + ('Pattern_FromPattern', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p,
32 + ctypes.py_object)), #** changed in 1.8.4
33 + ('ScaledFont_Type', ctypes.py_object),
34 + ('ScaledFont_FromScaledFont', ctypes.PYFUNCTYPE(ctypes.py_object, ctypes.c_void_p)),
35 + ('Surface_Type', ctypes.py_object),
36 + ('ImageSurface_Type', ctypes.py_object),
37 + ('PDFSurface_Type', ctypes.py_object),
38 + ('PSSurface_Type', ctypes.py_object),
39 + ('SVGSurface_Type', ctypes.py_object),
40 + ('Win32Surface_Type', ctypes.py_object),
41 + ('Win32PrintingSurface_Type', ctypes.py_object),
42 + ('XCBSurface_Type', ctypes.py_object),
43 + ('XlibSurface_Type', ctypes.py_object),
44 + ('Surface_FromSurface', ctypes.PYFUNCTYPE(ctypes.py_object,
45 + ctypes.c_void_p,
46 + ctypes.py_object)),
47 + ('Check_Status', ctypes.PYFUNCTYPE(ctypes.c_int, ctypes.c_int))]
48 +
50 def _loadPycairoAPI():
51 global pycairoAPI