| 1 | n/a | |
|---|
| 2 | n/a | /* ========================= Module _Qdoffs ========================= */ |
|---|
| 3 | n/a | |
|---|
| 4 | n/a | #include "Python.h" |
|---|
| 5 | n/a | |
|---|
| 6 | n/a | |
|---|
| 7 | n/a | #ifndef __LP64__ |
|---|
| 8 | n/a | |
|---|
| 9 | n/a | #include "pymactoolbox.h" |
|---|
| 10 | n/a | |
|---|
| 11 | n/a | /* Macro to test whether a weak-loaded CFM function exists */ |
|---|
| 12 | n/a | #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ |
|---|
| 13 | n/a | PyErr_SetString(PyExc_NotImplementedError, \ |
|---|
| 14 | n/a | "Not available in this shared library/OS version"); \ |
|---|
| 15 | n/a | return NULL; \ |
|---|
| 16 | n/a | }} while(0) |
|---|
| 17 | n/a | |
|---|
| 18 | n/a | |
|---|
| 19 | n/a | #include <Carbon/Carbon.h> |
|---|
| 20 | n/a | |
|---|
| 21 | n/a | #ifdef USE_TOOLBOX_OBJECT_GLUE |
|---|
| 22 | n/a | extern PyObject *_GWorldObj_New(GWorldPtr); |
|---|
| 23 | n/a | extern int _GWorldObj_Convert(PyObject *, GWorldPtr *); |
|---|
| 24 | n/a | |
|---|
| 25 | n/a | #define GWorldObj_New _GWorldObj_New |
|---|
| 26 | n/a | #define GWorldObj_Convert _GWorldObj_Convert |
|---|
| 27 | n/a | #endif |
|---|
| 28 | n/a | |
|---|
| 29 | n/a | #define as_GrafPtr(gworld) ((GrafPtr)(gworld)) |
|---|
| 30 | n/a | |
|---|
| 31 | n/a | |
|---|
| 32 | n/a | static PyObject *Qdoffs_Error; |
|---|
| 33 | n/a | |
|---|
| 34 | n/a | /* ----------------------- Object type GWorld ----------------------- */ |
|---|
| 35 | n/a | |
|---|
| 36 | n/a | PyTypeObject GWorld_Type; |
|---|
| 37 | n/a | |
|---|
| 38 | n/a | #define GWorldObj_Check(x) ((x)->ob_type == &GWorld_Type || PyObject_TypeCheck((x), &GWorld_Type)) |
|---|
| 39 | n/a | |
|---|
| 40 | n/a | typedef struct GWorldObject { |
|---|
| 41 | n/a | PyObject_HEAD |
|---|
| 42 | n/a | GWorldPtr ob_itself; |
|---|
| 43 | n/a | } GWorldObject; |
|---|
| 44 | n/a | |
|---|
| 45 | n/a | PyObject *GWorldObj_New(GWorldPtr itself) |
|---|
| 46 | n/a | { |
|---|
| 47 | n/a | GWorldObject *it; |
|---|
| 48 | n/a | if (itself == NULL) return PyMac_Error(resNotFound); |
|---|
| 49 | n/a | it = PyObject_NEW(GWorldObject, &GWorld_Type); |
|---|
| 50 | n/a | if (it == NULL) return NULL; |
|---|
| 51 | n/a | it->ob_itself = itself; |
|---|
| 52 | n/a | return (PyObject *)it; |
|---|
| 53 | n/a | } |
|---|
| 54 | n/a | |
|---|
| 55 | n/a | int GWorldObj_Convert(PyObject *v, GWorldPtr *p_itself) |
|---|
| 56 | n/a | { |
|---|
| 57 | n/a | if (!GWorldObj_Check(v)) |
|---|
| 58 | n/a | { |
|---|
| 59 | n/a | PyErr_SetString(PyExc_TypeError, "GWorld required"); |
|---|
| 60 | n/a | return 0; |
|---|
| 61 | n/a | } |
|---|
| 62 | n/a | *p_itself = ((GWorldObject *)v)->ob_itself; |
|---|
| 63 | n/a | return 1; |
|---|
| 64 | n/a | } |
|---|
| 65 | n/a | |
|---|
| 66 | n/a | static void GWorldObj_dealloc(GWorldObject *self) |
|---|
| 67 | n/a | { |
|---|
| 68 | n/a | DisposeGWorld(self->ob_itself); |
|---|
| 69 | n/a | self->ob_type->tp_free((PyObject *)self); |
|---|
| 70 | n/a | } |
|---|
| 71 | n/a | |
|---|
| 72 | n/a | static PyObject *GWorldObj_GetGWorldDevice(GWorldObject *_self, PyObject *_args) |
|---|
| 73 | n/a | { |
|---|
| 74 | n/a | PyObject *_res = NULL; |
|---|
| 75 | n/a | GDHandle _rv; |
|---|
| 76 | n/a | #ifndef GetGWorldDevice |
|---|
| 77 | n/a | PyMac_PRECHECK(GetGWorldDevice); |
|---|
| 78 | n/a | #endif |
|---|
| 79 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 80 | n/a | return NULL; |
|---|
| 81 | n/a | _rv = GetGWorldDevice(_self->ob_itself); |
|---|
| 82 | n/a | _res = Py_BuildValue("O&", |
|---|
| 83 | n/a | ResObj_New, _rv); |
|---|
| 84 | n/a | return _res; |
|---|
| 85 | n/a | } |
|---|
| 86 | n/a | |
|---|
| 87 | n/a | static PyObject *GWorldObj_GetGWorldPixMap(GWorldObject *_self, PyObject *_args) |
|---|
| 88 | n/a | { |
|---|
| 89 | n/a | PyObject *_res = NULL; |
|---|
| 90 | n/a | PixMapHandle _rv; |
|---|
| 91 | n/a | #ifndef GetGWorldPixMap |
|---|
| 92 | n/a | PyMac_PRECHECK(GetGWorldPixMap); |
|---|
| 93 | n/a | #endif |
|---|
| 94 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 95 | n/a | return NULL; |
|---|
| 96 | n/a | _rv = GetGWorldPixMap(_self->ob_itself); |
|---|
| 97 | n/a | _res = Py_BuildValue("O&", |
|---|
| 98 | n/a | ResObj_New, _rv); |
|---|
| 99 | n/a | return _res; |
|---|
| 100 | n/a | } |
|---|
| 101 | n/a | |
|---|
| 102 | n/a | static PyObject *GWorldObj_as_GrafPtr(GWorldObject *_self, PyObject *_args) |
|---|
| 103 | n/a | { |
|---|
| 104 | n/a | PyObject *_res = NULL; |
|---|
| 105 | n/a | GrafPtr _rv; |
|---|
| 106 | n/a | #ifndef as_GrafPtr |
|---|
| 107 | n/a | PyMac_PRECHECK(as_GrafPtr); |
|---|
| 108 | n/a | #endif |
|---|
| 109 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 110 | n/a | return NULL; |
|---|
| 111 | n/a | _rv = as_GrafPtr(_self->ob_itself); |
|---|
| 112 | n/a | _res = Py_BuildValue("O&", |
|---|
| 113 | n/a | GrafObj_New, _rv); |
|---|
| 114 | n/a | return _res; |
|---|
| 115 | n/a | } |
|---|
| 116 | n/a | |
|---|
| 117 | n/a | static PyMethodDef GWorldObj_methods[] = { |
|---|
| 118 | n/a | {"GetGWorldDevice", (PyCFunction)GWorldObj_GetGWorldDevice, 1, |
|---|
| 119 | n/a | PyDoc_STR("() -> (GDHandle _rv)")}, |
|---|
| 120 | n/a | {"GetGWorldPixMap", (PyCFunction)GWorldObj_GetGWorldPixMap, 1, |
|---|
| 121 | n/a | PyDoc_STR("() -> (PixMapHandle _rv)")}, |
|---|
| 122 | n/a | {"as_GrafPtr", (PyCFunction)GWorldObj_as_GrafPtr, 1, |
|---|
| 123 | n/a | PyDoc_STR("() -> (GrafPtr _rv)")}, |
|---|
| 124 | n/a | {NULL, NULL, 0} |
|---|
| 125 | n/a | }; |
|---|
| 126 | n/a | |
|---|
| 127 | n/a | #define GWorldObj_getsetlist NULL |
|---|
| 128 | n/a | |
|---|
| 129 | n/a | |
|---|
| 130 | n/a | #define GWorldObj_compare NULL |
|---|
| 131 | n/a | |
|---|
| 132 | n/a | #define GWorldObj_repr NULL |
|---|
| 133 | n/a | |
|---|
| 134 | n/a | #define GWorldObj_hash NULL |
|---|
| 135 | n/a | #define GWorldObj_tp_init 0 |
|---|
| 136 | n/a | |
|---|
| 137 | n/a | #define GWorldObj_tp_alloc PyType_GenericAlloc |
|---|
| 138 | n/a | |
|---|
| 139 | n/a | static PyObject *GWorldObj_tp_new(PyTypeObject *type, PyObject *_args, PyObject *_kwds) |
|---|
| 140 | n/a | { |
|---|
| 141 | n/a | PyObject *_self; |
|---|
| 142 | n/a | GWorldPtr itself; |
|---|
| 143 | n/a | char *kw[] = {"itself", 0}; |
|---|
| 144 | n/a | |
|---|
| 145 | n/a | if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "O&", kw, GWorldObj_Convert, &itself)) return NULL; |
|---|
| 146 | n/a | if ((_self = type->tp_alloc(type, 0)) == NULL) return NULL; |
|---|
| 147 | n/a | ((GWorldObject *)_self)->ob_itself = itself; |
|---|
| 148 | n/a | return _self; |
|---|
| 149 | n/a | } |
|---|
| 150 | n/a | |
|---|
| 151 | n/a | #define GWorldObj_tp_free PyObject_Del |
|---|
| 152 | n/a | |
|---|
| 153 | n/a | |
|---|
| 154 | n/a | PyTypeObject GWorld_Type = { |
|---|
| 155 | n/a | PyObject_HEAD_INIT(NULL) |
|---|
| 156 | n/a | 0, /*ob_size*/ |
|---|
| 157 | n/a | "_Qdoffs.GWorld", /*tp_name*/ |
|---|
| 158 | n/a | sizeof(GWorldObject), /*tp_basicsize*/ |
|---|
| 159 | n/a | 0, /*tp_itemsize*/ |
|---|
| 160 | n/a | /* methods */ |
|---|
| 161 | n/a | (destructor) GWorldObj_dealloc, /*tp_dealloc*/ |
|---|
| 162 | n/a | 0, /*tp_print*/ |
|---|
| 163 | n/a | (getattrfunc)0, /*tp_getattr*/ |
|---|
| 164 | n/a | (setattrfunc)0, /*tp_setattr*/ |
|---|
| 165 | n/a | (cmpfunc) GWorldObj_compare, /*tp_compare*/ |
|---|
| 166 | n/a | (reprfunc) GWorldObj_repr, /*tp_repr*/ |
|---|
| 167 | n/a | (PyNumberMethods *)0, /* tp_as_number */ |
|---|
| 168 | n/a | (PySequenceMethods *)0, /* tp_as_sequence */ |
|---|
| 169 | n/a | (PyMappingMethods *)0, /* tp_as_mapping */ |
|---|
| 170 | n/a | (hashfunc) GWorldObj_hash, /*tp_hash*/ |
|---|
| 171 | n/a | 0, /*tp_call*/ |
|---|
| 172 | n/a | 0, /*tp_str*/ |
|---|
| 173 | n/a | PyObject_GenericGetAttr, /*tp_getattro*/ |
|---|
| 174 | n/a | PyObject_GenericSetAttr, /*tp_setattro */ |
|---|
| 175 | n/a | 0, /*tp_as_buffer*/ |
|---|
| 176 | n/a | Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE, /* tp_flags */ |
|---|
| 177 | n/a | 0, /*tp_doc*/ |
|---|
| 178 | n/a | 0, /*tp_traverse*/ |
|---|
| 179 | n/a | 0, /*tp_clear*/ |
|---|
| 180 | n/a | 0, /*tp_richcompare*/ |
|---|
| 181 | n/a | 0, /*tp_weaklistoffset*/ |
|---|
| 182 | n/a | 0, /*tp_iter*/ |
|---|
| 183 | n/a | 0, /*tp_iternext*/ |
|---|
| 184 | n/a | GWorldObj_methods, /* tp_methods */ |
|---|
| 185 | n/a | 0, /*tp_members*/ |
|---|
| 186 | n/a | GWorldObj_getsetlist, /*tp_getset*/ |
|---|
| 187 | n/a | 0, /*tp_base*/ |
|---|
| 188 | n/a | 0, /*tp_dict*/ |
|---|
| 189 | n/a | 0, /*tp_descr_get*/ |
|---|
| 190 | n/a | 0, /*tp_descr_set*/ |
|---|
| 191 | n/a | 0, /*tp_dictoffset*/ |
|---|
| 192 | n/a | GWorldObj_tp_init, /* tp_init */ |
|---|
| 193 | n/a | GWorldObj_tp_alloc, /* tp_alloc */ |
|---|
| 194 | n/a | GWorldObj_tp_new, /* tp_new */ |
|---|
| 195 | n/a | GWorldObj_tp_free, /* tp_free */ |
|---|
| 196 | n/a | }; |
|---|
| 197 | n/a | |
|---|
| 198 | n/a | /* --------------------- End object type GWorld --------------------- */ |
|---|
| 199 | n/a | |
|---|
| 200 | n/a | |
|---|
| 201 | n/a | static PyObject *Qdoffs_NewGWorld(PyObject *_self, PyObject *_args) |
|---|
| 202 | n/a | { |
|---|
| 203 | n/a | PyObject *_res = NULL; |
|---|
| 204 | n/a | QDErr _err; |
|---|
| 205 | n/a | GWorldPtr offscreenGWorld; |
|---|
| 206 | n/a | short PixelDepth; |
|---|
| 207 | n/a | Rect boundsRect; |
|---|
| 208 | n/a | CTabHandle cTable; |
|---|
| 209 | n/a | GDHandle aGDevice; |
|---|
| 210 | n/a | GWorldFlags flags; |
|---|
| 211 | n/a | #ifndef NewGWorld |
|---|
| 212 | n/a | PyMac_PRECHECK(NewGWorld); |
|---|
| 213 | n/a | #endif |
|---|
| 214 | n/a | if (!PyArg_ParseTuple(_args, "hO&O&O&l", |
|---|
| 215 | n/a | &PixelDepth, |
|---|
| 216 | n/a | PyMac_GetRect, &boundsRect, |
|---|
| 217 | n/a | OptResObj_Convert, &cTable, |
|---|
| 218 | n/a | OptResObj_Convert, &aGDevice, |
|---|
| 219 | n/a | &flags)) |
|---|
| 220 | n/a | return NULL; |
|---|
| 221 | n/a | _err = NewGWorld(&offscreenGWorld, |
|---|
| 222 | n/a | PixelDepth, |
|---|
| 223 | n/a | &boundsRect, |
|---|
| 224 | n/a | cTable, |
|---|
| 225 | n/a | aGDevice, |
|---|
| 226 | n/a | flags); |
|---|
| 227 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 228 | n/a | _res = Py_BuildValue("O&", |
|---|
| 229 | n/a | GWorldObj_New, offscreenGWorld); |
|---|
| 230 | n/a | return _res; |
|---|
| 231 | n/a | } |
|---|
| 232 | n/a | |
|---|
| 233 | n/a | static PyObject *Qdoffs_LockPixels(PyObject *_self, PyObject *_args) |
|---|
| 234 | n/a | { |
|---|
| 235 | n/a | PyObject *_res = NULL; |
|---|
| 236 | n/a | Boolean _rv; |
|---|
| 237 | n/a | PixMapHandle pm; |
|---|
| 238 | n/a | #ifndef LockPixels |
|---|
| 239 | n/a | PyMac_PRECHECK(LockPixels); |
|---|
| 240 | n/a | #endif |
|---|
| 241 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 242 | n/a | ResObj_Convert, &pm)) |
|---|
| 243 | n/a | return NULL; |
|---|
| 244 | n/a | _rv = LockPixels(pm); |
|---|
| 245 | n/a | _res = Py_BuildValue("b", |
|---|
| 246 | n/a | _rv); |
|---|
| 247 | n/a | return _res; |
|---|
| 248 | n/a | } |
|---|
| 249 | n/a | |
|---|
| 250 | n/a | static PyObject *Qdoffs_UnlockPixels(PyObject *_self, PyObject *_args) |
|---|
| 251 | n/a | { |
|---|
| 252 | n/a | PyObject *_res = NULL; |
|---|
| 253 | n/a | PixMapHandle pm; |
|---|
| 254 | n/a | #ifndef UnlockPixels |
|---|
| 255 | n/a | PyMac_PRECHECK(UnlockPixels); |
|---|
| 256 | n/a | #endif |
|---|
| 257 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 258 | n/a | ResObj_Convert, &pm)) |
|---|
| 259 | n/a | return NULL; |
|---|
| 260 | n/a | UnlockPixels(pm); |
|---|
| 261 | n/a | Py_INCREF(Py_None); |
|---|
| 262 | n/a | _res = Py_None; |
|---|
| 263 | n/a | return _res; |
|---|
| 264 | n/a | } |
|---|
| 265 | n/a | |
|---|
| 266 | n/a | static PyObject *Qdoffs_UpdateGWorld(PyObject *_self, PyObject *_args) |
|---|
| 267 | n/a | { |
|---|
| 268 | n/a | PyObject *_res = NULL; |
|---|
| 269 | n/a | GWorldFlags _rv; |
|---|
| 270 | n/a | GWorldPtr offscreenGWorld; |
|---|
| 271 | n/a | short pixelDepth; |
|---|
| 272 | n/a | Rect boundsRect; |
|---|
| 273 | n/a | CTabHandle cTable; |
|---|
| 274 | n/a | GDHandle aGDevice; |
|---|
| 275 | n/a | GWorldFlags flags; |
|---|
| 276 | n/a | #ifndef UpdateGWorld |
|---|
| 277 | n/a | PyMac_PRECHECK(UpdateGWorld); |
|---|
| 278 | n/a | #endif |
|---|
| 279 | n/a | if (!PyArg_ParseTuple(_args, "hO&O&O&l", |
|---|
| 280 | n/a | &pixelDepth, |
|---|
| 281 | n/a | PyMac_GetRect, &boundsRect, |
|---|
| 282 | n/a | OptResObj_Convert, &cTable, |
|---|
| 283 | n/a | OptResObj_Convert, &aGDevice, |
|---|
| 284 | n/a | &flags)) |
|---|
| 285 | n/a | return NULL; |
|---|
| 286 | n/a | _rv = UpdateGWorld(&offscreenGWorld, |
|---|
| 287 | n/a | pixelDepth, |
|---|
| 288 | n/a | &boundsRect, |
|---|
| 289 | n/a | cTable, |
|---|
| 290 | n/a | aGDevice, |
|---|
| 291 | n/a | flags); |
|---|
| 292 | n/a | _res = Py_BuildValue("lO&", |
|---|
| 293 | n/a | _rv, |
|---|
| 294 | n/a | GWorldObj_New, offscreenGWorld); |
|---|
| 295 | n/a | return _res; |
|---|
| 296 | n/a | } |
|---|
| 297 | n/a | |
|---|
| 298 | n/a | static PyObject *Qdoffs_GetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 299 | n/a | { |
|---|
| 300 | n/a | PyObject *_res = NULL; |
|---|
| 301 | n/a | CGrafPtr port; |
|---|
| 302 | n/a | GDHandle gdh; |
|---|
| 303 | n/a | #ifndef GetGWorld |
|---|
| 304 | n/a | PyMac_PRECHECK(GetGWorld); |
|---|
| 305 | n/a | #endif |
|---|
| 306 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 307 | n/a | return NULL; |
|---|
| 308 | n/a | GetGWorld(&port, |
|---|
| 309 | n/a | &gdh); |
|---|
| 310 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 311 | n/a | GrafObj_New, port, |
|---|
| 312 | n/a | ResObj_New, gdh); |
|---|
| 313 | n/a | return _res; |
|---|
| 314 | n/a | } |
|---|
| 315 | n/a | |
|---|
| 316 | n/a | static PyObject *Qdoffs_SetGWorld(PyObject *_self, PyObject *_args) |
|---|
| 317 | n/a | { |
|---|
| 318 | n/a | PyObject *_res = NULL; |
|---|
| 319 | n/a | CGrafPtr port; |
|---|
| 320 | n/a | GDHandle gdh; |
|---|
| 321 | n/a | #ifndef SetGWorld |
|---|
| 322 | n/a | PyMac_PRECHECK(SetGWorld); |
|---|
| 323 | n/a | #endif |
|---|
| 324 | n/a | if (!PyArg_ParseTuple(_args, "O&O&", |
|---|
| 325 | n/a | GrafObj_Convert, &port, |
|---|
| 326 | n/a | OptResObj_Convert, &gdh)) |
|---|
| 327 | n/a | return NULL; |
|---|
| 328 | n/a | SetGWorld(port, |
|---|
| 329 | n/a | gdh); |
|---|
| 330 | n/a | Py_INCREF(Py_None); |
|---|
| 331 | n/a | _res = Py_None; |
|---|
| 332 | n/a | return _res; |
|---|
| 333 | n/a | } |
|---|
| 334 | n/a | |
|---|
| 335 | n/a | static PyObject *Qdoffs_CTabChanged(PyObject *_self, PyObject *_args) |
|---|
| 336 | n/a | { |
|---|
| 337 | n/a | PyObject *_res = NULL; |
|---|
| 338 | n/a | CTabHandle ctab; |
|---|
| 339 | n/a | #ifndef CTabChanged |
|---|
| 340 | n/a | PyMac_PRECHECK(CTabChanged); |
|---|
| 341 | n/a | #endif |
|---|
| 342 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 343 | n/a | OptResObj_Convert, &ctab)) |
|---|
| 344 | n/a | return NULL; |
|---|
| 345 | n/a | CTabChanged(ctab); |
|---|
| 346 | n/a | Py_INCREF(Py_None); |
|---|
| 347 | n/a | _res = Py_None; |
|---|
| 348 | n/a | return _res; |
|---|
| 349 | n/a | } |
|---|
| 350 | n/a | |
|---|
| 351 | n/a | static PyObject *Qdoffs_PixPatChanged(PyObject *_self, PyObject *_args) |
|---|
| 352 | n/a | { |
|---|
| 353 | n/a | PyObject *_res = NULL; |
|---|
| 354 | n/a | PixPatHandle ppat; |
|---|
| 355 | n/a | #ifndef PixPatChanged |
|---|
| 356 | n/a | PyMac_PRECHECK(PixPatChanged); |
|---|
| 357 | n/a | #endif |
|---|
| 358 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 359 | n/a | ResObj_Convert, &ppat)) |
|---|
| 360 | n/a | return NULL; |
|---|
| 361 | n/a | PixPatChanged(ppat); |
|---|
| 362 | n/a | Py_INCREF(Py_None); |
|---|
| 363 | n/a | _res = Py_None; |
|---|
| 364 | n/a | return _res; |
|---|
| 365 | n/a | } |
|---|
| 366 | n/a | |
|---|
| 367 | n/a | static PyObject *Qdoffs_PortChanged(PyObject *_self, PyObject *_args) |
|---|
| 368 | n/a | { |
|---|
| 369 | n/a | PyObject *_res = NULL; |
|---|
| 370 | n/a | GrafPtr port; |
|---|
| 371 | n/a | #ifndef PortChanged |
|---|
| 372 | n/a | PyMac_PRECHECK(PortChanged); |
|---|
| 373 | n/a | #endif |
|---|
| 374 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 375 | n/a | GrafObj_Convert, &port)) |
|---|
| 376 | n/a | return NULL; |
|---|
| 377 | n/a | PortChanged(port); |
|---|
| 378 | n/a | Py_INCREF(Py_None); |
|---|
| 379 | n/a | _res = Py_None; |
|---|
| 380 | n/a | return _res; |
|---|
| 381 | n/a | } |
|---|
| 382 | n/a | |
|---|
| 383 | n/a | static PyObject *Qdoffs_GDeviceChanged(PyObject *_self, PyObject *_args) |
|---|
| 384 | n/a | { |
|---|
| 385 | n/a | PyObject *_res = NULL; |
|---|
| 386 | n/a | GDHandle gdh; |
|---|
| 387 | n/a | #ifndef GDeviceChanged |
|---|
| 388 | n/a | PyMac_PRECHECK(GDeviceChanged); |
|---|
| 389 | n/a | #endif |
|---|
| 390 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 391 | n/a | OptResObj_Convert, &gdh)) |
|---|
| 392 | n/a | return NULL; |
|---|
| 393 | n/a | GDeviceChanged(gdh); |
|---|
| 394 | n/a | Py_INCREF(Py_None); |
|---|
| 395 | n/a | _res = Py_None; |
|---|
| 396 | n/a | return _res; |
|---|
| 397 | n/a | } |
|---|
| 398 | n/a | |
|---|
| 399 | n/a | static PyObject *Qdoffs_AllowPurgePixels(PyObject *_self, PyObject *_args) |
|---|
| 400 | n/a | { |
|---|
| 401 | n/a | PyObject *_res = NULL; |
|---|
| 402 | n/a | PixMapHandle pm; |
|---|
| 403 | n/a | #ifndef AllowPurgePixels |
|---|
| 404 | n/a | PyMac_PRECHECK(AllowPurgePixels); |
|---|
| 405 | n/a | #endif |
|---|
| 406 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 407 | n/a | ResObj_Convert, &pm)) |
|---|
| 408 | n/a | return NULL; |
|---|
| 409 | n/a | AllowPurgePixels(pm); |
|---|
| 410 | n/a | Py_INCREF(Py_None); |
|---|
| 411 | n/a | _res = Py_None; |
|---|
| 412 | n/a | return _res; |
|---|
| 413 | n/a | } |
|---|
| 414 | n/a | |
|---|
| 415 | n/a | static PyObject *Qdoffs_NoPurgePixels(PyObject *_self, PyObject *_args) |
|---|
| 416 | n/a | { |
|---|
| 417 | n/a | PyObject *_res = NULL; |
|---|
| 418 | n/a | PixMapHandle pm; |
|---|
| 419 | n/a | #ifndef NoPurgePixels |
|---|
| 420 | n/a | PyMac_PRECHECK(NoPurgePixels); |
|---|
| 421 | n/a | #endif |
|---|
| 422 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 423 | n/a | ResObj_Convert, &pm)) |
|---|
| 424 | n/a | return NULL; |
|---|
| 425 | n/a | NoPurgePixels(pm); |
|---|
| 426 | n/a | Py_INCREF(Py_None); |
|---|
| 427 | n/a | _res = Py_None; |
|---|
| 428 | n/a | return _res; |
|---|
| 429 | n/a | } |
|---|
| 430 | n/a | |
|---|
| 431 | n/a | static PyObject *Qdoffs_GetPixelsState(PyObject *_self, PyObject *_args) |
|---|
| 432 | n/a | { |
|---|
| 433 | n/a | PyObject *_res = NULL; |
|---|
| 434 | n/a | GWorldFlags _rv; |
|---|
| 435 | n/a | PixMapHandle pm; |
|---|
| 436 | n/a | #ifndef GetPixelsState |
|---|
| 437 | n/a | PyMac_PRECHECK(GetPixelsState); |
|---|
| 438 | n/a | #endif |
|---|
| 439 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 440 | n/a | ResObj_Convert, &pm)) |
|---|
| 441 | n/a | return NULL; |
|---|
| 442 | n/a | _rv = GetPixelsState(pm); |
|---|
| 443 | n/a | _res = Py_BuildValue("l", |
|---|
| 444 | n/a | _rv); |
|---|
| 445 | n/a | return _res; |
|---|
| 446 | n/a | } |
|---|
| 447 | n/a | |
|---|
| 448 | n/a | static PyObject *Qdoffs_SetPixelsState(PyObject *_self, PyObject *_args) |
|---|
| 449 | n/a | { |
|---|
| 450 | n/a | PyObject *_res = NULL; |
|---|
| 451 | n/a | PixMapHandle pm; |
|---|
| 452 | n/a | GWorldFlags state; |
|---|
| 453 | n/a | #ifndef SetPixelsState |
|---|
| 454 | n/a | PyMac_PRECHECK(SetPixelsState); |
|---|
| 455 | n/a | #endif |
|---|
| 456 | n/a | if (!PyArg_ParseTuple(_args, "O&l", |
|---|
| 457 | n/a | ResObj_Convert, &pm, |
|---|
| 458 | n/a | &state)) |
|---|
| 459 | n/a | return NULL; |
|---|
| 460 | n/a | SetPixelsState(pm, |
|---|
| 461 | n/a | state); |
|---|
| 462 | n/a | Py_INCREF(Py_None); |
|---|
| 463 | n/a | _res = Py_None; |
|---|
| 464 | n/a | return _res; |
|---|
| 465 | n/a | } |
|---|
| 466 | n/a | |
|---|
| 467 | n/a | static PyObject *Qdoffs_GetPixRowBytes(PyObject *_self, PyObject *_args) |
|---|
| 468 | n/a | { |
|---|
| 469 | n/a | PyObject *_res = NULL; |
|---|
| 470 | n/a | long _rv; |
|---|
| 471 | n/a | PixMapHandle pm; |
|---|
| 472 | n/a | #ifndef GetPixRowBytes |
|---|
| 473 | n/a | PyMac_PRECHECK(GetPixRowBytes); |
|---|
| 474 | n/a | #endif |
|---|
| 475 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 476 | n/a | ResObj_Convert, &pm)) |
|---|
| 477 | n/a | return NULL; |
|---|
| 478 | n/a | _rv = GetPixRowBytes(pm); |
|---|
| 479 | n/a | _res = Py_BuildValue("l", |
|---|
| 480 | n/a | _rv); |
|---|
| 481 | n/a | return _res; |
|---|
| 482 | n/a | } |
|---|
| 483 | n/a | |
|---|
| 484 | n/a | static PyObject *Qdoffs_NewScreenBuffer(PyObject *_self, PyObject *_args) |
|---|
| 485 | n/a | { |
|---|
| 486 | n/a | PyObject *_res = NULL; |
|---|
| 487 | n/a | QDErr _err; |
|---|
| 488 | n/a | Rect globalRect; |
|---|
| 489 | n/a | Boolean purgeable; |
|---|
| 490 | n/a | GDHandle gdh; |
|---|
| 491 | n/a | PixMapHandle offscreenPixMap; |
|---|
| 492 | n/a | #ifndef NewScreenBuffer |
|---|
| 493 | n/a | PyMac_PRECHECK(NewScreenBuffer); |
|---|
| 494 | n/a | #endif |
|---|
| 495 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 496 | n/a | PyMac_GetRect, &globalRect, |
|---|
| 497 | n/a | &purgeable)) |
|---|
| 498 | n/a | return NULL; |
|---|
| 499 | n/a | _err = NewScreenBuffer(&globalRect, |
|---|
| 500 | n/a | purgeable, |
|---|
| 501 | n/a | &gdh, |
|---|
| 502 | n/a | &offscreenPixMap); |
|---|
| 503 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 504 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 505 | n/a | ResObj_New, gdh, |
|---|
| 506 | n/a | ResObj_New, offscreenPixMap); |
|---|
| 507 | n/a | return _res; |
|---|
| 508 | n/a | } |
|---|
| 509 | n/a | |
|---|
| 510 | n/a | static PyObject *Qdoffs_DisposeScreenBuffer(PyObject *_self, PyObject *_args) |
|---|
| 511 | n/a | { |
|---|
| 512 | n/a | PyObject *_res = NULL; |
|---|
| 513 | n/a | PixMapHandle offscreenPixMap; |
|---|
| 514 | n/a | #ifndef DisposeScreenBuffer |
|---|
| 515 | n/a | PyMac_PRECHECK(DisposeScreenBuffer); |
|---|
| 516 | n/a | #endif |
|---|
| 517 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 518 | n/a | ResObj_Convert, &offscreenPixMap)) |
|---|
| 519 | n/a | return NULL; |
|---|
| 520 | n/a | DisposeScreenBuffer(offscreenPixMap); |
|---|
| 521 | n/a | Py_INCREF(Py_None); |
|---|
| 522 | n/a | _res = Py_None; |
|---|
| 523 | n/a | return _res; |
|---|
| 524 | n/a | } |
|---|
| 525 | n/a | |
|---|
| 526 | n/a | static PyObject *Qdoffs_QDDone(PyObject *_self, PyObject *_args) |
|---|
| 527 | n/a | { |
|---|
| 528 | n/a | PyObject *_res = NULL; |
|---|
| 529 | n/a | Boolean _rv; |
|---|
| 530 | n/a | GrafPtr port; |
|---|
| 531 | n/a | #ifndef QDDone |
|---|
| 532 | n/a | PyMac_PRECHECK(QDDone); |
|---|
| 533 | n/a | #endif |
|---|
| 534 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 535 | n/a | GrafObj_Convert, &port)) |
|---|
| 536 | n/a | return NULL; |
|---|
| 537 | n/a | _rv = QDDone(port); |
|---|
| 538 | n/a | _res = Py_BuildValue("b", |
|---|
| 539 | n/a | _rv); |
|---|
| 540 | n/a | return _res; |
|---|
| 541 | n/a | } |
|---|
| 542 | n/a | |
|---|
| 543 | n/a | static PyObject *Qdoffs_OffscreenVersion(PyObject *_self, PyObject *_args) |
|---|
| 544 | n/a | { |
|---|
| 545 | n/a | PyObject *_res = NULL; |
|---|
| 546 | n/a | long _rv; |
|---|
| 547 | n/a | #ifndef OffscreenVersion |
|---|
| 548 | n/a | PyMac_PRECHECK(OffscreenVersion); |
|---|
| 549 | n/a | #endif |
|---|
| 550 | n/a | if (!PyArg_ParseTuple(_args, "")) |
|---|
| 551 | n/a | return NULL; |
|---|
| 552 | n/a | _rv = OffscreenVersion(); |
|---|
| 553 | n/a | _res = Py_BuildValue("l", |
|---|
| 554 | n/a | _rv); |
|---|
| 555 | n/a | return _res; |
|---|
| 556 | n/a | } |
|---|
| 557 | n/a | |
|---|
| 558 | n/a | static PyObject *Qdoffs_NewTempScreenBuffer(PyObject *_self, PyObject *_args) |
|---|
| 559 | n/a | { |
|---|
| 560 | n/a | PyObject *_res = NULL; |
|---|
| 561 | n/a | QDErr _err; |
|---|
| 562 | n/a | Rect globalRect; |
|---|
| 563 | n/a | Boolean purgeable; |
|---|
| 564 | n/a | GDHandle gdh; |
|---|
| 565 | n/a | PixMapHandle offscreenPixMap; |
|---|
| 566 | n/a | #ifndef NewTempScreenBuffer |
|---|
| 567 | n/a | PyMac_PRECHECK(NewTempScreenBuffer); |
|---|
| 568 | n/a | #endif |
|---|
| 569 | n/a | if (!PyArg_ParseTuple(_args, "O&b", |
|---|
| 570 | n/a | PyMac_GetRect, &globalRect, |
|---|
| 571 | n/a | &purgeable)) |
|---|
| 572 | n/a | return NULL; |
|---|
| 573 | n/a | _err = NewTempScreenBuffer(&globalRect, |
|---|
| 574 | n/a | purgeable, |
|---|
| 575 | n/a | &gdh, |
|---|
| 576 | n/a | &offscreenPixMap); |
|---|
| 577 | n/a | if (_err != noErr) return PyMac_Error(_err); |
|---|
| 578 | n/a | _res = Py_BuildValue("O&O&", |
|---|
| 579 | n/a | ResObj_New, gdh, |
|---|
| 580 | n/a | ResObj_New, offscreenPixMap); |
|---|
| 581 | n/a | return _res; |
|---|
| 582 | n/a | } |
|---|
| 583 | n/a | |
|---|
| 584 | n/a | static PyObject *Qdoffs_PixMap32Bit(PyObject *_self, PyObject *_args) |
|---|
| 585 | n/a | { |
|---|
| 586 | n/a | PyObject *_res = NULL; |
|---|
| 587 | n/a | Boolean _rv; |
|---|
| 588 | n/a | PixMapHandle pmHandle; |
|---|
| 589 | n/a | #ifndef PixMap32Bit |
|---|
| 590 | n/a | PyMac_PRECHECK(PixMap32Bit); |
|---|
| 591 | n/a | #endif |
|---|
| 592 | n/a | if (!PyArg_ParseTuple(_args, "O&", |
|---|
| 593 | n/a | ResObj_Convert, &pmHandle)) |
|---|
| 594 | n/a | return NULL; |
|---|
| 595 | n/a | _rv = PixMap32Bit(pmHandle); |
|---|
| 596 | n/a | _res = Py_BuildValue("b", |
|---|
| 597 | n/a | _rv); |
|---|
| 598 | n/a | return _res; |
|---|
| 599 | n/a | } |
|---|
| 600 | n/a | |
|---|
| 601 | n/a | static PyObject *Qdoffs_GetPixMapBytes(PyObject *_self, PyObject *_args) |
|---|
| 602 | n/a | { |
|---|
| 603 | n/a | PyObject *_res = NULL; |
|---|
| 604 | n/a | |
|---|
| 605 | n/a | PixMapHandle pm; |
|---|
| 606 | n/a | int from, length; |
|---|
| 607 | n/a | char *cp; |
|---|
| 608 | n/a | |
|---|
| 609 | n/a | if ( !PyArg_ParseTuple(_args, "O&ii", ResObj_Convert, &pm, &from, &length) ) |
|---|
| 610 | n/a | return NULL; |
|---|
| 611 | n/a | cp = GetPixBaseAddr(pm)+from; |
|---|
| 612 | n/a | _res = PyString_FromStringAndSize(cp, length); |
|---|
| 613 | n/a | return _res; |
|---|
| 614 | n/a | |
|---|
| 615 | n/a | } |
|---|
| 616 | n/a | |
|---|
| 617 | n/a | static PyObject *Qdoffs_PutPixMapBytes(PyObject *_self, PyObject *_args) |
|---|
| 618 | n/a | { |
|---|
| 619 | n/a | PyObject *_res = NULL; |
|---|
| 620 | n/a | |
|---|
| 621 | n/a | PixMapHandle pm; |
|---|
| 622 | n/a | int from, length; |
|---|
| 623 | n/a | char *cp, *icp; |
|---|
| 624 | n/a | |
|---|
| 625 | n/a | if ( !PyArg_ParseTuple(_args, "O&is#", ResObj_Convert, &pm, &from, &icp, &length) ) |
|---|
| 626 | n/a | return NULL; |
|---|
| 627 | n/a | cp = GetPixBaseAddr(pm)+from; |
|---|
| 628 | n/a | memcpy(cp, icp, length); |
|---|
| 629 | n/a | Py_INCREF(Py_None); |
|---|
| 630 | n/a | _res = Py_None; |
|---|
| 631 | n/a | return _res; |
|---|
| 632 | n/a | |
|---|
| 633 | n/a | } |
|---|
| 634 | n/a | #endif /* __LP64__ */ |
|---|
| 635 | n/a | |
|---|
| 636 | n/a | static PyMethodDef Qdoffs_methods[] = { |
|---|
| 637 | n/a | #ifndef __LP64__ |
|---|
| 638 | n/a | {"NewGWorld", (PyCFunction)Qdoffs_NewGWorld, 1, |
|---|
| 639 | n/a | PyDoc_STR("(short PixelDepth, Rect boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags) -> (GWorldPtr offscreenGWorld)")}, |
|---|
| 640 | n/a | {"LockPixels", (PyCFunction)Qdoffs_LockPixels, 1, |
|---|
| 641 | n/a | PyDoc_STR("(PixMapHandle pm) -> (Boolean _rv)")}, |
|---|
| 642 | n/a | {"UnlockPixels", (PyCFunction)Qdoffs_UnlockPixels, 1, |
|---|
| 643 | n/a | PyDoc_STR("(PixMapHandle pm) -> None")}, |
|---|
| 644 | n/a | {"UpdateGWorld", (PyCFunction)Qdoffs_UpdateGWorld, 1, |
|---|
| 645 | n/a | PyDoc_STR("(short pixelDepth, Rect boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags) -> (GWorldFlags _rv, GWorldPtr offscreenGWorld)")}, |
|---|
| 646 | n/a | {"GetGWorld", (PyCFunction)Qdoffs_GetGWorld, 1, |
|---|
| 647 | n/a | PyDoc_STR("() -> (CGrafPtr port, GDHandle gdh)")}, |
|---|
| 648 | n/a | {"SetGWorld", (PyCFunction)Qdoffs_SetGWorld, 1, |
|---|
| 649 | n/a | PyDoc_STR("(CGrafPtr port, GDHandle gdh) -> None")}, |
|---|
| 650 | n/a | {"CTabChanged", (PyCFunction)Qdoffs_CTabChanged, 1, |
|---|
| 651 | n/a | PyDoc_STR("(CTabHandle ctab) -> None")}, |
|---|
| 652 | n/a | {"PixPatChanged", (PyCFunction)Qdoffs_PixPatChanged, 1, |
|---|
| 653 | n/a | PyDoc_STR("(PixPatHandle ppat) -> None")}, |
|---|
| 654 | n/a | {"PortChanged", (PyCFunction)Qdoffs_PortChanged, 1, |
|---|
| 655 | n/a | PyDoc_STR("(GrafPtr port) -> None")}, |
|---|
| 656 | n/a | {"GDeviceChanged", (PyCFunction)Qdoffs_GDeviceChanged, 1, |
|---|
| 657 | n/a | PyDoc_STR("(GDHandle gdh) -> None")}, |
|---|
| 658 | n/a | {"AllowPurgePixels", (PyCFunction)Qdoffs_AllowPurgePixels, 1, |
|---|
| 659 | n/a | PyDoc_STR("(PixMapHandle pm) -> None")}, |
|---|
| 660 | n/a | {"NoPurgePixels", (PyCFunction)Qdoffs_NoPurgePixels, 1, |
|---|
| 661 | n/a | PyDoc_STR("(PixMapHandle pm) -> None")}, |
|---|
| 662 | n/a | {"GetPixelsState", (PyCFunction)Qdoffs_GetPixelsState, 1, |
|---|
| 663 | n/a | PyDoc_STR("(PixMapHandle pm) -> (GWorldFlags _rv)")}, |
|---|
| 664 | n/a | {"SetPixelsState", (PyCFunction)Qdoffs_SetPixelsState, 1, |
|---|
| 665 | n/a | PyDoc_STR("(PixMapHandle pm, GWorldFlags state) -> None")}, |
|---|
| 666 | n/a | {"GetPixRowBytes", (PyCFunction)Qdoffs_GetPixRowBytes, 1, |
|---|
| 667 | n/a | PyDoc_STR("(PixMapHandle pm) -> (long _rv)")}, |
|---|
| 668 | n/a | {"NewScreenBuffer", (PyCFunction)Qdoffs_NewScreenBuffer, 1, |
|---|
| 669 | n/a | PyDoc_STR("(Rect globalRect, Boolean purgeable) -> (GDHandle gdh, PixMapHandle offscreenPixMap)")}, |
|---|
| 670 | n/a | {"DisposeScreenBuffer", (PyCFunction)Qdoffs_DisposeScreenBuffer, 1, |
|---|
| 671 | n/a | PyDoc_STR("(PixMapHandle offscreenPixMap) -> None")}, |
|---|
| 672 | n/a | {"QDDone", (PyCFunction)Qdoffs_QDDone, 1, |
|---|
| 673 | n/a | PyDoc_STR("(GrafPtr port) -> (Boolean _rv)")}, |
|---|
| 674 | n/a | {"OffscreenVersion", (PyCFunction)Qdoffs_OffscreenVersion, 1, |
|---|
| 675 | n/a | PyDoc_STR("() -> (long _rv)")}, |
|---|
| 676 | n/a | {"NewTempScreenBuffer", (PyCFunction)Qdoffs_NewTempScreenBuffer, 1, |
|---|
| 677 | n/a | PyDoc_STR("(Rect globalRect, Boolean purgeable) -> (GDHandle gdh, PixMapHandle offscreenPixMap)")}, |
|---|
| 678 | n/a | {"PixMap32Bit", (PyCFunction)Qdoffs_PixMap32Bit, 1, |
|---|
| 679 | n/a | PyDoc_STR("(PixMapHandle pmHandle) -> (Boolean _rv)")}, |
|---|
| 680 | n/a | {"GetPixMapBytes", (PyCFunction)Qdoffs_GetPixMapBytes, 1, |
|---|
| 681 | n/a | PyDoc_STR("(pixmap, int start, int size) -> string. Return bytes from the pixmap")}, |
|---|
| 682 | n/a | {"PutPixMapBytes", (PyCFunction)Qdoffs_PutPixMapBytes, 1, |
|---|
| 683 | n/a | PyDoc_STR("(pixmap, int start, string data). Store bytes into the pixmap")}, |
|---|
| 684 | n/a | #endif /* __LP64__ */ |
|---|
| 685 | n/a | {NULL, NULL, 0} |
|---|
| 686 | n/a | }; |
|---|
| 687 | n/a | |
|---|
| 688 | n/a | |
|---|
| 689 | n/a | |
|---|
| 690 | n/a | |
|---|
| 691 | n/a | void init_Qdoffs(void) |
|---|
| 692 | n/a | { |
|---|
| 693 | n/a | PyObject *m; |
|---|
| 694 | n/a | #ifndef __LP64__ |
|---|
| 695 | n/a | PyObject *d; |
|---|
| 696 | n/a | |
|---|
| 697 | n/a | |
|---|
| 698 | n/a | |
|---|
| 699 | n/a | PyMac_INIT_TOOLBOX_OBJECT_NEW(GWorldPtr, GWorldObj_New); |
|---|
| 700 | n/a | PyMac_INIT_TOOLBOX_OBJECT_CONVERT(GWorldPtr, GWorldObj_Convert); |
|---|
| 701 | n/a | |
|---|
| 702 | n/a | #endif /* __LP64__ */ |
|---|
| 703 | n/a | |
|---|
| 704 | n/a | m = Py_InitModule("_Qdoffs", Qdoffs_methods); |
|---|
| 705 | n/a | #ifndef __LP64__ |
|---|
| 706 | n/a | d = PyModule_GetDict(m); |
|---|
| 707 | n/a | Qdoffs_Error = PyMac_GetOSErrException(); |
|---|
| 708 | n/a | if (Qdoffs_Error == NULL || |
|---|
| 709 | n/a | PyDict_SetItemString(d, "Error", Qdoffs_Error) != 0) |
|---|
| 710 | n/a | return; |
|---|
| 711 | n/a | GWorld_Type.ob_type = &PyType_Type; |
|---|
| 712 | n/a | if (PyType_Ready(&GWorld_Type) < 0) return; |
|---|
| 713 | n/a | Py_INCREF(&GWorld_Type); |
|---|
| 714 | n/a | PyModule_AddObject(m, "GWorld", (PyObject *)&GWorld_Type); |
|---|
| 715 | n/a | /* Backward-compatible name */ |
|---|
| 716 | n/a | Py_INCREF(&GWorld_Type); |
|---|
| 717 | n/a | PyModule_AddObject(m, "GWorldType", (PyObject *)&GWorld_Type); |
|---|
| 718 | n/a | #endif /* __LP64__ */ |
|---|
| 719 | n/a | } |
|---|
| 720 | n/a | |
|---|
| 721 | n/a | /* ======================= End module _Qdoffs ======================= */ |
|---|
| 722 | n/a | |
|---|