]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/modules/ogl/ogl.cpp
Added a demo showing how to use wxPostEvent
[wxWidgets.git] / utils / wxPython / modules / ogl / ogl.cpp
CommitLineData
e91a9dfc 1/*
2348eaee 2 * FILE : ./ogl.cpp
e91a9dfc
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 810)
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#ifdef __cplusplus
40extern "C" {
41#endif
42#include "Python.h"
43extern void SWIG_MakePtr(char *, void *, char *);
44extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45extern char *SWIG_GetPtr(char *, void **, char *);
46extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48extern PyObject *SWIG_newvarlink(void);
49#ifdef __cplusplus
50}
51#endif
52#define SWIG_init initoglc
53
54#define SWIG_name "oglc"
55
56#include "helpers.h"
57#include "oglhelpers.h"
58#include <ogl.h>
59#include <basicp.h>
60#include <constrnt.h>
61#include <bmpshape.h>
62#include <drawn.h>
63
64static PyObject* l_output_helper(PyObject* target, PyObject* o) {
65 PyObject* o2;
66 PyObject* o3;
67 if (!target) {
68 target = o;
69 } else if (target == Py_None) {
70 Py_DECREF(Py_None);
71 target = o;
72 } else {
73 if (!PyList_Check(target)) {
74 o2 = target;
75 target = PyList_New(0);
76 PyList_Append(target, o2);
77 Py_XDECREF(o2);
78 }
79 PyList_Append(target,o);
80 Py_XDECREF(o);
81 }
82 return target;
83}
84
85static PyObject* t_output_helper(PyObject* target, PyObject* o) {
86 PyObject* o2;
87 PyObject* o3;
88
89 if (!target) {
90 target = o;
91 } else if (target == Py_None) {
92 Py_DECREF(Py_None);
93 target = o;
94 } else {
95 if (!PyTuple_Check(target)) {
96 o2 = target;
97 target = PyTuple_New(1);
98 PyTuple_SetItem(target, 0, o2);
99 }
100 o3 = PyTuple_New(1);
101 PyTuple_SetItem(o3, 0, o);
102
103 o2 = target;
104 target = PySequence_Concat(o2, o3);
105 Py_DECREF(o2);
106 Py_DECREF(o3);
107 }
108 return target;
109}
110
e91a9dfc
RD
111static char* wxStringErrorMsg = "string type is required for parameter";
112
113#if defined(__WXMSW__)
114 wxString wxPyEmptyStr("");
115 wxPoint wxPyDefaultPosition(-1, -1);
116 wxSize wxPyDefaultSize(-1, -1);
117#endif
118
119extern "C" SWIGEXPORT(void) initoglbasicc();
120extern "C" SWIGEXPORT(void) initoglshapesc();
121extern "C" SWIGEXPORT(void) initoglshapes2c();
122extern "C" SWIGEXPORT(void) initoglcanvasc();
123#ifdef __cplusplus
124extern "C" {
125#endif
126static PyObject *_wrap_wxOGLInitialize(PyObject *self, PyObject *args, PyObject *kwargs) {
127 PyObject * _resultobj;
128 char *_kwnames[] = { NULL };
129
130 self = self;
131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxOGLInitialize",_kwnames))
132 return NULL;
133{
134 wxPy_BEGIN_ALLOW_THREADS;
135 wxOGLInitialize();
136
137 wxPy_END_ALLOW_THREADS;
138} Py_INCREF(Py_None);
139 _resultobj = Py_None;
140 return _resultobj;
141}
142
143static PyObject *_wrap_wxOGLCleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
144 PyObject * _resultobj;
145 char *_kwnames[] = { NULL };
146
147 self = self;
148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxOGLCleanUp",_kwnames))
149 return NULL;
150{
151 wxPy_BEGIN_ALLOW_THREADS;
152 wxOGLCleanUp();
153
154 wxPy_END_ALLOW_THREADS;
155} Py_INCREF(Py_None);
156 _resultobj = Py_None;
157 return _resultobj;
158}
159
160static PyMethodDef oglcMethods[] = {
161 { "wxOGLCleanUp", (PyCFunction) _wrap_wxOGLCleanUp, METH_VARARGS | METH_KEYWORDS },
162 { "wxOGLInitialize", (PyCFunction) _wrap_wxOGLInitialize, METH_VARARGS | METH_KEYWORDS },
163 { NULL, NULL }
164};
165#ifdef __cplusplus
166}
167#endif
168/*
169 * This table is used by the pointer type-checker
170 */
171static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
172 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
173 { "_wxEvent","_class_wxEvent",0},
174 { "_class_wxActivateEvent","_wxActivateEvent",0},
175 { "_signed_long","_long",0},
176 { "_wxMenuEvent","_class_wxMenuEvent",0},
177 { "_class_wxJPEGHandler","_wxJPEGHandler",0},
2348eaee 178 { "_class_wxPyCommandEvent","_wxPyCommandEvent",0},
e91a9dfc
RD
179 { "_wxBMPHandler","_class_wxBMPHandler",0},
180 { "_wxImage","_class_wxImage",0},
181 { "_wxPrintQuality","_int",0},
182 { "_wxPrintQuality","_signed_int",0},
183 { "_wxPrintQuality","_unsigned_int",0},
184 { "_wxPrintQuality","_wxWindowID",0},
185 { "_wxPrintQuality","_uint",0},
186 { "_wxPrintQuality","_EBool",0},
187 { "_wxPrintQuality","_size_t",0},
188 { "_wxFontData","_class_wxFontData",0},
189 { "___wxPyCleanup","_class___wxPyCleanup",0},
190 { "_class_wxRegionIterator","_wxRegionIterator",0},
191 { "_class_wxMenuBar","_wxMenuBar",0},
192 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
2348eaee 193 { "_class_wxStaticBoxSizer","_wxStaticBoxSizer",0},
e91a9dfc
RD
194 { "_class_wxEvtHandler","_wxEvtHandler",0},
195 { "_wxPaintEvent","_class_wxPaintEvent",0},
196 { "_wxGIFHandler","_class_wxGIFHandler",0},
2348eaee 197 { "_wxPySizer","_class_wxPySizer",0},
e91a9dfc
RD
198 { "_wxPyCompositeShape","_class_wxPyCompositeShape",0},
199 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
200 { "_wxCursor","_class_wxCursor",0},
201 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
202 { "_wxImageHandler","_class_wxImageHandler",0},
203 { "_class_wxPyRectangleShape","_wxPyRectangleShape",0},
204 { "_class_wxTreeCtrl","_wxTreeCtrl",0},
205 { "_wxMask","_class_wxMask",0},
206 { "_wxToolTip","_class_wxToolTip",0},
207 { "_wxGrid","_class_wxGrid",0},
208 { "_wxPNGHandler","_class_wxPNGHandler",0},
209 { "_class_wxOGLConstraint","_wxOGLConstraint",0},
210 { "_class_wxColourData","_wxColourData",0},
211 { "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0},
212 { "_wxPrinter","_class_wxPrinter",0},
213 { "_wxPseudoMetaFile","_class_wxPseudoMetaFile",0},
214 { "_class_wxArrowHead","_wxArrowHead",0},
215 { "_wxPen","_class_wxPen",0},
216 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
217 { "_byte","_unsigned_char",0},
218 { "_wxStaticBox","_class_wxStaticBox",0},
219 { "_wxChoice","_class_wxChoice",0},
220 { "_wxSlider","_class_wxSlider",0},
221 { "_wxNotebookEvent","_class_wxNotebookEvent",0},
222 { "_wxPyPrintout","_class_wxPyPrintout",0},
223 { "_wxShapeRegion","_class_wxShapeRegion",0},
224 { "_long","_wxDash",0},
225 { "_long","_unsigned_long",0},
226 { "_long","_signed_long",0},
227 { "_wxImageList","_class_wxImageList",0},
228 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
229 { "_wxBitmapButton","_class_wxBitmapButton",0},
230 { "_wxSashWindow","_class_wxSashWindow",0},
2348eaee 231 { "_class_wxSizer","_wxSizer",0},
e91a9dfc
RD
232 { "_class_wxPrintDialogData","_wxPrintDialogData",0},
233 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
234 { "_class_wxGauge","_wxGauge",0},
235 { "_class_wxSashEvent","_wxSashEvent",0},
236 { "_wxDC","_class_wxDC",0},
2348eaee 237 { "_wxSizerItem","_class_wxSizerItem",0},
e91a9dfc
RD
238 { "_wxListEvent","_class_wxListEvent",0},
239 { "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
240 { "_wxProgressDialog","_class_wxProgressDialog",0},
241 { "_class_wxBMPHandler","_wxBMPHandler",0},
242 { "_wxPrintPreview","_class_wxPrintPreview",0},
243 { "_wxSpinEvent","_class_wxSpinEvent",0},
244 { "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
245 { "_wxPyBitmapShape","_class_wxPyBitmapShape",0},
246 { "_class_wxPyEllipseShape","_wxPyEllipseShape",0},
247 { "_size_t","_wxPrintQuality",0},
248 { "_size_t","_unsigned_int",0},
249 { "_size_t","_int",0},
250 { "_size_t","_wxWindowID",0},
251 { "_size_t","_uint",0},
252 { "_class_wxRealPoint","_wxRealPoint",0},
2348eaee 253 { "_wxPrinterDC","_class_wxPrinterDC",0},
e91a9dfc
RD
254 { "_class_wxPyShapeEvtHandler","_wxPyShapeEvtHandler",0},
255 { "_class_wxMenuItem","_wxMenuItem",0},
256 { "_class_wxPaintEvent","_wxPaintEvent",0},
257 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
258 { "_class_wxStatusBar","_wxStatusBar",0},
259 { "_class_wxGIFHandler","_wxGIFHandler",0},
2348eaee 260 { "_class_wxPySizer","_wxPySizer",0},
e91a9dfc
RD
261 { "_class_wxPyCompositeShape","_wxPyCompositeShape",0},
262 { "_wxPyPolygonShape","_class_wxPyPolygonShape",0},
263 { "_wxPanel","_class_wxPanel",0},
264 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
265 { "_wxCheckBox","_class_wxCheckBox",0},
266 { "_wxPyEvent","_class_wxPyEvent",0},
267 { "_wxTextCtrl","_class_wxTextCtrl",0},
268 { "_class_wxMask","_wxMask",0},
269 { "_class_wxToolTip","_wxToolTip",0},
270 { "_class_wxKeyEvent","_wxKeyEvent",0},
271 { "_class_wxGrid","_wxGrid",0},
272 { "_class_wxPNGHandler","_wxPNGHandler",0},
273 { "_wxColour","_class_wxColour",0},
274 { "_class_wxDialog","_wxDialog",0},
275 { "_wxPageSetupDialog","_class_wxPageSetupDialog",0},
276 { "_class_wxPrinter","_wxPrinter",0},
277 { "_wxIdleEvent","_class_wxIdleEvent",0},
278 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
279 { "_wxToolBar","_class_wxToolBar",0},
f0261a72 280 { "_wxCaret","_class_wxCaret",0},
e91a9dfc
RD
281 { "_wxStaticLine","_class_wxStaticLine",0},
282 { "_class_wxLayoutAlgorithm","_wxLayoutAlgorithm",0},
283 { "_wxBrush","_class_wxBrush",0},
284 { "_wxMiniFrame","_class_wxMiniFrame",0},
285 { "_class_wxNotebookEvent","_wxNotebookEvent",0},
286 { "_class_wxPyPrintout","_wxPyPrintout",0},
287 { "_class_wxSashWindow","_wxSashWindow",0},
288 { "_wxShowEvent","_class_wxShowEvent",0},
289 { "_class_wxPyDivisionShape","_wxPyDivisionShape",0},
290 { "_uint","_wxPrintQuality",0},
291 { "_uint","_size_t",0},
292 { "_uint","_unsigned_int",0},
293 { "_uint","_int",0},
294 { "_uint","_wxWindowID",0},
f0261a72 295 { "_wxPyValidator","_class_wxPyValidator",0},
e91a9dfc
RD
296 { "_class_wxEvent","_wxEvent",0},
297 { "_wxCheckListBox","_class_wxCheckListBox",0},
298 { "_wxSplitterEvent","_class_wxSplitterEvent",0},
299 { "_wxGridEvent","_class_wxGridEvent",0},
300 { "_wxRect","_class_wxRect",0},
301 { "_wxCommandEvent","_class_wxCommandEvent",0},
302 { "_wxPyShapeCanvas","_class_wxPyShapeCanvas",0},
303 { "_wxSizeEvent","_class_wxSizeEvent",0},
304 { "_class_wxImage","_wxImage",0},
305 { "_wxPoint","_class_wxPoint",0},
306 { "_class_wxSashLayoutWindow","_wxSashLayoutWindow",0},
307 { "_class_wxPyBitmapShape","_wxPyBitmapShape",0},
308 { "_class_wxButton","_wxButton",0},
309 { "_wxRadioBox","_class_wxRadioBox",0},
310 { "_class_wxFontData","_wxFontData",0},
2348eaee 311 { "_wxBoxSizer","_class_wxBoxSizer",0},
e91a9dfc
RD
312 { "_class___wxPyCleanup","___wxPyCleanup",0},
313 { "_wxBitmap","_class_wxBitmap",0},
2348eaee 314 { "_wxTaskBarIcon","_class_wxTaskBarIcon",0},
e91a9dfc 315 { "_wxPrintDialog","_class_wxPrintDialog",0},
2348eaee 316 { "_wxPyControlPoint","_class_wxPyControlPoint",0},
e91a9dfc
RD
317 { "_wxPyTimer","_class_wxPyTimer",0},
318 { "_wxWindowDC","_class_wxWindowDC",0},
319 { "_wxScrollBar","_class_wxScrollBar",0},
320 { "_wxSpinButton","_class_wxSpinButton",0},
321 { "_wxToolBarTool","_class_wxToolBarTool",0},
322 { "_wxColourDialog","_class_wxColourDialog",0},
323 { "_wxPrintData","_class_wxPrintData",0},
324 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
325 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
326 { "_wxMessageDialog","_class_wxMessageDialog",0},
f0261a72 327 { "_class_wxValidator","_wxValidator",0},
e91a9dfc
RD
328 { "_class_wxPyEvent","_wxPyEvent",0},
329 { "_wxTextEntryDialog","_class_wxTextEntryDialog",0},
330 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
331 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
332 { "_class_wxPyDrawnShape","_wxPyDrawnShape",0},
333 { "_wxMDIChildFrame","_class_wxMDIChildFrame",0},
334 { "_wxListItem","_class_wxListItem",0},
335 { "_class_wxPseudoMetaFile","_wxPseudoMetaFile",0},
336 { "_class_wxToolBar","_wxToolBar",0},
337 { "_class_wxStaticLine","_wxStaticLine",0},
338 { "_wxScrollEvent","_class_wxScrollEvent",0},
339 { "_wxCalculateLayoutEvent","_class_wxCalculateLayoutEvent",0},
340 { "_class_wxShapeRegion","_wxShapeRegion",0},
341 { "_EBool","_wxPrintQuality",0},
342 { "_EBool","_signed_int",0},
343 { "_EBool","_int",0},
344 { "_EBool","_wxWindowID",0},
345 { "_class_wxRegion","_wxRegion",0},
346 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
347 { "_class_wxPreviewFrame","_wxPreviewFrame",0},
348 { "_wxStaticText","_class_wxStaticText",0},
349 { "_wxFont","_class_wxFont",0},
350 { "_wxCloseEvent","_class_wxCloseEvent",0},
351 { "_class_wxSplitterEvent","_wxSplitterEvent",0},
352 { "_wxNotebook","_class_wxNotebook",0},
353 { "_unsigned_long","_wxDash",0},
354 { "_unsigned_long","_long",0},
355 { "_class_wxRect","_wxRect",0},
356 { "_class_wxDC","_wxDC",0},
9cce9de1 357 { "_wxScrollWinEvent","_class_wxScrollWinEvent",0},
e91a9dfc
RD
358 { "_wxPyCircleShape","_class_wxPyCircleShape",0},
359 { "_class_wxPyShapeCanvas","_wxPyShapeCanvas",0},
360 { "_class_wxProgressDialog","_wxProgressDialog",0},
361 { "_wxPyApp","_class_wxPyApp",0},
362 { "_wxMDIParentFrame","_class_wxMDIParentFrame",0},
363 { "_class_wxTreeEvent","_wxTreeEvent",0},
364 { "_class_wxDirDialog","_wxDirDialog",0},
365 { "_wxPyLineShape","_class_wxPyLineShape",0},
366 { "_class_wxPyTimer","_wxPyTimer",0},
367 { "_wxFocusEvent","_class_wxFocusEvent",0},
368 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
369 { "_class_wxSpinButton","_wxSpinButton",0},
370 { "_class_wxPyPolygonShape","_wxPyPolygonShape",0},
371 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
372 { "_class_wxPanel","_wxPanel",0},
373 { "_class_wxCheckBox","_wxCheckBox",0},
374 { "_wxComboBox","_class_wxComboBox",0},
375 { "_wxRadioButton","_class_wxRadioButton",0},
376 { "_class_wxMessageDialog","_wxMessageDialog",0},
377 { "_signed_int","_wxPrintQuality",0},
378 { "_signed_int","_EBool",0},
379 { "_signed_int","_wxWindowID",0},
380 { "_signed_int","_int",0},
381 { "_class_wxTextCtrl","_wxTextCtrl",0},
382 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
2348eaee 383 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
e91a9dfc
RD
384 { "_wxMenu","_class_wxMenu",0},
385 { "_class_wxMoveEvent","_wxMoveEvent",0},
386 { "_wxListBox","_class_wxListBox",0},
387 { "_wxScreenDC","_class_wxScreenDC",0},
388 { "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
389 { "_wxArrowHead","_class_wxArrowHead",0},
390 { "_WXTYPE","_short",0},
391 { "_WXTYPE","_signed_short",0},
392 { "_WXTYPE","_unsigned_short",0},
393 { "_wxFileDialog","_class_wxFileDialog",0},
f0261a72 394 { "_class_wxCaret","_wxCaret",0},
e91a9dfc
RD
395 { "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
396 { "_class_wxBrush","_wxBrush",0},
397 { "_unsigned_short","_WXTYPE",0},
398 { "_unsigned_short","_short",0},
399 { "_class_wxWindow","_wxWindow",0},
400 { "_wxSplitterWindow","_class_wxSplitterWindow",0},
401 { "_class_wxStaticText","_wxStaticText",0},
402 { "_wxPrintDialogData","_class_wxPrintDialogData",0},
403 { "_class_wxFont","_wxFont",0},
f0261a72 404 { "_class_wxPyValidator","_wxPyValidator",0},
e91a9dfc
RD
405 { "_class_wxCloseEvent","_wxCloseEvent",0},
406 { "_wxSashEvent","_class_wxSashEvent",0},
407 { "_class_wxMenuEvent","_wxMenuEvent",0},
408 { "_class_wxPyCircleShape","_wxPyCircleShape",0},
409 { "_wxClientDC","_class_wxClientDC",0},
410 { "_wxMouseEvent","_class_wxMouseEvent",0},
411 { "_wxListCtrl","_class_wxListCtrl",0},
412 { "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
413 { "_wxPyDividedShape","_class_wxPyDividedShape",0},
414 { "_class_wxPoint","_wxPoint",0},
415 { "_wxRealPoint","_class_wxRealPoint",0},
416 { "_class_wxRadioBox","_wxRadioBox",0},
417 { "_wxGridCell","_class_wxGridCell",0},
2348eaee 418 { "_class_wxBoxSizer","_wxBoxSizer",0},
e91a9dfc
RD
419 { "_signed_short","_WXTYPE",0},
420 { "_signed_short","_short",0},
421 { "_wxMemoryDC","_class_wxMemoryDC",0},
2348eaee 422 { "_class_wxTaskBarIcon","_wxTaskBarIcon",0},
e91a9dfc 423 { "_class_wxPrintDialog","_wxPrintDialog",0},
2348eaee 424 { "_class_wxPyControlPoint","_wxPyControlPoint",0},
e91a9dfc
RD
425 { "_wxPaintDC","_class_wxPaintDC",0},
426 { "_class_wxWindowDC","_wxWindowDC",0},
427 { "_class_wxFocusEvent","_wxFocusEvent",0},
428 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
429 { "_wxStatusBar","_class_wxStatusBar",0},
430 { "_class_wxToolBarTool","_wxToolBarTool",0},
431 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
432 { "_class_wxCursor","_wxCursor",0},
433 { "_class_wxImageHandler","_wxImageHandler",0},
434 { "_wxPyShape","_class_wxPyShape",0},
435 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
436 { "_wxTreeItemId","_class_wxTreeItemId",0},
437 { "_unsigned_char","_byte",0},
2348eaee 438 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
e91a9dfc
RD
439 { "_class_wxMenu","_wxMenu",0},
440 { "_wxControl","_class_wxControl",0},
441 { "_class_wxListBox","_wxListBox",0},
442 { "_unsigned_int","_wxPrintQuality",0},
443 { "_unsigned_int","_size_t",0},
444 { "_unsigned_int","_uint",0},
445 { "_unsigned_int","_wxWindowID",0},
446 { "_unsigned_int","_int",0},
447 { "_wxIcon","_class_wxIcon",0},
448 { "_wxDialog","_class_wxDialog",0},
449 { "_class_wxListItem","_wxListItem",0},
450 { "_class_wxPen","_wxPen",0},
451 { "_class_wxFileDialog","_wxFileDialog",0},
452 { "_wxQueryLayoutInfoEvent","_class_wxQueryLayoutInfoEvent",0},
453 { "_short","_WXTYPE",0},
454 { "_short","_unsigned_short",0},
455 { "_short","_signed_short",0},
456 { "_class_wxStaticBox","_wxStaticBox",0},
457 { "_wxLayoutAlgorithm","_class_wxLayoutAlgorithm",0},
458 { "_wxPyTextShape","_class_wxPyTextShape",0},
459 { "_class_wxScrollEvent","_wxScrollEvent",0},
460 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
461 { "_class_wxChoice","_wxChoice",0},
462 { "_class_wxSlider","_wxSlider",0},
463 { "_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0},
464 { "_class_wxImageList","_wxImageList",0},
465 { "_class_wxBitmapButton","_wxBitmapButton",0},
466 { "_wxFrame","_class_wxFrame",0},
467 { "_wxPyDivisionShape","_class_wxPyDivisionShape",0},
468 { "_class_wxNotebook","_wxNotebook",0},
469 { "_wxJPEGHandler","_class_wxJPEGHandler",0},
470 { "_wxWindowID","_wxPrintQuality",0},
471 { "_wxWindowID","_size_t",0},
472 { "_wxWindowID","_EBool",0},
473 { "_wxWindowID","_uint",0},
474 { "_wxWindowID","_int",0},
475 { "_wxWindowID","_signed_int",0},
476 { "_wxWindowID","_unsigned_int",0},
9cce9de1 477 { "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
2348eaee 478 { "_class_wxSizerItem","_wxSizerItem",0},
e91a9dfc
RD
479 { "_int","_wxPrintQuality",0},
480 { "_int","_size_t",0},
481 { "_int","_EBool",0},
482 { "_int","_uint",0},
483 { "_int","_wxWindowID",0},
484 { "_int","_unsigned_int",0},
485 { "_int","_signed_int",0},
486 { "_class_wxMouseEvent","_wxMouseEvent",0},
2348eaee 487 { "_wxPyCommandEvent","_class_wxPyCommandEvent",0},
e91a9dfc
RD
488 { "_class_wxListEvent","_wxListEvent",0},
489 { "_class_wxPrintPreview","_wxPrintPreview",0},
490 { "_class_wxSpinEvent","_wxSpinEvent",0},
491 { "_wxButton","_class_wxButton",0},
492 { "_class_wxPyApp","_wxPyApp",0},
493 { "_wxSize","_class_wxSize",0},
494 { "_wxRegionIterator","_class_wxRegionIterator",0},
2348eaee 495 { "_class_wxPrinterDC","_wxPrinterDC",0},
e91a9dfc
RD
496 { "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
497 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
2348eaee 498 { "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
e91a9dfc
RD
499 { "_class_wxPyLineShape","_wxPyLineShape",0},
500 { "_class_wxPaintDC","_wxPaintDC",0},
501 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
502 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
503 { "_class_wxComboBox","_wxComboBox",0},
504 { "_class_wxRadioButton","_wxRadioButton",0},
505 { "_class_wxPyShape","_wxPyShape",0},
f0261a72 506 { "_wxValidator","_class_wxValidator",0},
e91a9dfc
RD
507 { "_class_wxTreeItemId","_wxTreeItemId",0},
508 { "_wxTreeCtrl","_class_wxTreeCtrl",0},
509 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
510 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
511 { "_class_wxControl","_wxControl",0},
512 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
513 { "_wxPyDrawnShape","_class_wxPyDrawnShape",0},
514 { "_class_wxIcon","_wxIcon",0},
515 { "_class_wxColour","_wxColour",0},
516 { "_class_wxScreenDC","_wxScreenDC",0},
517 { "_class_wxPageSetupDialog","_wxPageSetupDialog",0},
518 { "_wxPalette","_class_wxPalette",0},
519 { "_class_wxIdleEvent","_wxIdleEvent",0},
520 { "_wxEraseEvent","_class_wxEraseEvent",0},
521 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
522 { "_class_wxMiniFrame","_wxMiniFrame",0},
523 { "_wxFontDialog","_class_wxFontDialog",0},
524 { "_wxRegion","_class_wxRegion",0},
525 { "_class_wxSplitterWindow","_wxSplitterWindow",0},
526 { "_wxPreviewFrame","_class_wxPreviewFrame",0},
2348eaee 527 { "_wxSizer","_class_wxSizer",0},
e91a9dfc
RD
528 { "_class_wxShowEvent","_wxShowEvent",0},
529 { "_wxDiagram","_class_wxDiagram",0},
530 { "_wxActivateEvent","_class_wxActivateEvent",0},
531 { "_wxGauge","_class_wxGauge",0},
532 { "_class_wxCheckListBox","_wxCheckListBox",0},
533 { "_class_wxGridEvent","_wxGridEvent",0},
534 { "_class_wxCommandEvent","_wxCommandEvent",0},
535 { "_class_wxClientDC","_wxClientDC",0},
536 { "_class_wxSizeEvent","_wxSizeEvent",0},
537 { "_class_wxListCtrl","_wxListCtrl",0},
538 { "_class_wxPyDividedShape","_wxPyDividedShape",0},
539 { "_wxPyEllipseShape","_class_wxPyEllipseShape",0},
540 { "_class_wxGridCell","_wxGridCell",0},
541 { "_class_wxSize","_wxSize",0},
542 { "_class_wxBitmap","_wxBitmap",0},
543 { "_class_wxMemoryDC","_wxMemoryDC",0},
544 { "_wxMenuBar","_class_wxMenuBar",0},
545 { "_wxTreeEvent","_class_wxTreeEvent",0},
546 { "_wxDirDialog","_class_wxDirDialog",0},
547 { "_wxPyShapeEvtHandler","_class_wxPyShapeEvtHandler",0},
548 { "_wxEvtHandler","_class_wxEvtHandler",0},
549 { "_wxMenuItem","_class_wxMenuItem",0},
550 { "_class_wxScrollBar","_wxScrollBar",0},
551 { "_class_wxColourDialog","_wxColourDialog",0},
552 { "_class_wxPrintData","_wxPrintData",0},
553 { "_wxDash","_unsigned_long",0},
554 { "_wxDash","_long",0},
555 { "_wxPyRectangleShape","_class_wxPyRectangleShape",0},
556 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
557 { "_class_wxTextEntryDialog","_wxTextEntryDialog",0},
558 { "_wxKeyEvent","_class_wxKeyEvent",0},
559 { "_wxMoveEvent","_class_wxMoveEvent",0},
560 { "_wxOGLConstraint","_class_wxOGLConstraint",0},
561 { "_wxColourData","_class_wxColourData",0},
562 { "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
563 { "_class_wxPalette","_wxPalette",0},
564 { "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0},
565 { "_class_wxEraseEvent","_wxEraseEvent",0},
566 { "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
567 { "_class_wxPyTextShape","_wxPyTextShape",0},
568 { "_class_wxFontDialog","_wxFontDialog",0},
569 { "_wxWindow","_class_wxWindow",0},
570 { "_class_wxFrame","_wxFrame",0},
571 { "_class_wxDiagram","_wxDiagram",0},
572{0,0,0}};
573
574static PyObject *SWIG_globals;
575#ifdef __cplusplus
576extern "C"
577#endif
578SWIGEXPORT(void) initoglc() {
579 PyObject *m, *d;
580 SWIG_globals = SWIG_newvarlink();
581 m = Py_InitModule("oglc", oglcMethods);
582 d = PyModule_GetDict(m);
583 PyDict_SetItemString(d,"KEY_SHIFT", PyInt_FromLong((long) KEY_SHIFT));
584 PyDict_SetItemString(d,"KEY_CTRL", PyInt_FromLong((long) KEY_CTRL));
585 PyDict_SetItemString(d,"ARROW_NONE", PyInt_FromLong((long) ARROW_NONE));
586 PyDict_SetItemString(d,"ARROW_END", PyInt_FromLong((long) ARROW_END));
587 PyDict_SetItemString(d,"ARROW_BOTH", PyInt_FromLong((long) ARROW_BOTH));
588 PyDict_SetItemString(d,"ARROW_MIDDLE", PyInt_FromLong((long) ARROW_MIDDLE));
589 PyDict_SetItemString(d,"ARROW_START", PyInt_FromLong((long) ARROW_START));
590 PyDict_SetItemString(d,"ARROW_HOLLOW_CIRCLE", PyInt_FromLong((long) ARROW_HOLLOW_CIRCLE));
591 PyDict_SetItemString(d,"ARROW_FILLED_CIRCLE", PyInt_FromLong((long) ARROW_FILLED_CIRCLE));
592 PyDict_SetItemString(d,"ARROW_ARROW", PyInt_FromLong((long) ARROW_ARROW));
593 PyDict_SetItemString(d,"ARROW_SINGLE_OBLIQUE", PyInt_FromLong((long) ARROW_SINGLE_OBLIQUE));
594 PyDict_SetItemString(d,"ARROW_DOUBLE_OBLIQUE", PyInt_FromLong((long) ARROW_DOUBLE_OBLIQUE));
595 PyDict_SetItemString(d,"ARROW_METAFILE", PyInt_FromLong((long) ARROW_METAFILE));
596 PyDict_SetItemString(d,"ARROW_POSITION_END", PyInt_FromLong((long) ARROW_POSITION_END));
597 PyDict_SetItemString(d,"ARROW_POSITION_START", PyInt_FromLong((long) ARROW_POSITION_START));
598 PyDict_SetItemString(d,"CONTROL_POINT_VERTICAL", PyInt_FromLong((long) CONTROL_POINT_VERTICAL));
599 PyDict_SetItemString(d,"CONTROL_POINT_HORIZONTAL", PyInt_FromLong((long) CONTROL_POINT_HORIZONTAL));
600 PyDict_SetItemString(d,"CONTROL_POINT_DIAGONAL", PyInt_FromLong((long) CONTROL_POINT_DIAGONAL));
601 PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_TO", PyInt_FromLong((long) CONTROL_POINT_ENDPOINT_TO));
602 PyDict_SetItemString(d,"CONTROL_POINT_ENDPOINT_FROM", PyInt_FromLong((long) CONTROL_POINT_ENDPOINT_FROM));
603 PyDict_SetItemString(d,"CONTROL_POINT_LINE", PyInt_FromLong((long) CONTROL_POINT_LINE));
604 PyDict_SetItemString(d,"FORMAT_NONE", PyInt_FromLong((long) FORMAT_NONE));
605 PyDict_SetItemString(d,"FORMAT_CENTRE_HORIZ", PyInt_FromLong((long) FORMAT_CENTRE_HORIZ));
606 PyDict_SetItemString(d,"FORMAT_CENTRE_VERT", PyInt_FromLong((long) FORMAT_CENTRE_VERT));
607 PyDict_SetItemString(d,"FORMAT_SIZE_TO_CONTENTS", PyInt_FromLong((long) FORMAT_SIZE_TO_CONTENTS));
608 PyDict_SetItemString(d,"LINE_ALIGNMENT_HORIZ", PyInt_FromLong((long) LINE_ALIGNMENT_HORIZ));
609 PyDict_SetItemString(d,"LINE_ALIGNMENT_VERT", PyInt_FromLong((long) LINE_ALIGNMENT_VERT));
610 PyDict_SetItemString(d,"LINE_ALIGNMENT_TO_NEXT_HANDLE", PyInt_FromLong((long) LINE_ALIGNMENT_TO_NEXT_HANDLE));
611 PyDict_SetItemString(d,"LINE_ALIGNMENT_NONE", PyInt_FromLong((long) LINE_ALIGNMENT_NONE));
612 PyDict_SetItemString(d,"SHADOW_NONE", PyInt_FromLong((long) SHADOW_NONE));
613 PyDict_SetItemString(d,"SHADOW_LEFT", PyInt_FromLong((long) SHADOW_LEFT));
614 PyDict_SetItemString(d,"SHADOW_RIGHT", PyInt_FromLong((long) SHADOW_RIGHT));
615 PyDict_SetItemString(d,"OP_CLICK_LEFT", PyInt_FromLong((long) OP_CLICK_LEFT));
616 PyDict_SetItemString(d,"OP_CLICK_RIGHT", PyInt_FromLong((long) OP_CLICK_RIGHT));
617 PyDict_SetItemString(d,"OP_DRAG_LEFT", PyInt_FromLong((long) OP_DRAG_LEFT));
618 PyDict_SetItemString(d,"OP_DRAG_RIGHT", PyInt_FromLong((long) OP_DRAG_RIGHT));
619 PyDict_SetItemString(d,"OP_ALL", PyInt_FromLong((long) OP_ALL));
620 PyDict_SetItemString(d,"ATTACHMENT_MODE_NONE", PyInt_FromLong((long) ATTACHMENT_MODE_NONE));
621 PyDict_SetItemString(d,"ATTACHMENT_MODE_EDGE", PyInt_FromLong((long) ATTACHMENT_MODE_EDGE));
622 PyDict_SetItemString(d,"ATTACHMENT_MODE_BRANCHING", PyInt_FromLong((long) ATTACHMENT_MODE_BRANCHING));
623 PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_NORMAL", PyInt_FromLong((long) BRANCHING_ATTACHMENT_NORMAL));
624 PyDict_SetItemString(d,"BRANCHING_ATTACHMENT_BLOB", PyInt_FromLong((long) BRANCHING_ATTACHMENT_BLOB));
625 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_VERTICALLY", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_VERTICALLY));
626 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_HORIZONTALLY", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_HORIZONTALLY));
627 PyDict_SetItemString(d,"gyCONSTRAINT_CENTRED_BOTH", PyInt_FromLong((long) gyCONSTRAINT_CENTRED_BOTH));
628 PyDict_SetItemString(d,"gyCONSTRAINT_LEFT_OF", PyInt_FromLong((long) gyCONSTRAINT_LEFT_OF));
629 PyDict_SetItemString(d,"gyCONSTRAINT_RIGHT_OF", PyInt_FromLong((long) gyCONSTRAINT_RIGHT_OF));
630 PyDict_SetItemString(d,"gyCONSTRAINT_ABOVE", PyInt_FromLong((long) gyCONSTRAINT_ABOVE));
631 PyDict_SetItemString(d,"gyCONSTRAINT_BELOW", PyInt_FromLong((long) gyCONSTRAINT_BELOW));
632 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_TOP", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_TOP));
633 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_BOTTOM", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_BOTTOM));
634 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_LEFT", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_LEFT));
635 PyDict_SetItemString(d,"gyCONSTRAINT_ALIGNED_RIGHT", PyInt_FromLong((long) gyCONSTRAINT_ALIGNED_RIGHT));
636 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_TOP", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_TOP));
637 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_BOTTOM", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_BOTTOM));
638 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_LEFT", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_LEFT));
639 PyDict_SetItemString(d,"gyCONSTRAINT_MIDALIGNED_RIGHT", PyInt_FromLong((long) gyCONSTRAINT_MIDALIGNED_RIGHT));
640 PyDict_SetItemString(d,"DIVISION_SIDE_NONE", PyInt_FromLong((long) DIVISION_SIDE_NONE));
641 PyDict_SetItemString(d,"DIVISION_SIDE_LEFT", PyInt_FromLong((long) DIVISION_SIDE_LEFT));
642 PyDict_SetItemString(d,"DIVISION_SIDE_TOP", PyInt_FromLong((long) DIVISION_SIDE_TOP));
643 PyDict_SetItemString(d,"DIVISION_SIDE_RIGHT", PyInt_FromLong((long) DIVISION_SIDE_RIGHT));
644 PyDict_SetItemString(d,"DIVISION_SIDE_BOTTOM", PyInt_FromLong((long) DIVISION_SIDE_BOTTOM));
645
646
647 initoglbasicc();
648 initoglshapesc();
649 initoglshapes2c();
650 initoglcanvasc();
651
652
653 wxClassInfo::CleanUpClasses();
654 wxClassInfo::InitializeClasses();
655
656{
657 int i;
658 for (i = 0; _swig_mapping[i].n1; i++)
659 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
660}
661}