/////////////////////////////////////////////////////////////////////////////
-%module glcanvas
+%define DOCSTRING
+"`GLCanvas` provides an OpenGL Context on a `wx.Window`."
+%enddef
+
+%module(package="wx", docstring=DOCSTRING) glcanvas
%{
#include "wx/wxPython/wxPython.h"
#include <wx/glcanvas.h>
- static const wxString wxPyGLCanvasNameStr(wxT("GLCanvas"));
- static const wxString wxPyEmptyString(wxT(""));
%}
//---------------------------------------------------------------------------
%import core.i
-%pythoncode { wx = core }
+%pythoncode { wx = _core }
+%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
+
+
+MAKE_CONST_WXSTRING2(GLCanvasNameStr, wxT("GLCanvas"));
+MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
+
%include _glcanvas_rename.i
//---------------------------------------------------------------------------
+MustHaveApp(wxGLContext);
+
class wxGLContext : public wxObject {
public:
#ifndef __WXMAC__
+MustHaveApp(wxGLCanvas);
+
class wxGLCanvas : public wxWindow {
public:
- %addtofunc wxGLCanvas "self._setOORInfo(self)"
+ %pythonAppend wxGLCanvas "self._setOORInfo(self)"
wxGLCanvas(wxWindow *parent, wxWindowID id = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
int *attribList = NULL,
const wxPalette& palette = wxNullPalette);
- %addtofunc wxGLCanvas "val._setOORInfo(val)"
- %name(wxGLCanvasWithContext)
+ %pythonAppend wxGLCanvas "val._setOORInfo(val)"
+ %name(GLCanvasWithContext)
wxGLCanvas( wxWindow *parent,
const wxGLContext *shared = NULL,
wxWindowID id = -1,