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 //---------------------------------------------------------------------------
15 // Typemaps just for OGL
19 %typemap(out) wxPyShape* { $result = wxPyMake_wxShapeEvtHandler($1); }
20 %typemap(out) wxPyShapeEvtHandler* { $result = wxPyMake_wxShapeEvtHandler($1); }
21 %typemap(out) wxPyDivisionShape* { $result = wxPyMake_wxShapeEvtHandler($1); }
23 %typemap(out) wxPyShapeCanvas* { $result = wxPyMake_wxObject($1); }
24 %typemap(out) wxDiagram* { $result = wxPyMake_wxObject($1); }
25 %typemap(out) wxOGLConstraint* { $result = wxPyMake_wxObject($1); }
26 %typemap(out) wxPseudoMetaFile* { $result = wxPyMake_wxObject($1); }
27 %typemap(out) wxArrowHead* { $result = wxPyMake_wxObject($1); }
32 // wxOGL doesn't use a ref-counted copy of pens and brushes, so we'll
33 // use the pen and brush lists to simulate that...
38 if ($input == Py_None) { temp = NULL; }
39 else if (! wxPyConvertSwigPtr($input, (void **) &temp, wxT("wxPen"))) {
40 PyErr_SetString(PyExc_TypeError, "Type error, expected wxPen.");
45 $1 = wxThePenList->FindOrCreatePen(temp->GetColour(),
52 %typemap(in) wxBrush* {
55 if ($input == Py_None) { temp = NULL; }
56 else if (! wxPyConvertSwigPtr($input, (void **) &temp, wxT("wxBrush"))) {
57 PyErr_SetString(PyExc_TypeError, "Type error, expected wxBrush.");
62 $1 = wxTheBrushList->FindOrCreateBrush(temp->GetColour(), temp->GetStyle());
68 %typemap(in) wxFont* {
71 if ($input == Py_None) { temp = NULL; }
72 else if (! wxPyConvertSwigPtr($input, (void **) &temp, wxT("wxFont"))) {
73 PyErr_SetString(PyExc_TypeError, "Type error, expected wxFont.");
78 $1 = wxTheFontList->FindOrCreateFont(temp->GetPointSize(),
82 temp->GetUnderlined(),
90 //---------------------------------------------------------------------------
91 //---------------------------------------------------------------------------