]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/contrib/ogl/ogl.cpp
htmlhelp.h no longer needed -> removed test in configure
[wxWidgets.git] / wxPython / contrib / ogl / ogl.cpp
... / ...
CommitLineData
1/*
2 * FILE : contrib/ogl/ogl.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initoglc
55
56#define SWIG_name "oglc"
57
58#include "export.h"
59#include "oglhelpers.h"
60
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86}
87
88#if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90#else
91 static char* wxStringErrorMsg = "String type required";
92#endif
93
94//---------------------------------------------------------------------------
95// This one will work for any class for the VERY generic cases, but beyond that
96// the helper needs to know more about the type.
97
98wxList* wxPy_wxListHelper(PyObject* pyList, char* className) {
99 wxPyBeginBlockThreads();
100 if (!PyList_Check(pyList)) {
101 PyErr_SetString(PyExc_TypeError, "Expected a list object.");
102 wxPyEndBlockThreads();
103 return NULL;
104 }
105 int count = PyList_Size(pyList);
106 wxList* list = new wxList;
107 if (! list) {
108 PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object");
109 wxPyEndBlockThreads();
110 return NULL;
111 }
112 for (int x=0; x<count; x++) {
113 PyObject* pyo = PyList_GetItem(pyList, x);
114 wxObject* wxo = NULL;
115
116 if (SWIG_GetPtrObj(pyo, (void **)&wxo, className)) {
117 char errmsg[1024];
118 sprintf(errmsg, "Type error, expected list of %s objects", className);
119 PyErr_SetString(PyExc_TypeError, errmsg);
120 wxPyEndBlockThreads();
121 return NULL;
122 }
123 list->Append(wxo);
124 }
125 wxPyEndBlockThreads();
126 return list;
127}
128
129//---------------------------------------------------------------------------
130
131wxList* wxPy_wxRealPoint_ListHelper(PyObject* pyList) {
132 wxPyBeginBlockThreads();
133 if (!PyList_Check(pyList)) {
134 PyErr_SetString(PyExc_TypeError, "Expected a list object.");
135 wxPyEndBlockThreads();
136 return NULL;
137 }
138 int count = PyList_Size(pyList);
139 wxList* list = new wxList;
140 if (! list) {
141 PyErr_SetString(PyExc_MemoryError, "Unable to allocate wxList object");
142 wxPyEndBlockThreads();
143 return NULL;
144 }
145 for (int x=0; x<count; x++) {
146 PyObject* pyo = PyList_GetItem(pyList, x);
147
148 if (PyTuple_Check(pyo)) {
149 PyObject* o1 = PyNumber_Float(PyTuple_GetItem(pyo, 0));
150 PyObject* o2 = PyNumber_Float(PyTuple_GetItem(pyo, 1));
151
152 double val1 = (o1 ? PyFloat_AsDouble(o1) : 0.0);
153 double val2 = (o2 ? PyFloat_AsDouble(o2) : 0.0);
154
155 list->Append((wxObject*) new wxRealPoint(val1, val2));
156
157 } else {
158 wxRealPoint* wxo = NULL;
159 if (SWIG_GetPtrObj(pyo, (void **)&wxo, "_wxRealPoint_p")) {
160 PyErr_SetString(PyExc_TypeError, "Type error, expected list of wxRealPoint objects or 2-tuples");
161 wxPyEndBlockThreads();
162 return NULL;
163 }
164 list->Append((wxObject*) new wxRealPoint(*wxo));
165 }
166 }
167 wxPyEndBlockThreads();
168 return list;
169}
170
171//---------------------------------------------------------------------------
172
173PyObject* wxPyMake_wxShapeEvtHandler(wxShapeEvtHandler* source) {
174 PyObject* target = NULL;
175
176 if (source && wxIsKindOf(source, wxShapeEvtHandler)) {
177 // If it's derived from wxShapeEvtHandler then there may
178 // already be a pointer to a Python object that we can use
179 // in the OOR data.
180 wxShapeEvtHandler* seh = (wxShapeEvtHandler*)source;
181 wxPyClientData* data = (wxPyClientData*)seh->GetClientObject();
182 if (data) {
183 target = data->m_obj;
184 Py_INCREF(target);
185 }
186 }
187 if (! target) {
188 target = wxPyMake_wxObject2(source, FALSE);
189 if (target != Py_None)
190 ((wxShapeEvtHandler*)source)->SetClientObject(new wxPyClientData(target));
191 }
192 return target;
193}
194
195
196
197//---------------------------------------------------------------------------
198
199IMPLEMENT_DYNAMIC_CLASS(wxPyShapeCanvas, wxShapeCanvas);
200IMPLEMENT_DYNAMIC_CLASS(wxPyShapeEvtHandler, wxShapeEvtHandler);
201IMPLEMENT_ABSTRACT_CLASS(wxPyShape, wxShape);
202IMPLEMENT_DYNAMIC_CLASS(wxPyRectangleShape, wxRectangleShape);
203IMPLEMENT_DYNAMIC_CLASS(wxPyControlPoint, wxControlPoint);
204IMPLEMENT_DYNAMIC_CLASS(wxPyBitmapShape, wxBitmapShape);
205IMPLEMENT_DYNAMIC_CLASS(wxPyDrawnShape, wxDrawnShape);
206IMPLEMENT_DYNAMIC_CLASS(wxPyCompositeShape, wxCompositeShape);
207IMPLEMENT_DYNAMIC_CLASS(wxPyDividedShape, wxDividedShape);
208IMPLEMENT_DYNAMIC_CLASS(wxPyDivisionShape, wxDivisionShape);
209IMPLEMENT_DYNAMIC_CLASS(wxPyEllipseShape, wxEllipseShape);
210IMPLEMENT_DYNAMIC_CLASS(wxPyCircleShape, wxCircleShape);
211IMPLEMENT_DYNAMIC_CLASS(wxPyLineShape, wxLineShape);
212IMPLEMENT_DYNAMIC_CLASS(wxPyPolygonShape, wxPolygonShape);
213IMPLEMENT_DYNAMIC_CLASS(wxPyTextShape, wxTextShape);
214
215//---------------------------------------------------------------------------
216
217extern "C" SWIGEXPORT(void) initoglbasicc();
218extern "C" SWIGEXPORT(void) initoglshapesc();
219extern "C" SWIGEXPORT(void) initoglshapes2c();
220extern "C" SWIGEXPORT(void) initoglcanvasc();
221#ifdef __cplusplus
222extern "C" {
223#endif
224static PyObject *_wrap_wxOGLInitialize(PyObject *self, PyObject *args, PyObject *kwargs) {
225 PyObject * _resultobj;
226 char *_kwnames[] = { NULL };
227
228 self = self;
229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxOGLInitialize",_kwnames))
230 return NULL;
231{
232 PyThreadState* __tstate = wxPyBeginAllowThreads();
233 wxOGLInitialize();
234
235 wxPyEndAllowThreads(__tstate);
236 if (PyErr_Occurred()) return NULL;
237} Py_INCREF(Py_None);
238 _resultobj = Py_None;
239 return _resultobj;
240}
241
242static PyObject *_wrap_wxOGLCleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
243 PyObject * _resultobj;
244 char *_kwnames[] = { NULL };
245
246 self = self;
247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxOGLCleanUp",_kwnames))
248 return NULL;
249{
250 PyThreadState* __tstate = wxPyBeginAllowThreads();
251 wxOGLCleanUp();
252
253 wxPyEndAllowThreads(__tstate);
254 if (PyErr_Occurred()) return NULL;
255} Py_INCREF(Py_None);
256 _resultobj = Py_None;
257 return _resultobj;
258}
259
260static PyMethodDef oglcMethods[] = {
261 { "wxOGLCleanUp", (PyCFunction) _wrap_wxOGLCleanUp, METH_VARARGS | METH_KEYWORDS },
262 { "wxOGLInitialize", (PyCFunction) _wrap_wxOGLInitialize, METH_VARARGS | METH_KEYWORDS },
263 { NULL, NULL }
264};
265#ifdef __cplusplus
266}
267#endif
268/*
269 * This table is used by the pointer type-checker
270 */
271static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
272 { "_signed_long","_long",0},
273 { "_wxPrintQuality","_wxCoord",0},
274 { "_wxPrintQuality","_int",0},
275 { "_wxPrintQuality","_signed_int",0},
276 { "_wxPrintQuality","_unsigned_int",0},
277 { "_wxPrintQuality","_wxWindowID",0},
278 { "_wxPrintQuality","_uint",0},
279 { "_wxPrintQuality","_EBool",0},
280 { "_wxPrintQuality","_size_t",0},
281 { "_wxPrintQuality","_time_t",0},
282 { "_byte","_unsigned_char",0},
283 { "_long","_unsigned_long",0},
284 { "_long","_signed_long",0},
285 { "_size_t","_wxCoord",0},
286 { "_size_t","_wxPrintQuality",0},
287 { "_size_t","_time_t",0},
288 { "_size_t","_unsigned_int",0},
289 { "_size_t","_int",0},
290 { "_size_t","_wxWindowID",0},
291 { "_size_t","_uint",0},
292 { "_uint","_wxCoord",0},
293 { "_uint","_wxPrintQuality",0},
294 { "_uint","_time_t",0},
295 { "_uint","_size_t",0},
296 { "_uint","_unsigned_int",0},
297 { "_uint","_int",0},
298 { "_uint","_wxWindowID",0},
299 { "_wxChar","_char",0},
300 { "_char","_wxChar",0},
301 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
302 { "_EBool","_wxCoord",0},
303 { "_EBool","_wxPrintQuality",0},
304 { "_EBool","_signed_int",0},
305 { "_EBool","_int",0},
306 { "_EBool","_wxWindowID",0},
307 { "_unsigned_long","_long",0},
308 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
309 { "_signed_int","_wxCoord",0},
310 { "_signed_int","_wxPrintQuality",0},
311 { "_signed_int","_EBool",0},
312 { "_signed_int","_wxWindowID",0},
313 { "_signed_int","_int",0},
314 { "_WXTYPE","_wxDateTime_t",0},
315 { "_WXTYPE","_short",0},
316 { "_WXTYPE","_signed_short",0},
317 { "_WXTYPE","_unsigned_short",0},
318 { "_unsigned_short","_wxDateTime_t",0},
319 { "_unsigned_short","_WXTYPE",0},
320 { "_unsigned_short","_short",0},
321 { "_signed_short","_WXTYPE",0},
322 { "_signed_short","_short",0},
323 { "_unsigned_char","_byte",0},
324 { "_unsigned_int","_wxCoord",0},
325 { "_unsigned_int","_wxPrintQuality",0},
326 { "_unsigned_int","_time_t",0},
327 { "_unsigned_int","_size_t",0},
328 { "_unsigned_int","_uint",0},
329 { "_unsigned_int","_wxWindowID",0},
330 { "_unsigned_int","_int",0},
331 { "_short","_wxDateTime_t",0},
332 { "_short","_WXTYPE",0},
333 { "_short","_unsigned_short",0},
334 { "_short","_signed_short",0},
335 { "_wxWindowID","_wxCoord",0},
336 { "_wxWindowID","_wxPrintQuality",0},
337 { "_wxWindowID","_time_t",0},
338 { "_wxWindowID","_size_t",0},
339 { "_wxWindowID","_EBool",0},
340 { "_wxWindowID","_uint",0},
341 { "_wxWindowID","_int",0},
342 { "_wxWindowID","_signed_int",0},
343 { "_wxWindowID","_unsigned_int",0},
344 { "_int","_wxCoord",0},
345 { "_int","_wxPrintQuality",0},
346 { "_int","_time_t",0},
347 { "_int","_size_t",0},
348 { "_int","_EBool",0},
349 { "_int","_uint",0},
350 { "_int","_wxWindowID",0},
351 { "_int","_unsigned_int",0},
352 { "_int","_signed_int",0},
353 { "_wxDateTime_t","_unsigned_short",0},
354 { "_wxDateTime_t","_short",0},
355 { "_wxDateTime_t","_WXTYPE",0},
356 { "_time_t","_wxCoord",0},
357 { "_time_t","_wxPrintQuality",0},
358 { "_time_t","_unsigned_int",0},
359 { "_time_t","_int",0},
360 { "_time_t","_wxWindowID",0},
361 { "_time_t","_uint",0},
362 { "_time_t","_size_t",0},
363 { "_wxCoord","_int",0},
364 { "_wxCoord","_signed_int",0},
365 { "_wxCoord","_unsigned_int",0},
366 { "_wxCoord","_wxWindowID",0},
367 { "_wxCoord","_uint",0},
368 { "_wxCoord","_EBool",0},
369 { "_wxCoord","_size_t",0},
370 { "_wxCoord","_time_t",0},
371 { "_wxCoord","_wxPrintQuality",0},
372{0,0,0}};
373
374static PyObject *SWIG_globals;
375#ifdef __cplusplus
376extern "C"
377#endif
378SWIGEXPORT(void) initoglc() {
379 PyObject *m, *d;
380 SWIG_globals = SWIG_newvarlink();
381 m = Py_InitModule("oglc", oglcMethods);
382 d = PyModule_GetDict(m);
383 PyDict_SetItemString(d,"KEY_SHIFT", PyInt_FromLong((long) KEY_SHIFT));
384 PyDict_SetItemString(d,"KEY_CTRL", PyInt_FromLong((long) KEY_CTRL));
385 PyDict_SetItemString(d,"ARROW_NONE", PyInt_FromLong((long) ARROW_NONE));
386 PyDict_SetItemString(d,"ARROW_END", PyInt_FromLong((long) ARROW_END));
387 PyDict_SetItemString(d,"ARROW_BOTH", PyInt_FromLong((long) ARROW_BOTH));
388 PyDict_SetItemString(d,"ARROW_MIDDLE", PyInt_FromLong((long) ARROW_MIDDLE));
389 PyDict_SetItemString(d,"ARROW_START", PyInt_FromLong((long) ARROW_START));
390 PyDict_SetItemString(d,"ARROW_HOLLOW_CIRCLE", PyInt_FromLong((long) ARROW_HOLLOW_CIRCLE));
391 PyDict_SetItemString(d,"ARROW_FILLED_CIRCLE", PyInt_FromLong((long) ARROW_FILLED_CIRCLE));
392 PyDict_SetItemString(d,"ARROW_ARROW", PyInt_FromLong((long) ARROW_ARROW));
393 PyDict_SetItemString(d,"ARROW_SINGLE_OBLIQUE", PyInt_FromLong((long) ARROW_SINGLE_OBLIQUE));
394 PyDict_SetItemString(d,"ARROW_DOUBLE_OBLIQUE", PyInt_FromLong((long) ARROW_DOUBLE_OBLIQUE));
395 PyDict_SetItemString(d,"ARROW_METAFILE", PyInt_FromLong((long) ARROW_METAFILE));
396 PyDict_SetItemString(d,"ARROW_POSITION_END", PyInt_FromLong((long) ARROW_POSITION_END));
397 PyDict_SetItemString(d,"ARROW_POSITION_START", PyInt_FromLong((long) ARROW_POSITION_START));
398 PyDict_SetItemString(d,"CONTROL_POINT_VERTICAL", PyInt_FromLong((long) CONTROL_POINT_VERTICAL));
399 PyDict_SetItemString(d,"CONTROL_POINT_HORIZONTAL", PyInt_FromLong((long) CONTROL_POINT_HORIZONTAL));
400 PyDict_SetItemString(d,"CONTROL_POINT_DIAGONAL", PyInt_FromLong((long) CONTROL_POINT_DIAGONAL));
401 PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_TO", PyInt_FromLong((long) CONTROL_POINT_ENDPOINT_TO));
402 PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_FROM", PyInt_FromLong((long) CONTROL_POINT_ENDPOINT_FROM));
403 PyDict_SetItemString(d,"CONTROL_POINT_LINE", PyInt_FromLong((long) CONTROL_POINT_LINE));
404 PyDict_SetItemString(d,"FORMAT_NONE", PyInt_FromLong((long) FORMAT_NONE));
405 PyDict_SetItemString(d,"FORMAT_CENTRE_HORIZ", PyInt_FromLong((long) FORMAT_CENTRE_HORIZ));
406 PyDict_SetItemString(d,"FORMAT_CENTRE_VERT", PyInt_FromLong((long) FORMAT_CENTRE_VERT));
407 PyDict_SetItemString(d,"FORMAT_SIZE_TO_CONTENTS", PyInt_FromLong((long) FORMAT_SIZE_TO_CONTENTS));
408 PyDict_SetItemString(d,"LINE_ALIGNMENT_HORIZ", PyInt_FromLong((long) LINE_ALIGNMENT_HORIZ));
409 PyDict_SetItemString(d,"LINE_ALIGNMENT_VERT", PyInt_FromLong((long) LINE_ALIGNMENT_VERT));
410 PyDict_SetItemString(d,"LINE_ALIGNMENT_TO_NEXT_HANDLE", PyInt_FromLong((long) LINE_ALIGNMENT_TO_NEXT_HANDLE));
411 PyDict_SetItemString(d,"LINE_ALIGNMENT_NONE", PyInt_FromLong((long) LINE_ALIGNMENT_NONE));
412 PyDict_SetItemString(d,"SHADOW_NONE", PyInt_FromLong((long) SHADOW_NONE));
413 PyDict_SetItemString(d,"SHADOW_LEFT", PyInt_FromLong((long) SHADOW_LEFT));
414 PyDict_SetItemString(d,"SHADOW_RIGHT", PyInt_FromLong((long) SHADOW_RIGHT));
415 PyDict_SetItemString(d,"OP_CLICK_LEFT", PyInt_FromLong((long) OP_CLICK_LEFT));
416 PyDict_SetItemString(d,"OP_CLICK_RIGHT", PyInt_FromLong((long) OP_CLICK_RIGHT));
417 PyDict_SetItemString(d,"OP_DRAG_LEFT", PyInt_FromLong((long) OP_DRAG_LEFT));
418 PyDict_SetItemString(d,"OP_DRAG_RIGHT", PyInt_FromLong((long) OP_DRAG_RIGHT));
419 PyDict_SetItemString(d,"OP_ALL", PyInt_FromLong((long) OP_ALL));
420 PyDict_SetItemString(d,"ATTACHMENT_MODE_NONE", PyInt_FromLong((long) ATTACHMENT_MODE_NONE));
421 PyDict_SetItemString(d,"ATTACHMENT_MODE_EDGE", PyInt_FromLong((long) ATTACHMENT_MODE_EDGE));
422 PyDict_SetItemString(d,"ATTACHMENT_MODE_BRANCHING", PyInt_FromLong((long) ATTACHMENT_MODE_BRANCHING));
423 PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_NORMAL", PyInt_FromLong((long) BRANCHING_ATTACHMENT_NORMAL));
424 PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_BLOB", PyInt_FromLong((long) BRANCHING_ATTACHMENT_BLOB));
425 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_VERTICALLY", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_VERTICALLY));
426 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_HORIZONTALLY", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_HORIZONTALLY));
427 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_BOTH", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_BOTH));
428 PyDict_SetItemString(d,"gyCONSTRAINT_LEFT_OF", PyInt_FromLong((long) gyCONSTRAINT_LEFT_OF));
429 PyDict_SetItemString(d,"gyCONSTRAINT_RIGHT_OF", PyInt_FromLong((long) gyCONSTRAINT_RIGHT_OF));
430 PyDict_SetItemString(d,"gyCONSTRAINT_ABOVE", PyInt_FromLong((long) gyCONSTRAINT_ABOVE));
431 PyDict_SetItemString(d,"gyCONSTRAINT_BELOW", PyInt_FromLong((long) gyCONSTRAINT_BELOW));
432 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_TOP", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_TOP));
433 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_BOTTOM", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_BOTTOM));
434 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_LEFT", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_LEFT));
435 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_RIGHT", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_RIGHT));
436 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_TOP", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_TOP));
437 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_BOTTOM", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_BOTTOM));
438 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_LEFT", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_LEFT));
439 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_RIGHT", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_RIGHT));
440 PyDict_SetItemString(d,"DIVISION_SIDE_NONE", PyInt_FromLong((long) DIVISION_SIDE_NONE));
441 PyDict_SetItemString(d,"DIVISION_SIDE_LEFT", PyInt_FromLong((long) DIVISION_SIDE_LEFT));
442 PyDict_SetItemString(d,"DIVISION_SIDE_TOP", PyInt_FromLong((long) DIVISION_SIDE_TOP));
443 PyDict_SetItemString(d,"DIVISION_SIDE_RIGHT", PyInt_FromLong((long) DIVISION_SIDE_RIGHT));
444 PyDict_SetItemString(d,"DIVISION_SIDE_BOTTOM", PyInt_FromLong((long) DIVISION_SIDE_BOTTOM));
445
446
447 initoglbasicc();
448 initoglshapesc();
449 initoglshapes2c();
450 initoglcanvasc();
451
452
453 wxClassInfo::CleanUpClasses();
454 wxClassInfo::InitializeClasses();
455
456 wxPyPtrTypeMap_Add("wxControlPoint", "wxPyControlPoint");
457 wxPyPtrTypeMap_Add("wxShapeCanvas", "wxPyShapeCanvas");
458 wxPyPtrTypeMap_Add("wxShapeEvtHandler", "wxPyShapeEvtHandler");
459 wxPyPtrTypeMap_Add("wxShape", "wxPyShape");
460 wxPyPtrTypeMap_Add("wxRectangleShape", "wxPyRectangleShape");
461 wxPyPtrTypeMap_Add("wxDrawnShape", "wxPyDrawnShape");
462 wxPyPtrTypeMap_Add("wxCompositeShape", "wxPyCompositeShape");
463 wxPyPtrTypeMap_Add("wxDividedShape", "wxPyDividedShape");
464 wxPyPtrTypeMap_Add("wxDivisionShape", "wxPyDivisionShape");
465 wxPyPtrTypeMap_Add("wxEllipseShape", "wxPyEllipseShape");
466 wxPyPtrTypeMap_Add("wxCircleShape", "wxPyCircleShape");
467 wxPyPtrTypeMap_Add("wxLineShape", "wxPyLineShape");
468 wxPyPtrTypeMap_Add("wxPolygonShape", "wxPyPolygonShape");
469 wxPyPtrTypeMap_Add("wxTextShape", "wxPyTextShape");
470
471{
472 int i;
473 for (i = 0; _swig_mapping[i].n1; i++)
474 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
475}
476}