Mercurial > cpython-lru_cache-weakref
annotate Mac/Modules/app/_Appmodule.c @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | a40543b3e3bf |
| children |
| rev | line source |
|---|---|
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
2 /* ========================== Module _App =========================== */ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
3 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
4 #include "Python.h" |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
5 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
6 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
7 |
|
21464
b27599abcc49
Updated to Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21442
diff
changeset
|
8 #ifdef _WIN32 |
|
b27599abcc49
Updated to Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21442
diff
changeset
|
9 #include "pywintoolbox.h" |
|
b27599abcc49
Updated to Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21442
diff
changeset
|
10 #else |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
11 #include "macglue.h" |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
12 #include "pymactoolbox.h" |
|
21464
b27599abcc49
Updated to Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21442
diff
changeset
|
13 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
14 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
15 /* Macro to test whether a weak-loaded CFM function exists */ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
16 #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
17 PyErr_SetString(PyExc_NotImplementedError, \ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
18 "Not available in this shared library/OS version"); \ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
19 return NULL; \ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
20 }} while(0) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
21 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
22 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
23 #ifdef WITHOUT_FRAMEWORKS |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
24 #include <Appearance.h> |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
25 #else |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
26 #include <Carbon/Carbon.h> |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
27 #endif |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
28 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
29 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
30 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
31 int ThemeButtonDrawInfo_Convert(PyObject *v, ThemeButtonDrawInfo *p_itself) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
32 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
33 return PyArg_Parse(v, "(iHH)", &p_itself->state, &p_itself->value, &p_itself->adornment); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
34 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
35 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
36 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
37 static PyObject *App_Error; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
38 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
39 /* ----------------- Object type ThemeDrawingState ------------------ */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
40 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
41 PyTypeObject ThemeDrawingState_Type; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
42 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
43 #define ThemeDrawingStateObj_Check(x) ((x)->ob_type == &ThemeDrawingState_Type) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
44 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
45 typedef struct ThemeDrawingStateObject { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
46 PyObject_HEAD |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
47 ThemeDrawingState ob_itself; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
48 } ThemeDrawingStateObject; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
49 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
50 PyObject *ThemeDrawingStateObj_New(ThemeDrawingState itself) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
51 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
52 ThemeDrawingStateObject *it; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
53 it = PyObject_NEW(ThemeDrawingStateObject, &ThemeDrawingState_Type); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
54 if (it == NULL) return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
55 it->ob_itself = itself; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
56 return (PyObject *)it; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
57 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
58 int ThemeDrawingStateObj_Convert(PyObject *v, ThemeDrawingState *p_itself) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
59 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
60 if (!ThemeDrawingStateObj_Check(v)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
61 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
62 PyErr_SetString(PyExc_TypeError, "ThemeDrawingState required"); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
63 return 0; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
64 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
65 *p_itself = ((ThemeDrawingStateObject *)v)->ob_itself; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
66 return 1; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
67 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
68 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
69 static void ThemeDrawingStateObj_dealloc(ThemeDrawingStateObject *self) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
70 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
71 /* Cleanup of self->ob_itself goes here */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
72 PyMem_DEL(self); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
73 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
74 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
75 static PyObject *ThemeDrawingStateObj_SetThemeDrawingState(ThemeDrawingStateObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
76 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
77 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
78 OSStatus _rv; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
79 Boolean inDisposeNow; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
80 #ifndef SetThemeDrawingState |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
81 PyMac_PRECHECK(SetThemeDrawingState); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
82 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
83 if (!PyArg_ParseTuple(_args, "b", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
84 &inDisposeNow)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
85 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
86 _rv = SetThemeDrawingState(_self->ob_itself, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
87 inDisposeNow); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
88 _res = Py_BuildValue("l", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
89 _rv); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
90 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
91 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
92 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
93 static PyObject *ThemeDrawingStateObj_DisposeThemeDrawingState(ThemeDrawingStateObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
94 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
95 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
96 OSStatus _rv; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
97 #ifndef DisposeThemeDrawingState |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
98 PyMac_PRECHECK(DisposeThemeDrawingState); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
99 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
100 if (!PyArg_ParseTuple(_args, "")) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
101 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
102 _rv = DisposeThemeDrawingState(_self->ob_itself); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
103 _res = Py_BuildValue("l", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
104 _rv); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
105 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
106 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
107 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
108 static PyMethodDef ThemeDrawingStateObj_methods[] = { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
109 {"SetThemeDrawingState", (PyCFunction)ThemeDrawingStateObj_SetThemeDrawingState, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
110 "(Boolean inDisposeNow) -> (OSStatus _rv)"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
111 {"DisposeThemeDrawingState", (PyCFunction)ThemeDrawingStateObj_DisposeThemeDrawingState, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
112 "() -> (OSStatus _rv)"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
113 {NULL, NULL, 0} |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
114 }; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
115 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
116 PyMethodChain ThemeDrawingStateObj_chain = { ThemeDrawingStateObj_methods, NULL }; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
117 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
118 static PyObject *ThemeDrawingStateObj_getattr(ThemeDrawingStateObject *self, char *name) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
119 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
120 return Py_FindMethodInChain(&ThemeDrawingStateObj_chain, (PyObject *)self, name); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
121 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
122 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
123 #define ThemeDrawingStateObj_setattr NULL |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
124 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
125 #define ThemeDrawingStateObj_compare NULL |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
126 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
127 #define ThemeDrawingStateObj_repr NULL |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
128 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
129 #define ThemeDrawingStateObj_hash NULL |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
130 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
131 PyTypeObject ThemeDrawingState_Type = { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
132 PyObject_HEAD_INIT(NULL) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
133 0, /*ob_size*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
134 "_App.ThemeDrawingState", /*tp_name*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
135 sizeof(ThemeDrawingStateObject), /*tp_basicsize*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
136 0, /*tp_itemsize*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
137 /* methods */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
138 (destructor) ThemeDrawingStateObj_dealloc, /*tp_dealloc*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
139 0, /*tp_print*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
140 (getattrfunc) ThemeDrawingStateObj_getattr, /*tp_getattr*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
141 (setattrfunc) ThemeDrawingStateObj_setattr, /*tp_setattr*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
142 (cmpfunc) ThemeDrawingStateObj_compare, /*tp_compare*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
143 (reprfunc) ThemeDrawingStateObj_repr, /*tp_repr*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
144 (PyNumberMethods *)0, /* tp_as_number */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
145 (PySequenceMethods *)0, /* tp_as_sequence */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
146 (PyMappingMethods *)0, /* tp_as_mapping */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
147 (hashfunc) ThemeDrawingStateObj_hash, /*tp_hash*/ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
148 }; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
149 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
150 /* --------------- End object type ThemeDrawingState ---------------- */ |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
151 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
152 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
153 static PyObject *App_RegisterAppearanceClient(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
154 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
155 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
156 OSStatus _err; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
157 #ifndef RegisterAppearanceClient |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
158 PyMac_PRECHECK(RegisterAppearanceClient); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
159 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
160 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
161 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
162 _err = RegisterAppearanceClient(); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
163 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
164 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
165 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
166 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
167 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
168 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
169 static PyObject *App_UnregisterAppearanceClient(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
170 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
171 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
172 OSStatus _err; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
173 #ifndef UnregisterAppearanceClient |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
174 PyMac_PRECHECK(UnregisterAppearanceClient); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
175 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
176 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
177 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
178 _err = UnregisterAppearanceClient(); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
179 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
180 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
181 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
182 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
183 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
184 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
185 static PyObject *App_SetThemePen(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
186 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
187 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
188 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
189 ThemeBrush inBrush; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
190 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
191 Boolean inIsColorDevice; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
192 #ifndef SetThemePen |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
193 PyMac_PRECHECK(SetThemePen); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
194 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
195 if (!PyArg_ParseTuple(_args, "hhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
196 &inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
197 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
198 &inIsColorDevice)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
199 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
200 _err = SetThemePen(inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
201 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
202 inIsColorDevice); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
203 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
204 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
205 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
206 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
207 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
208 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
209 static PyObject *App_SetThemeBackground(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
210 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
211 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
212 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
213 ThemeBrush inBrush; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
214 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
215 Boolean inIsColorDevice; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
216 #ifndef SetThemeBackground |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
217 PyMac_PRECHECK(SetThemeBackground); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
218 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
219 if (!PyArg_ParseTuple(_args, "hhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
220 &inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
221 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
222 &inIsColorDevice)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
223 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
224 _err = SetThemeBackground(inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
225 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
226 inIsColorDevice); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
227 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
228 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
229 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
230 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
231 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
232 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
233 static PyObject *App_SetThemeTextColor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
234 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
235 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
236 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
237 ThemeTextColor inColor; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
238 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
239 Boolean inIsColorDevice; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
240 #ifndef SetThemeTextColor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
241 PyMac_PRECHECK(SetThemeTextColor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
242 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
243 if (!PyArg_ParseTuple(_args, "hhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
244 &inColor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
245 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
246 &inIsColorDevice)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
247 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
248 _err = SetThemeTextColor(inColor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
249 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
250 inIsColorDevice); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
251 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
252 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
253 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
254 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
255 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
256 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
257 static PyObject *App_SetThemeWindowBackground(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
258 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
259 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
260 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
261 WindowPtr inWindow; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
262 ThemeBrush inBrush; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
263 Boolean inUpdate; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
264 #ifndef SetThemeWindowBackground |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
265 PyMac_PRECHECK(SetThemeWindowBackground); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
266 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
267 if (!PyArg_ParseTuple(_args, "O&hb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
268 WinObj_Convert, &inWindow, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
269 &inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
270 &inUpdate)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
271 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
272 _err = SetThemeWindowBackground(inWindow, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
273 inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
274 inUpdate); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
275 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
276 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
277 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
278 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
279 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
280 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
281 static PyObject *App_DrawThemeWindowHeader(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
282 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
283 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
284 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
285 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
286 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
287 #ifndef DrawThemeWindowHeader |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
288 PyMac_PRECHECK(DrawThemeWindowHeader); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
289 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
290 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
291 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
292 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
293 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
294 _err = DrawThemeWindowHeader(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
295 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
296 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
297 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
298 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
299 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
300 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
301 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
302 static PyObject *App_DrawThemeWindowListViewHeader(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
303 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
304 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
305 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
306 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
307 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
308 #ifndef DrawThemeWindowListViewHeader |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
309 PyMac_PRECHECK(DrawThemeWindowListViewHeader); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
310 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
311 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
312 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
313 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
314 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
315 _err = DrawThemeWindowListViewHeader(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
316 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
317 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
318 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
319 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
320 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
321 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
322 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
323 static PyObject *App_DrawThemePlacard(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
324 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
325 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
326 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
327 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
328 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
329 #ifndef DrawThemePlacard |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
330 PyMac_PRECHECK(DrawThemePlacard); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
331 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
332 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
333 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
334 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
335 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
336 _err = DrawThemePlacard(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
337 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
338 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
339 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
340 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
341 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
342 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
343 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
344 static PyObject *App_DrawThemeEditTextFrame(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
345 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
346 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
347 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
348 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
349 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
350 #ifndef DrawThemeEditTextFrame |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
351 PyMac_PRECHECK(DrawThemeEditTextFrame); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
352 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
353 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
354 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
355 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
356 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
357 _err = DrawThemeEditTextFrame(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
358 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
359 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
360 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
361 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
362 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
363 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
364 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
365 static PyObject *App_DrawThemeListBoxFrame(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
366 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
367 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
368 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
369 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
370 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
371 #ifndef DrawThemeListBoxFrame |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
372 PyMac_PRECHECK(DrawThemeListBoxFrame); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
373 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
374 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
375 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
376 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
377 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
378 _err = DrawThemeListBoxFrame(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
379 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
380 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
381 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
382 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
383 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
384 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
385 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
386 static PyObject *App_DrawThemeFocusRect(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
387 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
388 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
389 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
390 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
391 Boolean inHasFocus; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
392 #ifndef DrawThemeFocusRect |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
393 PyMac_PRECHECK(DrawThemeFocusRect); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
394 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
395 if (!PyArg_ParseTuple(_args, "O&b", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
396 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
397 &inHasFocus)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
398 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
399 _err = DrawThemeFocusRect(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
400 inHasFocus); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
401 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
402 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
403 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
404 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
405 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
406 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
407 static PyObject *App_DrawThemePrimaryGroup(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
408 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
409 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
410 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
411 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
412 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
413 #ifndef DrawThemePrimaryGroup |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
414 PyMac_PRECHECK(DrawThemePrimaryGroup); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
415 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
416 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
417 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
418 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
419 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
420 _err = DrawThemePrimaryGroup(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
421 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
422 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
423 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
424 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
425 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
426 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
427 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
428 static PyObject *App_DrawThemeSecondaryGroup(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
429 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
430 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
431 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
432 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
433 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
434 #ifndef DrawThemeSecondaryGroup |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
435 PyMac_PRECHECK(DrawThemeSecondaryGroup); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
436 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
437 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
438 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
439 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
440 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
441 _err = DrawThemeSecondaryGroup(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
442 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
443 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
444 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
445 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
446 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
447 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
448 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
449 static PyObject *App_DrawThemeSeparator(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
450 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
451 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
452 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
453 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
454 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
455 #ifndef DrawThemeSeparator |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
456 PyMac_PRECHECK(DrawThemeSeparator); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
457 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
458 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
459 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
460 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
461 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
462 _err = DrawThemeSeparator(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
463 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
464 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
465 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
466 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
467 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
468 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
469 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
470 static PyObject *App_DrawThemeModelessDialogFrame(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
471 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
472 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
473 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
474 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
475 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
476 #ifndef DrawThemeModelessDialogFrame |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
477 PyMac_PRECHECK(DrawThemeModelessDialogFrame); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
478 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
479 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
480 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
481 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
482 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
483 _err = DrawThemeModelessDialogFrame(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
484 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
485 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
486 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
487 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
488 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
489 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
490 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
491 static PyObject *App_DrawThemeGenericWell(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
492 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
493 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
494 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
495 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
496 ThemeDrawState inState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
497 Boolean inFillCenter; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
498 #ifndef DrawThemeGenericWell |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
499 PyMac_PRECHECK(DrawThemeGenericWell); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
500 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
501 if (!PyArg_ParseTuple(_args, "O&lb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
502 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
503 &inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
504 &inFillCenter)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
505 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
506 _err = DrawThemeGenericWell(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
507 inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
508 inFillCenter); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
509 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
510 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
511 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
512 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
513 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
514 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
515 static PyObject *App_DrawThemeFocusRegion(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
516 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
517 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
518 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
519 Boolean inHasFocus; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
520 #ifndef DrawThemeFocusRegion |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
521 PyMac_PRECHECK(DrawThemeFocusRegion); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
522 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
523 if (!PyArg_ParseTuple(_args, "b", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
524 &inHasFocus)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
525 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
526 _err = DrawThemeFocusRegion((RgnHandle)0, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
527 inHasFocus); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
528 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
529 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
530 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
531 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
532 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
533 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
534 static PyObject *App_IsThemeInColor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
535 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
536 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
537 Boolean _rv; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
538 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
539 Boolean inIsColorDevice; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
540 #ifndef IsThemeInColor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
541 PyMac_PRECHECK(IsThemeInColor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
542 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
543 if (!PyArg_ParseTuple(_args, "hb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
544 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
545 &inIsColorDevice)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
546 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
547 _rv = IsThemeInColor(inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
548 inIsColorDevice); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
549 _res = Py_BuildValue("b", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
550 _rv); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
551 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
552 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
553 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
554 static PyObject *App_GetThemeAccentColors(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
555 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
556 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
557 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
558 CTabHandle outColors; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
559 #ifndef GetThemeAccentColors |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
560 PyMac_PRECHECK(GetThemeAccentColors); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
561 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
562 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
563 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
564 _err = GetThemeAccentColors(&outColors); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
565 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
566 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
567 ResObj_New, outColors); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
568 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
569 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
570 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
571 static PyObject *App_DrawThemeMenuBarBackground(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
572 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
573 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
574 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
575 Rect inBounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
576 ThemeMenuBarState inState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
577 UInt32 inAttributes; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
578 #ifndef DrawThemeMenuBarBackground |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
579 PyMac_PRECHECK(DrawThemeMenuBarBackground); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
580 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
581 if (!PyArg_ParseTuple(_args, "O&Hl", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
582 PyMac_GetRect, &inBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
583 &inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
584 &inAttributes)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
585 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
586 _err = DrawThemeMenuBarBackground(&inBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
587 inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
588 inAttributes); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
589 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
590 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
591 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
592 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
593 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
594 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
595 static PyObject *App_GetThemeMenuBarHeight(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
596 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
597 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
598 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
599 SInt16 outHeight; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
600 #ifndef GetThemeMenuBarHeight |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
601 PyMac_PRECHECK(GetThemeMenuBarHeight); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
602 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
603 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
604 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
605 _err = GetThemeMenuBarHeight(&outHeight); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
606 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
607 _res = Py_BuildValue("h", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
608 outHeight); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
609 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
610 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
611 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
612 static PyObject *App_DrawThemeMenuBackground(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
613 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
614 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
615 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
616 Rect inMenuRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
617 ThemeMenuType inMenuType; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
618 #ifndef DrawThemeMenuBackground |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
619 PyMac_PRECHECK(DrawThemeMenuBackground); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
620 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
621 if (!PyArg_ParseTuple(_args, "O&H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
622 PyMac_GetRect, &inMenuRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
623 &inMenuType)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
624 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
625 _err = DrawThemeMenuBackground(&inMenuRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
626 inMenuType); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
627 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
628 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
629 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
630 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
631 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
632 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
633 static PyObject *App_GetThemeMenuBackgroundRegion(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
634 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
635 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
636 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
637 Rect inMenuRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
638 ThemeMenuType menuType; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
639 #ifndef GetThemeMenuBackgroundRegion |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
640 PyMac_PRECHECK(GetThemeMenuBackgroundRegion); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
641 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
642 if (!PyArg_ParseTuple(_args, "O&H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
643 PyMac_GetRect, &inMenuRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
644 &menuType)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
645 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
646 _err = GetThemeMenuBackgroundRegion(&inMenuRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
647 menuType, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
648 (RgnHandle)0); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
649 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
650 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
651 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
652 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
653 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
654 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
655 static PyObject *App_DrawThemeMenuSeparator(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
656 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
657 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
658 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
659 Rect inItemRect; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
660 #ifndef DrawThemeMenuSeparator |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
661 PyMac_PRECHECK(DrawThemeMenuSeparator); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
662 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
663 if (!PyArg_ParseTuple(_args, "O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
664 PyMac_GetRect, &inItemRect)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
665 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
666 _err = DrawThemeMenuSeparator(&inItemRect); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
667 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
668 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
669 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
670 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
671 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
672 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
673 static PyObject *App_GetThemeMenuSeparatorHeight(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
674 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
675 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
676 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
677 SInt16 outHeight; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
678 #ifndef GetThemeMenuSeparatorHeight |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
679 PyMac_PRECHECK(GetThemeMenuSeparatorHeight); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
680 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
681 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
682 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
683 _err = GetThemeMenuSeparatorHeight(&outHeight); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
684 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
685 _res = Py_BuildValue("h", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
686 outHeight); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
687 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
688 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
689 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
690 static PyObject *App_GetThemeMenuItemExtra(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
691 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
692 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
693 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
694 ThemeMenuItemType inItemType; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
695 SInt16 outHeight; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
696 SInt16 outWidth; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
697 #ifndef GetThemeMenuItemExtra |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
698 PyMac_PRECHECK(GetThemeMenuItemExtra); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
699 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
700 if (!PyArg_ParseTuple(_args, "H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
701 &inItemType)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
702 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
703 _err = GetThemeMenuItemExtra(inItemType, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
704 &outHeight, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
705 &outWidth); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
706 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
707 _res = Py_BuildValue("hh", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
708 outHeight, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
709 outWidth); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
710 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
711 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
712 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
713 static PyObject *App_GetThemeMenuTitleExtra(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
714 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
715 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
716 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
717 SInt16 outWidth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
718 Boolean inIsSquished; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
719 #ifndef GetThemeMenuTitleExtra |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
720 PyMac_PRECHECK(GetThemeMenuTitleExtra); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
721 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
722 if (!PyArg_ParseTuple(_args, "b", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
723 &inIsSquished)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
724 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
725 _err = GetThemeMenuTitleExtra(&outWidth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
726 inIsSquished); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
727 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
728 _res = Py_BuildValue("h", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
729 outWidth); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
730 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
731 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
732 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
733 static PyObject *App_DrawThemeTabPane(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
734 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
735 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
736 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
737 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
738 ThemeDrawState inState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
739 #ifndef DrawThemeTabPane |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
740 PyMac_PRECHECK(DrawThemeTabPane); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
741 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
742 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
743 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
744 &inState)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
745 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
746 _err = DrawThemeTabPane(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
747 inState); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
748 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
749 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
750 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
751 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
752 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
753 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
754 static PyObject *App_GetThemeTabRegion(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
755 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
756 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
757 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
758 Rect inRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
759 ThemeTabStyle inStyle; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
760 ThemeTabDirection inDirection; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
761 #ifndef GetThemeTabRegion |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
762 PyMac_PRECHECK(GetThemeTabRegion); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
763 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
764 if (!PyArg_ParseTuple(_args, "O&HH", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
765 PyMac_GetRect, &inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
766 &inStyle, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
767 &inDirection)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
768 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
769 _err = GetThemeTabRegion(&inRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
770 inStyle, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
771 inDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
772 (RgnHandle)0); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
773 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
774 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
775 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
776 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
777 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
778 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
779 static PyObject *App_SetThemeCursor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
780 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
781 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
782 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
783 ThemeCursor inCursor; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
784 #ifndef SetThemeCursor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
785 PyMac_PRECHECK(SetThemeCursor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
786 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
787 if (!PyArg_ParseTuple(_args, "l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
788 &inCursor)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
789 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
790 _err = SetThemeCursor(inCursor); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
791 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
792 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
793 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
794 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
795 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
796 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
797 static PyObject *App_SetAnimatedThemeCursor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
798 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
799 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
800 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
801 ThemeCursor inCursor; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
802 UInt32 inAnimationStep; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
803 #ifndef SetAnimatedThemeCursor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
804 PyMac_PRECHECK(SetAnimatedThemeCursor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
805 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
806 if (!PyArg_ParseTuple(_args, "ll", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
807 &inCursor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
808 &inAnimationStep)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
809 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
810 _err = SetAnimatedThemeCursor(inCursor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
811 inAnimationStep); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
812 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
813 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
814 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
815 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
816 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
817 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
818 static PyObject *App_GetThemeScrollBarThumbStyle(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
819 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
820 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
821 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
822 ThemeScrollBarThumbStyle outStyle; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
823 #ifndef GetThemeScrollBarThumbStyle |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
824 PyMac_PRECHECK(GetThemeScrollBarThumbStyle); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
825 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
826 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
827 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
828 _err = GetThemeScrollBarThumbStyle(&outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
829 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
830 _res = Py_BuildValue("H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
831 outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
832 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
833 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
834 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
835 static PyObject *App_GetThemeScrollBarArrowStyle(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
836 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
837 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
838 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
839 ThemeScrollBarArrowStyle outStyle; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
840 #ifndef GetThemeScrollBarArrowStyle |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
841 PyMac_PRECHECK(GetThemeScrollBarArrowStyle); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
842 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
843 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
844 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
845 _err = GetThemeScrollBarArrowStyle(&outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
846 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
847 _res = Py_BuildValue("H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
848 outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
849 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
850 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
851 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
852 static PyObject *App_GetThemeCheckBoxStyle(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
853 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
854 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
855 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
856 ThemeCheckBoxStyle outStyle; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
857 #ifndef GetThemeCheckBoxStyle |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
858 PyMac_PRECHECK(GetThemeCheckBoxStyle); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
859 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
860 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
861 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
862 _err = GetThemeCheckBoxStyle(&outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
863 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
864 _res = Py_BuildValue("H", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
865 outStyle); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
866 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
867 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
868 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
869 static PyObject *App_UseThemeFont(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
870 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
871 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
872 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
873 ThemeFontID inFontID; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
874 ScriptCode inScript; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
875 #ifndef UseThemeFont |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
876 PyMac_PRECHECK(UseThemeFont); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
877 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
878 if (!PyArg_ParseTuple(_args, "Hh", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
879 &inFontID, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
880 &inScript)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
881 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
882 _err = UseThemeFont(inFontID, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
883 inScript); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
884 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
885 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
886 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
887 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
888 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
889 |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
890 #if TARGET_API_MAC_CARBON |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
891 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
892 static PyObject *App_DrawThemeTextBox(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
893 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
894 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
895 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
896 CFStringRef inString; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
897 ThemeFontID inFontID; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
898 ThemeDrawState inState; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
899 Boolean inWrapToWidth; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
900 Rect inBoundingBox; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
901 SInt16 inJust; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
902 #ifndef DrawThemeTextBox |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
903 PyMac_PRECHECK(DrawThemeTextBox); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
904 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
905 if (!PyArg_ParseTuple(_args, "O&HlbO&h", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
906 CFStringRefObj_Convert, &inString, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
907 &inFontID, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
908 &inState, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
909 &inWrapToWidth, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
910 PyMac_GetRect, &inBoundingBox, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
911 &inJust)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
912 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
913 _err = DrawThemeTextBox(inString, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
914 inFontID, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
915 inState, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
916 inWrapToWidth, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
917 &inBoundingBox, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
918 inJust, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
919 NULL); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
920 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
921 Py_INCREF(Py_None); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
922 _res = Py_None; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
923 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
924 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
925 #endif |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
926 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
927 #if TARGET_API_MAC_CARBON |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
928 |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
929 static PyObject *App_TruncateThemeText(PyObject *_self, PyObject *_args) |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
930 { |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
931 PyObject *_res = NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
932 OSStatus _err; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
933 CFMutableStringRef inString; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
934 ThemeFontID inFontID; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
935 ThemeDrawState inState; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
936 SInt16 inPixelWidthLimit; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
937 TruncCode inTruncWhere; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
938 Boolean outTruncated; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
939 #ifndef TruncateThemeText |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
940 PyMac_PRECHECK(TruncateThemeText); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
941 #endif |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
942 if (!PyArg_ParseTuple(_args, "O&Hlhh", |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
943 CFMutableStringRefObj_Convert, &inString, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
944 &inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
945 &inState, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
946 &inPixelWidthLimit, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
947 &inTruncWhere)) |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
948 return NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
949 _err = TruncateThemeText(inString, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
950 inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
951 inState, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
952 inPixelWidthLimit, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
953 inTruncWhere, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
954 &outTruncated); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
955 if (_err != noErr) return PyMac_Error(_err); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
956 _res = Py_BuildValue("b", |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
957 outTruncated); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
958 return _res; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
959 } |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
960 #endif |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
961 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
962 #if TARGET_API_MAC_CARBON |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
963 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
964 static PyObject *App_GetThemeTextDimensions(PyObject *_self, PyObject *_args) |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
965 { |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
966 PyObject *_res = NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
967 OSStatus _err; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
968 CFStringRef inString; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
969 ThemeFontID inFontID; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
970 ThemeDrawState inState; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
971 Boolean inWrapToWidth; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
972 Point ioBounds; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
973 SInt16 outBaseline; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
974 #ifndef GetThemeTextDimensions |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
975 PyMac_PRECHECK(GetThemeTextDimensions); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
976 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
977 if (!PyArg_ParseTuple(_args, "O&HlbO&", |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
978 CFStringRefObj_Convert, &inString, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
979 &inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
980 &inState, |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
981 &inWrapToWidth, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
982 PyMac_GetPoint, &ioBounds)) |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
983 return NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
984 _err = GetThemeTextDimensions(inString, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
985 inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
986 inState, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
987 inWrapToWidth, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
988 &ioBounds, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
989 &outBaseline); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
990 if (_err != noErr) return PyMac_Error(_err); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
991 _res = Py_BuildValue("O&h", |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
992 PyMac_BuildPoint, ioBounds, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
993 outBaseline); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
994 return _res; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
995 } |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
996 #endif |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
997 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
998 #if TARGET_API_MAC_CARBON |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
999 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1000 static PyObject *App_GetThemeTextShadowOutset(PyObject *_self, PyObject *_args) |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1001 { |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1002 PyObject *_res = NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1003 OSStatus _err; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1004 ThemeFontID inFontID; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1005 ThemeDrawState inState; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1006 Rect outOutset; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1007 #ifndef GetThemeTextShadowOutset |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1008 PyMac_PRECHECK(GetThemeTextShadowOutset); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1009 #endif |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1010 if (!PyArg_ParseTuple(_args, "Hl", |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1011 &inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1012 &inState)) |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1013 return NULL; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1014 _err = GetThemeTextShadowOutset(inFontID, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1015 inState, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1016 &outOutset); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1017 if (_err != noErr) return PyMac_Error(_err); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1018 _res = Py_BuildValue("O&", |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1019 PyMac_BuildRect, &outOutset); |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1020 return _res; |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1021 } |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1022 #endif |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1023 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1024 static PyObject *App_DrawThemeScrollBarArrows(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1025 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1026 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1027 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1028 Rect bounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1029 ThemeTrackEnableState enableState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1030 ThemeTrackPressState pressState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1031 Boolean isHoriz; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1032 Rect trackBounds; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1033 #ifndef DrawThemeScrollBarArrows |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1034 PyMac_PRECHECK(DrawThemeScrollBarArrows); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1035 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1036 if (!PyArg_ParseTuple(_args, "O&bbb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1037 PyMac_GetRect, &bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1038 &enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1039 &pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1040 &isHoriz)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1041 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1042 _err = DrawThemeScrollBarArrows(&bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1043 enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1044 pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1045 isHoriz, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1046 &trackBounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1047 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1048 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1049 PyMac_BuildRect, &trackBounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1050 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1051 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1052 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1053 static PyObject *App_GetThemeScrollBarTrackRect(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1054 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1055 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1056 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1057 Rect bounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1058 ThemeTrackEnableState enableState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1059 ThemeTrackPressState pressState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1060 Boolean isHoriz; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1061 Rect trackBounds; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1062 #ifndef GetThemeScrollBarTrackRect |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1063 PyMac_PRECHECK(GetThemeScrollBarTrackRect); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1064 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1065 if (!PyArg_ParseTuple(_args, "O&bbb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1066 PyMac_GetRect, &bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1067 &enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1068 &pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1069 &isHoriz)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1070 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1071 _err = GetThemeScrollBarTrackRect(&bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1072 enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1073 pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1074 isHoriz, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1075 &trackBounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1076 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1077 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1078 PyMac_BuildRect, &trackBounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1079 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1080 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1081 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1082 static PyObject *App_HitTestThemeScrollBarArrows(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1083 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1084 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1085 Boolean _rv; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1086 Rect scrollBarBounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1087 ThemeTrackEnableState enableState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1088 ThemeTrackPressState pressState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1089 Boolean isHoriz; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1090 Point ptHit; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1091 Rect trackBounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1092 ControlPartCode partcode; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1093 #ifndef HitTestThemeScrollBarArrows |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1094 PyMac_PRECHECK(HitTestThemeScrollBarArrows); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1095 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1096 if (!PyArg_ParseTuple(_args, "O&bbbO&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1097 PyMac_GetRect, &scrollBarBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1098 &enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1099 &pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1100 &isHoriz, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1101 PyMac_GetPoint, &ptHit)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1102 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1103 _rv = HitTestThemeScrollBarArrows(&scrollBarBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1104 enableState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1105 pressState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1106 isHoriz, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1107 ptHit, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1108 &trackBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1109 &partcode); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1110 _res = Py_BuildValue("bO&h", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1111 _rv, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1112 PyMac_BuildRect, &trackBounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1113 partcode); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1114 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1115 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1116 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1117 static PyObject *App_DrawThemeScrollBarDelimiters(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1118 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1119 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1120 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1121 ThemeWindowType flavor; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1122 Rect inContRect; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1123 ThemeDrawState state; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1124 ThemeWindowAttributes attributes; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1125 #ifndef DrawThemeScrollBarDelimiters |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1126 PyMac_PRECHECK(DrawThemeScrollBarDelimiters); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1127 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1128 if (!PyArg_ParseTuple(_args, "HO&ll", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1129 &flavor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1130 PyMac_GetRect, &inContRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1131 &state, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1132 &attributes)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1133 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1134 _err = DrawThemeScrollBarDelimiters(flavor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1135 &inContRect, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1136 state, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1137 attributes); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1138 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1139 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1140 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1141 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1142 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1143 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1144 static PyObject *App_DrawThemeButton(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1145 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1146 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1147 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1148 Rect inBounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1149 UInt16 inKind; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1150 ThemeButtonDrawInfo inNewInfo; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1151 ThemeButtonDrawInfo inPrevInfo; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1152 UInt32 inUserData; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1153 #ifndef DrawThemeButton |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1154 PyMac_PRECHECK(DrawThemeButton); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1155 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1156 if (!PyArg_ParseTuple(_args, "O&HO&O&l", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1157 PyMac_GetRect, &inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1158 &inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1159 ThemeButtonDrawInfo_Convert, &inNewInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1160 ThemeButtonDrawInfo_Convert, &inPrevInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1161 &inUserData)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1162 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1163 _err = DrawThemeButton(&inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1164 inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1165 &inNewInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1166 &inPrevInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1167 NULL, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1168 NULL, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1169 inUserData); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1170 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1171 Py_INCREF(Py_None); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1172 _res = Py_None; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1173 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1174 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1175 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1176 static PyObject *App_GetThemeButtonRegion(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1177 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1178 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1179 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1180 Rect inBounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1181 UInt16 inKind; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1182 ThemeButtonDrawInfo inNewInfo; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1183 #ifndef GetThemeButtonRegion |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1184 PyMac_PRECHECK(GetThemeButtonRegion); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1185 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1186 if (!PyArg_ParseTuple(_args, "O&HO&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1187 PyMac_GetRect, &inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1188 &inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1189 ThemeButtonDrawInfo_Convert, &inNewInfo)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1190 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1191 _err = GetThemeButtonRegion(&inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1192 inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1193 &inNewInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1194 (RgnHandle)0); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1195 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1196 Py_INCREF(Py_None); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1197 _res = Py_None; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1198 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1199 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1200 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1201 static PyObject *App_GetThemeButtonContentBounds(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1202 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1203 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1204 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1205 Rect inBounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1206 UInt16 inKind; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1207 ThemeButtonDrawInfo inDrawInfo; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1208 Rect outBounds; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1209 #ifndef GetThemeButtonContentBounds |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1210 PyMac_PRECHECK(GetThemeButtonContentBounds); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1211 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1212 if (!PyArg_ParseTuple(_args, "O&HO&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1213 PyMac_GetRect, &inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1214 &inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1215 ThemeButtonDrawInfo_Convert, &inDrawInfo)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1216 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1217 _err = GetThemeButtonContentBounds(&inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1218 inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1219 &inDrawInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1220 &outBounds); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1221 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1222 _res = Py_BuildValue("O&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1223 PyMac_BuildRect, &outBounds); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1224 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1225 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1226 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1227 static PyObject *App_GetThemeButtonBackgroundBounds(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1228 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1229 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1230 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1231 Rect inBounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1232 UInt16 inKind; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1233 ThemeButtonDrawInfo inDrawInfo; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1234 Rect outBounds; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1235 #ifndef GetThemeButtonBackgroundBounds |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1236 PyMac_PRECHECK(GetThemeButtonBackgroundBounds); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1237 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1238 if (!PyArg_ParseTuple(_args, "O&HO&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1239 PyMac_GetRect, &inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1240 &inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1241 ThemeButtonDrawInfo_Convert, &inDrawInfo)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1242 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1243 _err = GetThemeButtonBackgroundBounds(&inBounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1244 inKind, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1245 &inDrawInfo, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1246 &outBounds); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1247 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1248 _res = Py_BuildValue("O&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1249 PyMac_BuildRect, &outBounds); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1250 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1251 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1252 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1253 static PyObject *App_PlayThemeSound(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1254 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1255 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1256 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1257 ThemeSoundKind kind; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1258 #ifndef PlayThemeSound |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1259 PyMac_PRECHECK(PlayThemeSound); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1260 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1261 if (!PyArg_ParseTuple(_args, "O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1262 PyMac_GetOSType, &kind)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1263 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1264 _err = PlayThemeSound(kind); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1265 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1266 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1267 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1268 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1269 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1270 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1271 static PyObject *App_BeginThemeDragSound(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1272 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1273 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1274 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1275 ThemeDragSoundKind kind; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1276 #ifndef BeginThemeDragSound |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1277 PyMac_PRECHECK(BeginThemeDragSound); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1278 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1279 if (!PyArg_ParseTuple(_args, "O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1280 PyMac_GetOSType, &kind)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1281 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1282 _err = BeginThemeDragSound(kind); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1283 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1284 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1285 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1286 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1287 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1288 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1289 static PyObject *App_EndThemeDragSound(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1290 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1291 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1292 OSStatus _err; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1293 #ifndef EndThemeDragSound |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1294 PyMac_PRECHECK(EndThemeDragSound); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1295 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1296 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1297 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1298 _err = EndThemeDragSound(); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1299 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1300 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1301 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1302 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1303 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1304 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1305 static PyObject *App_DrawThemeTickMark(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1306 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1307 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1308 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1309 Rect bounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1310 ThemeDrawState state; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1311 #ifndef DrawThemeTickMark |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1312 PyMac_PRECHECK(DrawThemeTickMark); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1313 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1314 if (!PyArg_ParseTuple(_args, "O&l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1315 PyMac_GetRect, &bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1316 &state)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1317 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1318 _err = DrawThemeTickMark(&bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1319 state); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1320 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1321 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1322 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1323 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1324 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1325 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1326 static PyObject *App_DrawThemeChasingArrows(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1327 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1328 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1329 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1330 Rect bounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1331 UInt32 index; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1332 ThemeDrawState state; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1333 UInt32 eraseData; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1334 #ifndef DrawThemeChasingArrows |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1335 PyMac_PRECHECK(DrawThemeChasingArrows); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1336 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1337 if (!PyArg_ParseTuple(_args, "O&lll", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1338 PyMac_GetRect, &bounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1339 &index, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1340 &state, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1341 &eraseData)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1342 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1343 _err = DrawThemeChasingArrows(&bounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1344 index, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1345 state, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1346 NULL, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1347 eraseData); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1348 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1349 Py_INCREF(Py_None); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1350 _res = Py_None; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1351 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1352 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1353 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1354 static PyObject *App_DrawThemePopupArrow(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1355 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1356 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1357 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1358 Rect bounds; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1359 ThemeArrowOrientation orientation; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1360 ThemePopupArrowSize size; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1361 ThemeDrawState state; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1362 UInt32 eraseData; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1363 #ifndef DrawThemePopupArrow |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1364 PyMac_PRECHECK(DrawThemePopupArrow); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1365 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1366 if (!PyArg_ParseTuple(_args, "O&HHll", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1367 PyMac_GetRect, &bounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1368 &orientation, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1369 &size, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1370 &state, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1371 &eraseData)) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1372 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1373 _err = DrawThemePopupArrow(&bounds, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1374 orientation, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1375 size, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1376 state, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1377 NULL, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1378 eraseData); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1379 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1380 Py_INCREF(Py_None); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1381 _res = Py_None; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1382 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1383 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1384 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1385 static PyObject *App_DrawThemeStandaloneGrowBox(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1386 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1387 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1388 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1389 Point origin; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1390 ThemeGrowDirection growDirection; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1391 Boolean isSmall; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1392 ThemeDrawState state; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1393 #ifndef DrawThemeStandaloneGrowBox |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1394 PyMac_PRECHECK(DrawThemeStandaloneGrowBox); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1395 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1396 if (!PyArg_ParseTuple(_args, "O&Hbl", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1397 PyMac_GetPoint, &origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1398 &growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1399 &isSmall, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1400 &state)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1401 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1402 _err = DrawThemeStandaloneGrowBox(origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1403 growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1404 isSmall, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1405 state); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1406 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1407 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1408 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1409 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1410 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1411 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1412 static PyObject *App_DrawThemeStandaloneNoGrowBox(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1413 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1414 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1415 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1416 Point origin; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1417 ThemeGrowDirection growDirection; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1418 Boolean isSmall; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1419 ThemeDrawState state; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1420 #ifndef DrawThemeStandaloneNoGrowBox |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1421 PyMac_PRECHECK(DrawThemeStandaloneNoGrowBox); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1422 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1423 if (!PyArg_ParseTuple(_args, "O&Hbl", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1424 PyMac_GetPoint, &origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1425 &growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1426 &isSmall, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1427 &state)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1428 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1429 _err = DrawThemeStandaloneNoGrowBox(origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1430 growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1431 isSmall, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1432 state); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1433 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1434 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1435 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1436 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1437 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1438 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1439 static PyObject *App_GetThemeStandaloneGrowBoxBounds(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1440 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1441 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1442 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1443 Point origin; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1444 ThemeGrowDirection growDirection; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1445 Boolean isSmall; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1446 Rect bounds; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1447 #ifndef GetThemeStandaloneGrowBoxBounds |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1448 PyMac_PRECHECK(GetThemeStandaloneGrowBoxBounds); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1449 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1450 if (!PyArg_ParseTuple(_args, "O&Hb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1451 PyMac_GetPoint, &origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1452 &growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1453 &isSmall)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1454 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1455 _err = GetThemeStandaloneGrowBoxBounds(origin, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1456 growDirection, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1457 isSmall, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1458 &bounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1459 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1460 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1461 PyMac_BuildRect, &bounds); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1462 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1463 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1464 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1465 static PyObject *App_NormalizeThemeDrawingState(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1466 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1467 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1468 OSStatus _err; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1469 #ifndef NormalizeThemeDrawingState |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1470 PyMac_PRECHECK(NormalizeThemeDrawingState); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1471 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1472 if (!PyArg_ParseTuple(_args, "")) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1473 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1474 _err = NormalizeThemeDrawingState(); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1475 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1476 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1477 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1478 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1479 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1480 |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1481 static PyObject *App_GetThemeDrawingState(PyObject *_self, PyObject *_args) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1482 { |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1483 PyObject *_res = NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1484 OSStatus _err; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1485 ThemeDrawingState outState; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1486 #ifndef GetThemeDrawingState |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1487 PyMac_PRECHECK(GetThemeDrawingState); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1488 #endif |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1489 if (!PyArg_ParseTuple(_args, "")) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1490 return NULL; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1491 _err = GetThemeDrawingState(&outState); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1492 if (_err != noErr) return PyMac_Error(_err); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1493 _res = Py_BuildValue("O&", |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1494 ThemeDrawingStateObj_New, outState); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1495 return _res; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1496 } |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1497 |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1498 static PyObject *App_ApplyThemeBackground(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1499 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1500 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1501 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1502 ThemeBackgroundKind inKind; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1503 Rect bounds; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1504 ThemeDrawState inState; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1505 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1506 Boolean inColorDev; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1507 #ifndef ApplyThemeBackground |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1508 PyMac_PRECHECK(ApplyThemeBackground); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1509 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1510 if (!PyArg_ParseTuple(_args, "lO&lhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1511 &inKind, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1512 PyMac_GetRect, &bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1513 &inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1514 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1515 &inColorDev)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1516 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1517 _err = ApplyThemeBackground(inKind, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1518 &bounds, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1519 inState, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1520 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1521 inColorDev); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1522 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1523 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1524 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1525 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1526 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1527 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1528 static PyObject *App_SetThemeTextColorForWindow(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1529 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1530 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1531 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1532 WindowPtr window; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1533 Boolean isActive; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1534 SInt16 depth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1535 Boolean isColorDev; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1536 #ifndef SetThemeTextColorForWindow |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1537 PyMac_PRECHECK(SetThemeTextColorForWindow); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1538 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1539 if (!PyArg_ParseTuple(_args, "O&bhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1540 WinObj_Convert, &window, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1541 &isActive, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1542 &depth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1543 &isColorDev)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1544 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1545 _err = SetThemeTextColorForWindow(window, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1546 isActive, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1547 depth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1548 isColorDev); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1549 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1550 Py_INCREF(Py_None); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1551 _res = Py_None; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1552 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1553 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1554 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1555 static PyObject *App_IsValidAppearanceFileType(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1556 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1557 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1558 Boolean _rv; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1559 OSType fileType; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1560 #ifndef IsValidAppearanceFileType |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1561 PyMac_PRECHECK(IsValidAppearanceFileType); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1562 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1563 if (!PyArg_ParseTuple(_args, "O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1564 PyMac_GetOSType, &fileType)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1565 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1566 _rv = IsValidAppearanceFileType(fileType); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1567 _res = Py_BuildValue("b", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1568 _rv); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1569 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1570 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1571 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1572 static PyObject *App_GetThemeBrushAsColor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1573 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1574 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1575 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1576 ThemeBrush inBrush; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1577 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1578 Boolean inColorDev; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1579 RGBColor outColor; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1580 #ifndef GetThemeBrushAsColor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1581 PyMac_PRECHECK(GetThemeBrushAsColor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1582 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1583 if (!PyArg_ParseTuple(_args, "hhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1584 &inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1585 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1586 &inColorDev)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1587 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1588 _err = GetThemeBrushAsColor(inBrush, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1589 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1590 inColorDev, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1591 &outColor); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1592 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1593 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1594 QdRGB_New, &outColor); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1595 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1596 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1597 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1598 static PyObject *App_GetThemeTextColor(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1599 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1600 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1601 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1602 ThemeTextColor inColor; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1603 SInt16 inDepth; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1604 Boolean inColorDev; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1605 RGBColor outColor; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1606 #ifndef GetThemeTextColor |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1607 PyMac_PRECHECK(GetThemeTextColor); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1608 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1609 if (!PyArg_ParseTuple(_args, "hhb", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1610 &inColor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1611 &inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1612 &inColorDev)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1613 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1614 _err = GetThemeTextColor(inColor, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1615 inDepth, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1616 inColorDev, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1617 &outColor); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1618 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1619 _res = Py_BuildValue("O&", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1620 QdRGB_New, &outColor); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1621 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1622 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1623 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1624 #if TARGET_API_MAC_CARBON |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1625 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1626 static PyObject *App_GetThemeMetric(PyObject *_self, PyObject *_args) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1627 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1628 PyObject *_res = NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1629 OSStatus _err; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1630 ThemeMetric inMetric; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1631 SInt32 outMetric; |
|
22514
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1632 #ifndef GetThemeMetric |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1633 PyMac_PRECHECK(GetThemeMetric); |
|
a40543b3e3bf
Backport of _Appmodule.c 1.10, appsupport.py 1.14:
Jack Jansen <jack.jansen@cwi.nl>
parents:
22068
diff
changeset
|
1634 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1635 if (!PyArg_ParseTuple(_args, "l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1636 &inMetric)) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1637 return NULL; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1638 _err = GetThemeMetric(inMetric, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1639 &outMetric); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1640 if (_err != noErr) return PyMac_Error(_err); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1641 _res = Py_BuildValue("l", |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1642 outMetric); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1643 return _res; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1644 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1645 #endif |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1646 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1647 static PyMethodDef App_methods[] = { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1648 {"RegisterAppearanceClient", (PyCFunction)App_RegisterAppearanceClient, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1649 "() -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1650 {"UnregisterAppearanceClient", (PyCFunction)App_UnregisterAppearanceClient, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1651 "() -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1652 {"SetThemePen", (PyCFunction)App_SetThemePen, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1653 "(ThemeBrush inBrush, SInt16 inDepth, Boolean inIsColorDevice) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1654 {"SetThemeBackground", (PyCFunction)App_SetThemeBackground, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1655 "(ThemeBrush inBrush, SInt16 inDepth, Boolean inIsColorDevice) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1656 {"SetThemeTextColor", (PyCFunction)App_SetThemeTextColor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1657 "(ThemeTextColor inColor, SInt16 inDepth, Boolean inIsColorDevice) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1658 {"SetThemeWindowBackground", (PyCFunction)App_SetThemeWindowBackground, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1659 "(WindowPtr inWindow, ThemeBrush inBrush, Boolean inUpdate) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1660 {"DrawThemeWindowHeader", (PyCFunction)App_DrawThemeWindowHeader, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1661 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1662 {"DrawThemeWindowListViewHeader", (PyCFunction)App_DrawThemeWindowListViewHeader, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1663 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1664 {"DrawThemePlacard", (PyCFunction)App_DrawThemePlacard, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1665 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1666 {"DrawThemeEditTextFrame", (PyCFunction)App_DrawThemeEditTextFrame, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1667 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1668 {"DrawThemeListBoxFrame", (PyCFunction)App_DrawThemeListBoxFrame, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1669 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1670 {"DrawThemeFocusRect", (PyCFunction)App_DrawThemeFocusRect, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1671 "(Rect inRect, Boolean inHasFocus) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1672 {"DrawThemePrimaryGroup", (PyCFunction)App_DrawThemePrimaryGroup, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1673 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1674 {"DrawThemeSecondaryGroup", (PyCFunction)App_DrawThemeSecondaryGroup, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1675 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1676 {"DrawThemeSeparator", (PyCFunction)App_DrawThemeSeparator, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1677 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1678 {"DrawThemeModelessDialogFrame", (PyCFunction)App_DrawThemeModelessDialogFrame, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1679 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1680 {"DrawThemeGenericWell", (PyCFunction)App_DrawThemeGenericWell, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1681 "(Rect inRect, ThemeDrawState inState, Boolean inFillCenter) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1682 {"DrawThemeFocusRegion", (PyCFunction)App_DrawThemeFocusRegion, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1683 "(Boolean inHasFocus) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1684 {"IsThemeInColor", (PyCFunction)App_IsThemeInColor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1685 "(SInt16 inDepth, Boolean inIsColorDevice) -> (Boolean _rv)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1686 {"GetThemeAccentColors", (PyCFunction)App_GetThemeAccentColors, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1687 "() -> (CTabHandle outColors)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1688 {"DrawThemeMenuBarBackground", (PyCFunction)App_DrawThemeMenuBarBackground, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1689 "(Rect inBounds, ThemeMenuBarState inState, UInt32 inAttributes) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1690 {"GetThemeMenuBarHeight", (PyCFunction)App_GetThemeMenuBarHeight, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1691 "() -> (SInt16 outHeight)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1692 {"DrawThemeMenuBackground", (PyCFunction)App_DrawThemeMenuBackground, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1693 "(Rect inMenuRect, ThemeMenuType inMenuType) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1694 {"GetThemeMenuBackgroundRegion", (PyCFunction)App_GetThemeMenuBackgroundRegion, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1695 "(Rect inMenuRect, ThemeMenuType menuType) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1696 {"DrawThemeMenuSeparator", (PyCFunction)App_DrawThemeMenuSeparator, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1697 "(Rect inItemRect) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1698 {"GetThemeMenuSeparatorHeight", (PyCFunction)App_GetThemeMenuSeparatorHeight, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1699 "() -> (SInt16 outHeight)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1700 {"GetThemeMenuItemExtra", (PyCFunction)App_GetThemeMenuItemExtra, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1701 "(ThemeMenuItemType inItemType) -> (SInt16 outHeight, SInt16 outWidth)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1702 {"GetThemeMenuTitleExtra", (PyCFunction)App_GetThemeMenuTitleExtra, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1703 "(Boolean inIsSquished) -> (SInt16 outWidth)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1704 {"DrawThemeTabPane", (PyCFunction)App_DrawThemeTabPane, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1705 "(Rect inRect, ThemeDrawState inState) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1706 {"GetThemeTabRegion", (PyCFunction)App_GetThemeTabRegion, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1707 "(Rect inRect, ThemeTabStyle inStyle, ThemeTabDirection inDirection) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1708 {"SetThemeCursor", (PyCFunction)App_SetThemeCursor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1709 "(ThemeCursor inCursor) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1710 {"SetAnimatedThemeCursor", (PyCFunction)App_SetAnimatedThemeCursor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1711 "(ThemeCursor inCursor, UInt32 inAnimationStep) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1712 {"GetThemeScrollBarThumbStyle", (PyCFunction)App_GetThemeScrollBarThumbStyle, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1713 "() -> (ThemeScrollBarThumbStyle outStyle)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1714 {"GetThemeScrollBarArrowStyle", (PyCFunction)App_GetThemeScrollBarArrowStyle, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1715 "() -> (ThemeScrollBarArrowStyle outStyle)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1716 {"GetThemeCheckBoxStyle", (PyCFunction)App_GetThemeCheckBoxStyle, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1717 "() -> (ThemeCheckBoxStyle outStyle)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1718 {"UseThemeFont", (PyCFunction)App_UseThemeFont, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1719 "(ThemeFontID inFontID, ScriptCode inScript) -> None"}, |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1720 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1721 #if TARGET_API_MAC_CARBON |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1722 {"DrawThemeTextBox", (PyCFunction)App_DrawThemeTextBox, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1723 "(CFStringRef inString, ThemeFontID inFontID, ThemeDrawState inState, Boolean inWrapToWidth, Rect inBoundingBox, SInt16 inJust) -> None"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1724 #endif |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1725 |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1726 #if TARGET_API_MAC_CARBON |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1727 {"TruncateThemeText", (PyCFunction)App_TruncateThemeText, 1, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1728 "(CFMutableStringRef inString, ThemeFontID inFontID, ThemeDrawState inState, SInt16 inPixelWidthLimit, TruncCode inTruncWhere) -> (Boolean outTruncated)"}, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1729 #endif |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1730 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1731 #if TARGET_API_MAC_CARBON |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1732 {"GetThemeTextDimensions", (PyCFunction)App_GetThemeTextDimensions, 1, |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1733 "(CFStringRef inString, ThemeFontID inFontID, ThemeDrawState inState, Boolean inWrapToWidth, Point ioBounds) -> (Point ioBounds, SInt16 outBaseline)"}, |
|
21442
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1734 #endif |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1735 |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1736 #if TARGET_API_MAC_CARBON |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1737 {"GetThemeTextShadowOutset", (PyCFunction)App_GetThemeTextShadowOutset, 1, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1738 "(ThemeFontID inFontID, ThemeDrawState inState) -> (Rect outOutset)"}, |
|
d7d25ec02d41
Adapted for Universal Headers 3.4
Jack Jansen <jack.jansen@cwi.nl>
parents:
21113
diff
changeset
|
1739 #endif |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1740 {"DrawThemeScrollBarArrows", (PyCFunction)App_DrawThemeScrollBarArrows, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1741 "(Rect bounds, ThemeTrackEnableState enableState, ThemeTrackPressState pressState, Boolean isHoriz) -> (Rect trackBounds)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1742 {"GetThemeScrollBarTrackRect", (PyCFunction)App_GetThemeScrollBarTrackRect, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1743 "(Rect bounds, ThemeTrackEnableState enableState, ThemeTrackPressState pressState, Boolean isHoriz) -> (Rect trackBounds)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1744 {"HitTestThemeScrollBarArrows", (PyCFunction)App_HitTestThemeScrollBarArrows, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1745 "(Rect scrollBarBounds, ThemeTrackEnableState enableState, ThemeTrackPressState pressState, Boolean isHoriz, Point ptHit) -> (Boolean _rv, Rect trackBounds, ControlPartCode partcode)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1746 {"DrawThemeScrollBarDelimiters", (PyCFunction)App_DrawThemeScrollBarDelimiters, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1747 "(ThemeWindowType flavor, Rect inContRect, ThemeDrawState state, ThemeWindowAttributes attributes) -> None"}, |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1748 {"DrawThemeButton", (PyCFunction)App_DrawThemeButton, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1749 "(Rect inBounds, UInt16 inKind, ThemeButtonDrawInfo inNewInfo, ThemeButtonDrawInfo inPrevInfo, UInt32 inUserData) -> None"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1750 {"GetThemeButtonRegion", (PyCFunction)App_GetThemeButtonRegion, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1751 "(Rect inBounds, UInt16 inKind, ThemeButtonDrawInfo inNewInfo) -> None"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1752 {"GetThemeButtonContentBounds", (PyCFunction)App_GetThemeButtonContentBounds, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1753 "(Rect inBounds, UInt16 inKind, ThemeButtonDrawInfo inDrawInfo) -> (Rect outBounds)"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1754 {"GetThemeButtonBackgroundBounds", (PyCFunction)App_GetThemeButtonBackgroundBounds, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1755 "(Rect inBounds, UInt16 inKind, ThemeButtonDrawInfo inDrawInfo) -> (Rect outBounds)"}, |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1756 {"PlayThemeSound", (PyCFunction)App_PlayThemeSound, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1757 "(ThemeSoundKind kind) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1758 {"BeginThemeDragSound", (PyCFunction)App_BeginThemeDragSound, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1759 "(ThemeDragSoundKind kind) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1760 {"EndThemeDragSound", (PyCFunction)App_EndThemeDragSound, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1761 "() -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1762 {"DrawThemeTickMark", (PyCFunction)App_DrawThemeTickMark, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1763 "(Rect bounds, ThemeDrawState state) -> None"}, |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1764 {"DrawThemeChasingArrows", (PyCFunction)App_DrawThemeChasingArrows, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1765 "(Rect bounds, UInt32 index, ThemeDrawState state, UInt32 eraseData) -> None"}, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1766 {"DrawThemePopupArrow", (PyCFunction)App_DrawThemePopupArrow, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1767 "(Rect bounds, ThemeArrowOrientation orientation, ThemePopupArrowSize size, ThemeDrawState state, UInt32 eraseData) -> None"}, |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1768 {"DrawThemeStandaloneGrowBox", (PyCFunction)App_DrawThemeStandaloneGrowBox, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1769 "(Point origin, ThemeGrowDirection growDirection, Boolean isSmall, ThemeDrawState state) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1770 {"DrawThemeStandaloneNoGrowBox", (PyCFunction)App_DrawThemeStandaloneNoGrowBox, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1771 "(Point origin, ThemeGrowDirection growDirection, Boolean isSmall, ThemeDrawState state) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1772 {"GetThemeStandaloneGrowBoxBounds", (PyCFunction)App_GetThemeStandaloneGrowBoxBounds, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1773 "(Point origin, ThemeGrowDirection growDirection, Boolean isSmall) -> (Rect bounds)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1774 {"NormalizeThemeDrawingState", (PyCFunction)App_NormalizeThemeDrawingState, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1775 "() -> None"}, |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1776 {"GetThemeDrawingState", (PyCFunction)App_GetThemeDrawingState, 1, |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1777 "() -> (ThemeDrawingState outState)"}, |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1778 {"ApplyThemeBackground", (PyCFunction)App_ApplyThemeBackground, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1779 "(ThemeBackgroundKind inKind, Rect bounds, ThemeDrawState inState, SInt16 inDepth, Boolean inColorDev) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1780 {"SetThemeTextColorForWindow", (PyCFunction)App_SetThemeTextColorForWindow, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1781 "(WindowPtr window, Boolean isActive, SInt16 depth, Boolean isColorDev) -> None"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1782 {"IsValidAppearanceFileType", (PyCFunction)App_IsValidAppearanceFileType, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1783 "(OSType fileType) -> (Boolean _rv)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1784 {"GetThemeBrushAsColor", (PyCFunction)App_GetThemeBrushAsColor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1785 "(ThemeBrush inBrush, SInt16 inDepth, Boolean inColorDev) -> (RGBColor outColor)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1786 {"GetThemeTextColor", (PyCFunction)App_GetThemeTextColor, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1787 "(ThemeTextColor inColor, SInt16 inDepth, Boolean inColorDev) -> (RGBColor outColor)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1788 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1789 #if TARGET_API_MAC_CARBON |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1790 {"GetThemeMetric", (PyCFunction)App_GetThemeMetric, 1, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1791 "(ThemeMetric inMetric) -> (SInt32 outMetric)"}, |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1792 #endif |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1793 {NULL, NULL, 0} |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1794 }; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1795 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1796 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1797 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1798 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1799 void init_App(void) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1800 { |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1801 PyObject *m; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1802 PyObject *d; |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1803 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1804 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1805 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1806 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1807 m = Py_InitModule("_App", App_methods); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1808 d = PyModule_GetDict(m); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1809 App_Error = PyMac_GetOSErrException(); |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1810 if (App_Error == NULL || |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1811 PyDict_SetItemString(d, "Error", App_Error) != 0) |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1812 return; |
|
22068
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1813 ThemeDrawingState_Type.ob_type = &PyType_Type; |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1814 Py_INCREF(&ThemeDrawingState_Type); |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1815 if (PyDict_SetItemString(d, "ThemeDrawingStateType", (PyObject *)&ThemeDrawingState_Type) != 0) |
|
3c3acac86734
Backport of 1.6 thru 1.9 (of _Appmodule.c):
Jack Jansen <jack.jansen@cwi.nl>
parents:
21464
diff
changeset
|
1816 Py_FatalError("can't initialize ThemeDrawingStateType"); |
|
19443
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1817 } |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1818 |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1819 /* ======================== End module _App ========================= */ |
|
0922d609acd1
Renamed the Mac toolbox modules to have an initial _ in their name.
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff
changeset
|
1820 |
