1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions for the wxWindows Object Graphics Library
7 // Created: 27-Aug-1999
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
14 //---------------------------------------------------------------------------
17 class wxOGLConstraint;
22 class wxCompositeShape;
24 class wxDivisionShape;
28 class wxRectangleShape;
29 class wxPseudoMetaFile;
32 class wxShapeEvtHandler;
36 class wxPyOGLConstraint;
37 class wxPyBitmapShape;
40 class wxPyCircleShape;
41 class wxPyCompositeShape;
42 class wxPyDividedShape;
43 class wxPyDivisionShape;
44 class wxPyEllipseShape;
46 class wxPyPolygonShape;
47 class wxPyRectangleShape;
48 class wxPyPseudoMetaFile;
50 class wxPyShapeCanvas;
51 class wxPyShapeEvtHandler;
53 class wxPyControlPoint;
56 //---------------------------------------------------------------------------
57 // Typemaps just for OGL
60 // wxOGL doesn't use a ref-counted copy of pens and brushes, so we'll
61 // use the pen and brush lists to simulate that...
64 %typemap(python, in) wxPen* {
67 if ($source == Py_None) { temp = NULL; }
68 else if (SWIG_GetPtrObj($source, (void **) &temp,"_wxPen_p")) {
69 PyErr_SetString(PyExc_TypeError,"Type error, expected _wxPen_p.");
74 $target = wxThePenList->FindOrCreatePen(temp->GetColour(),
81 %typemap(python, in) wxBrush* {
84 if ($source == Py_None) { temp = NULL; }
85 else if (SWIG_GetPtrObj($source, (void **) &temp,"_wxBrush_p")) {
86 PyErr_SetString(PyExc_TypeError,"Type error, expected _wxBrush_p.");
91 $target = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle());
97 %typemap(python, in) wxFont* {
100 if ($source == Py_None) { temp = NULL; }
101 else if (SWIG_GetPtrObj($source, (void **) &temp,"_wxFont_p")) {
102 PyErr_SetString(PyExc_TypeError,"Type error, expected _wxFont_p.");
107 $target = wxTheFontList->FindOrCreateFont(temp->GetPointSize(),
111 temp->GetUnderlined(),
113 temp->GetEncoding());
119 //---------------------------------------------------------------------------
120 //---------------------------------------------------------------------------