1999-08-24 07:15:52 +00:00
/*
2000-10-30 21:08:42 +00:00
* FILE : contrib / glcanvas / msw / glcanvas . cpp
1999-08-24 07:15:52 +00:00
*
* This file was automatically generated by :
* Simplified Wrapper and Interface Generator ( SWIG )
2000-11-21 03:44:14 +00:00
* Version 1.1 ( Build 883 )
1999-08-24 07:15:52 +00:00
*
* Portions Copyright ( c ) 1995 - 1998
* The University of Utah and The Regents of the University of California .
* Permission is granted to distribute this file in any manner provided
* this notice remains intact .
*
* Do not make changes to this file - - changes will be lost !
*
*/
# define SWIGCODE
/* Implementation : PYTHON */
# define SWIGPYTHON
# include <string.h>
# include <stdlib.h>
/* Definitions for Windows/Unix exporting */
# if defined(__WIN32__)
# if defined(_MSC_VER)
# define SWIGEXPORT(a) __declspec(dllexport) a
# else
# if defined(__BORLANDC__)
2000-10-30 21:08:42 +00:00
# define SWIGEXPORT(a) a _export
1999-08-24 07:15:52 +00:00
# else
2000-10-30 21:08:42 +00:00
# define SWIGEXPORT(a) a
1999-08-24 07:15:52 +00:00
# endif
# endif
# else
2000-10-30 21:08:42 +00:00
# define SWIGEXPORT(a) a
1999-08-24 07:15:52 +00:00
# endif
2000-10-30 21:08:42 +00:00
# include "Python.h"
1999-08-24 07:15:52 +00:00
# ifdef __cplusplus
extern " C " {
# endif
2000-11-21 03:44:14 +00:00
1999-08-24 07:15:52 +00:00
extern void SWIG_MakePtr ( char * , void * , char * ) ;
extern void SWIG_RegisterMapping ( char * , char * , void * ( * ) ( void * ) ) ;
extern char * SWIG_GetPtr ( char * , void * * , char * ) ;
extern char * SWIG_GetPtrObj ( PyObject * , void * * , char * ) ;
extern void SWIG_addvarlink ( PyObject * , char * , PyObject * ( * ) ( void ) , int ( * ) ( PyObject * ) ) ;
extern PyObject * SWIG_newvarlink ( void ) ;
# ifdef __cplusplus
}
# endif
# define SWIG_init initglcanvasc
# define SWIG_name "glcanvasc"
2000-12-22 00:06:04 +00:00
# include "export.h"
2001-10-16 19:05:03 +00:00
# ifdef __WXMSW__
2001-03-26 21:31:04 +00:00
# include "myglcanvas.h"
2001-10-16 19:05:03 +00:00
# else
# include <wx/glcanvas.h>
# endif
1999-08-24 07:15:52 +00:00
static PyObject * t_output_helper ( PyObject * target , PyObject * o ) {
PyObject * o2 ;
PyObject * o3 ;
2001-03-26 21:31:04 +00:00
if ( ! target ) {
1999-08-24 07:15:52 +00:00
target = o ;
2001-03-26 21:31:04 +00:00
} else if ( target = = Py_None ) {
1999-08-24 07:15:52 +00:00
Py_DECREF ( Py_None ) ;
target = o ;
2001-03-26 21:31:04 +00:00
} else {
1999-08-24 07:15:52 +00:00
if ( ! PyTuple_Check ( target ) ) {
o2 = target ;
target = PyTuple_New ( 1 ) ;
PyTuple_SetItem ( target , 0 , o2 ) ;
}
2001-03-26 21:31:04 +00:00
o3 = PyTuple_New ( 1 ) ;
PyTuple_SetItem ( o3 , 0 , o ) ;
1999-08-24 07:15:52 +00:00
o2 = target ;
2001-03-26 21:31:04 +00:00
target = PySequence_Concat ( o2 , o3 ) ;
Py_DECREF ( o2 ) ;
1999-08-24 07:15:52 +00:00
Py_DECREF ( o3 ) ;
}
return target ;
}
2002-03-21 05:50:09 +00:00
// Put some wx default wxChar* values into wxStrings.
static const wxString wxPyGLCanvasNameStr ( wxT ( " GLCanvas " ) ) ;
static const wxString wxPyEmptyString ( wxT ( " " ) ) ;
1999-12-24 18:44:29 +00:00
# ifdef __cplusplus
extern " C " {
# endif
2001-05-17 22:47:09 +00:00
static void * SwigwxGLContextTowxObject ( void * ptr ) {
wxGLContext * src ;
wxObject * dest ;
src = ( wxGLContext * ) ptr ;
dest = ( wxObject * ) src ;
return ( void * ) dest ;
}
1999-08-24 07:15:52 +00:00
# define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2))
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_new_wxGLContext ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _result ;
bool _arg0 ;
wxGLCanvas * _arg1 ;
wxPalette * _arg2 = ( wxPalette * ) & wxNullPalette ;
int tempbool0 ;
PyObject * _argo1 = 0 ;
PyObject * _argo2 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " isRGB " , " win " , " palette " , NULL } ;
1999-08-24 07:15:52 +00:00
char _ptemp [ 128 ] ;
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " iO|O:new_wxGLContext " , _kwnames , & tempbool0 , & _argo1 , & _argo2 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
_arg0 = ( bool ) tempbool0 ;
if ( _argo1 ) {
if ( _argo1 = = Py_None ) { _arg1 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo1 , ( void * * ) & _arg1 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
if ( _argo2 ) {
if ( _argo2 = = Py_None ) { _arg2 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo2 , ( void * * ) & _arg2 , " _wxPalette_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
_result = ( wxGLContext * ) new_wxGLContext ( _arg0 , _arg1 , * _arg2 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} if ( _result ) {
SWIG_MakePtr ( _ptemp , ( char * ) _result , " _wxGLContext_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
} else {
Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
}
return _resultobj ;
}
# define delete_wxGLContext(_swigobj) (delete _swigobj)
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_delete_wxGLContext ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:delete_wxGLContext " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
delete_wxGLContext ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLContext_SetCurrent ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLContext_SetCurrent " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLContext_SetCurrent ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLContext_SetColour ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _arg0 ;
char * _arg1 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , " colour " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " Os:wxGLContext_SetColour " , _kwnames , & _argo0 , & _arg1 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLContext_SetColour ( _arg0 , _arg1 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLContext_SwapBuffers ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLContext_SwapBuffers " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLContext_SwapBuffers ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLContext_GetWindow ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxWindow * _result ;
wxGLContext * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLContext_GetWindow " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
_result = ( wxWindow * ) wxGLContext_GetWindow ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-05-17 22:47:09 +00:00
} { _resultobj = wxPyMake_wxObject ( _result ) ; }
1999-08-24 07:15:52 +00:00
return _resultobj ;
}
static void * SwigwxGLCanvasTowxWindow ( void * ptr ) {
wxGLCanvas * src ;
wxWindow * dest ;
src = ( wxGLCanvas * ) ptr ;
dest = ( wxWindow * ) src ;
return ( void * ) dest ;
}
static void * SwigwxGLCanvasTowxEvtHandler ( void * ptr ) {
wxGLCanvas * src ;
wxEvtHandler * dest ;
src = ( wxGLCanvas * ) ptr ;
dest = ( wxEvtHandler * ) src ;
return ( void * ) dest ;
}
2001-05-17 22:47:09 +00:00
static void * SwigwxGLCanvasTowxObject ( void * ptr ) {
wxGLCanvas * src ;
wxObject * dest ;
src = ( wxGLCanvas * ) ptr ;
dest = ( wxObject * ) src ;
return ( void * ) dest ;
}
1999-08-24 07:15:52 +00:00
# define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_new_wxGLCanvas ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLCanvas * _result ;
wxWindow * _arg0 ;
wxWindowID _arg1 = ( wxWindowID ) - 1 ;
2000-12-22 00:06:04 +00:00
wxPoint * _arg2 = ( wxPoint * ) & wxDefaultPosition ;
wxSize * _arg3 = ( wxSize * ) & wxDefaultSize ;
1999-08-24 07:15:52 +00:00
long _arg4 = ( long ) 0 ;
2002-03-21 05:50:09 +00:00
wxString * _arg5 = ( wxString * ) & wxPyGLCanvasNameStr ;
2000-10-30 21:08:42 +00:00
int * _arg6 = ( int * ) NULL ;
1999-08-24 07:15:52 +00:00
wxPalette * _arg7 = ( wxPalette * ) & wxNullPalette ;
PyObject * _argo0 = 0 ;
1999-12-24 18:44:29 +00:00
wxPoint temp ;
PyObject * _obj2 = 0 ;
wxSize temp0 ;
PyObject * _obj3 = 0 ;
2002-03-21 05:50:09 +00:00
PyObject * _obj5 = 0 ;
2000-10-30 21:08:42 +00:00
int * temp1 ;
PyObject * _obj6 = 0 ;
1999-08-24 07:15:52 +00:00
PyObject * _argo7 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " parent " , " id " , " pos " , " size " , " style " , " name " , " attribList " , " palette " , NULL } ;
1999-08-24 07:15:52 +00:00
char _ptemp [ 128 ] ;
self = self ;
2002-03-21 05:50:09 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O|iOOlOOO:new_wxGLCanvas " , _kwnames , & _argo0 , & _arg1 , & _obj2 , & _obj3 , & _arg4 , & _obj5 , & _obj6 , & _argo7 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxWindow_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p. " ) ;
return NULL ;
}
}
1999-12-24 18:44:29 +00:00
if ( _obj2 )
{
_arg2 = & temp ;
if ( ! wxPoint_helper ( _obj2 , & _arg2 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
1999-12-24 18:44:29 +00:00
}
if ( _obj3 )
{
_arg3 = & temp0 ;
if ( ! wxSize_helper ( _obj3 , & _arg3 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
2002-03-21 05:50:09 +00:00
}
if ( _obj5 )
{
_arg5 = wxString_in_helper ( _obj5 ) ;
if ( _arg5 = = NULL )
return NULL ;
1999-12-24 18:44:29 +00:00
}
2000-10-30 21:08:42 +00:00
if ( _obj6 )
{
int i ;
if ( PySequence_Check ( _obj6 ) ) {
int size = PyObject_Length ( _obj6 ) ;
temp1 = new int [ size + 1 ] ; // (int*)malloc((size + 1) * sizeof(int));
for ( i = 0 ; i < size ; i + + ) {
temp1 [ i ] = PyInt_AsLong ( PySequence_GetItem ( _obj6 , i ) ) ;
1999-08-24 07:15:52 +00:00
}
2000-10-30 21:08:42 +00:00
temp1 [ size ] = 0 ;
_arg6 = temp1 ;
1999-08-24 07:15:52 +00:00
}
2000-10-30 21:08:42 +00:00
}
1999-08-24 07:15:52 +00:00
if ( _argo7 ) {
if ( _argo7 = = Py_None ) { _arg7 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo7 , ( void * * ) & _arg7 , " _wxPalette_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-21 05:50:09 +00:00
_result = ( wxGLCanvas * ) new_wxGLCanvas ( _arg0 , _arg1 , * _arg2 , * _arg3 , _arg4 , * _arg5 , _arg6 , * _arg7 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} if ( _result ) {
SWIG_MakePtr ( _ptemp , ( char * ) _result , " _wxGLCanvas_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
} else {
Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
}
2002-03-21 05:50:09 +00:00
{
if ( _obj5 )
delete _arg5 ;
}
2000-10-30 21:08:42 +00:00
{
delete [ ] _arg6 ;
}
1999-08-24 07:15:52 +00:00
return _resultobj ;
}
2001-10-12 23:26:38 +00:00
# define new_wxGLCanvasWithContext(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
static PyObject * _wrap_new_wxGLCanvasWithContext ( PyObject * self , PyObject * args , PyObject * kwargs ) {
PyObject * _resultobj ;
wxGLCanvas * _result ;
wxWindow * _arg0 ;
wxGLContext * _arg1 = ( wxGLContext * ) NULL ;
wxWindowID _arg2 = ( wxWindowID ) - 1 ;
wxPoint * _arg3 = ( wxPoint * ) & wxDefaultPosition ;
wxSize * _arg4 = ( wxSize * ) & wxDefaultSize ;
long _arg5 = ( long ) 0 ;
2002-03-21 05:50:09 +00:00
wxString * _arg6 = ( wxString * ) & wxPyGLCanvasNameStr ;
2001-10-12 23:26:38 +00:00
int * _arg7 = ( int * ) NULL ;
wxPalette * _arg8 = ( wxPalette * ) & wxNullPalette ;
PyObject * _argo0 = 0 ;
PyObject * _argo1 = 0 ;
wxPoint temp ;
PyObject * _obj3 = 0 ;
wxSize temp0 ;
PyObject * _obj4 = 0 ;
2002-03-21 05:50:09 +00:00
PyObject * _obj6 = 0 ;
2001-10-12 23:26:38 +00:00
int * temp1 ;
PyObject * _obj7 = 0 ;
PyObject * _argo8 = 0 ;
char * _kwnames [ ] = { " parent " , " shared " , " id " , " pos " , " size " , " style " , " name " , " attribList " , " palette " , NULL } ;
char _ptemp [ 128 ] ;
self = self ;
2002-03-21 05:50:09 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O|OiOOlOOO:new_wxGLCanvasWithContext " , _kwnames , & _argo0 , & _argo1 , & _arg2 , & _obj3 , & _obj4 , & _arg5 , & _obj6 , & _obj7 , & _argo8 ) )
2001-10-12 23:26:38 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxWindow_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of new_wxGLCanvasWithContext. Expected _wxWindow_p. " ) ;
return NULL ;
}
}
if ( _argo1 ) {
if ( _argo1 = = Py_None ) { _arg1 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo1 , ( void * * ) & _arg1 , " _wxGLContext_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 2 of new_wxGLCanvasWithContext. Expected _wxGLContext_p. " ) ;
return NULL ;
}
}
if ( _obj3 )
{
_arg3 = & temp ;
if ( ! wxPoint_helper ( _obj3 , & _arg3 ) )
return NULL ;
}
if ( _obj4 )
{
_arg4 = & temp0 ;
if ( ! wxSize_helper ( _obj4 , & _arg4 ) )
return NULL ;
2002-03-21 05:50:09 +00:00
}
if ( _obj6 )
{
_arg6 = wxString_in_helper ( _obj6 ) ;
if ( _arg6 = = NULL )
return NULL ;
2001-10-12 23:26:38 +00:00
}
if ( _obj7 )
{
int i ;
if ( PySequence_Check ( _obj7 ) ) {
int size = PyObject_Length ( _obj7 ) ;
temp1 = new int [ size + 1 ] ; // (int*)malloc((size + 1) * sizeof(int));
for ( i = 0 ; i < size ; i + + ) {
temp1 [ i ] = PyInt_AsLong ( PySequence_GetItem ( _obj7 , i ) ) ;
}
temp1 [ size ] = 0 ;
_arg7 = temp1 ;
}
}
if ( _argo8 ) {
if ( _argo8 = = Py_None ) { _arg8 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo8 , ( void * * ) & _arg8 , " _wxPalette_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 9 of new_wxGLCanvasWithContext. Expected _wxPalette_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-21 05:50:09 +00:00
_result = ( wxGLCanvas * ) new_wxGLCanvasWithContext ( _arg0 , _arg1 , _arg2 , * _arg3 , * _arg4 , _arg5 , * _arg6 , _arg7 , * _arg8 ) ;
2001-10-12 23:26:38 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-10-12 23:26:38 +00:00
} if ( _result ) {
SWIG_MakePtr ( _ptemp , ( char * ) _result , " _wxGLCanvas_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
} else {
Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
}
2002-03-21 05:50:09 +00:00
{
if ( _obj6 )
delete _arg6 ;
}
2001-10-12 23:26:38 +00:00
{
delete [ ] _arg7 ;
}
return _resultobj ;
}
1999-08-24 07:15:52 +00:00
# define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLCanvas_SetCurrent ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLCanvas * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLCanvas_SetCurrent " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLCanvas_SetCurrent ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLCanvas_SetColour ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLCanvas * _arg0 ;
char * _arg1 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , " colour " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " Os:wxGLCanvas_SetColour " , _kwnames , & _argo0 , & _arg1 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLCanvas_SetColour ( _arg0 , _arg1 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLCanvas_SwapBuffers ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLCanvas * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLCanvas_SwapBuffers " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLCanvas_SwapBuffers ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext())
1999-09-02 05:31:38 +00:00
static PyObject * _wrap_wxGLCanvas_GetContext ( PyObject * self , PyObject * args , PyObject * kwargs ) {
1999-08-24 07:15:52 +00:00
PyObject * _resultobj ;
wxGLContext * _result ;
wxGLCanvas * _arg0 ;
PyObject * _argo0 = 0 ;
1999-09-02 05:31:38 +00:00
char * _kwnames [ ] = { " self " , NULL } ;
1999-08-24 07:15:52 +00:00
char _ptemp [ 128 ] ;
self = self ;
1999-09-02 05:31:38 +00:00
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLCanvas_GetContext " , _kwnames , & _argo0 ) )
1999-08-24 07:15:52 +00:00
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
_result = ( wxGLContext * ) wxGLCanvas_GetContext ( _arg0 ) ;
1999-08-24 07:15:52 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
1999-08-24 07:15:52 +00:00
} if ( _result ) {
SWIG_MakePtr ( _ptemp , ( char * ) _result , " _wxGLContext_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
} else {
Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
}
return _resultobj ;
}
2001-10-12 23:26:38 +00:00
# define wxGLCanvas_SetupPixelFormat(_swigobj,_swigarg0) (_swigobj->SetupPixelFormat(_swigarg0))
static PyObject * _wrap_wxGLCanvas_SetupPixelFormat ( PyObject * self , PyObject * args , PyObject * kwargs ) {
PyObject * _resultobj ;
wxGLCanvas * _arg0 ;
int * _arg1 = ( int * ) NULL ;
PyObject * _argo0 = 0 ;
int * temp ;
PyObject * _obj1 = 0 ;
char * _kwnames [ ] = { " self " , " attribList " , NULL } ;
self = self ;
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O|O:wxGLCanvas_SetupPixelFormat " , _kwnames , & _argo0 , & _obj1 ) )
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_SetupPixelFormat. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
if ( _obj1 )
{
int i ;
if ( PySequence_Check ( _obj1 ) ) {
int size = PyObject_Length ( _obj1 ) ;
temp = new int [ size + 1 ] ; // (int*)malloc((size + 1) * sizeof(int));
for ( i = 0 ; i < size ; i + + ) {
temp [ i ] = PyInt_AsLong ( PySequence_GetItem ( _obj1 , i ) ) ;
}
temp [ size ] = 0 ;
_arg1 = temp ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLCanvas_SetupPixelFormat ( _arg0 , _arg1 ) ;
2001-10-12 23:26:38 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-10-12 23:26:38 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
{
delete [ ] _arg1 ;
}
return _resultobj ;
}
# define wxGLCanvas_SetupPalette(_swigobj,_swigarg0) (_swigobj->SetupPalette(_swigarg0))
static PyObject * _wrap_wxGLCanvas_SetupPalette ( PyObject * self , PyObject * args , PyObject * kwargs ) {
PyObject * _resultobj ;
wxGLCanvas * _arg0 ;
wxPalette * _arg1 ;
PyObject * _argo0 = 0 ;
PyObject * _argo1 = 0 ;
char * _kwnames [ ] = { " self " , " palette " , NULL } ;
self = self ;
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " OO:wxGLCanvas_SetupPalette " , _kwnames , & _argo0 , & _argo1 ) )
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_SetupPalette. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
if ( _argo1 ) {
if ( _argo1 = = Py_None ) { _arg1 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo1 , ( void * * ) & _arg1 , " _wxPalette_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 2 of wxGLCanvas_SetupPalette. Expected _wxPalette_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
wxGLCanvas_SetupPalette ( _arg0 , * _arg1 ) ;
2001-10-12 23:26:38 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-10-12 23:26:38 +00:00
} Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
return _resultobj ;
}
# define wxGLCanvas_CreateDefaultPalette(_swigobj) (_swigobj->CreateDefaultPalette())
static PyObject * _wrap_wxGLCanvas_CreateDefaultPalette ( PyObject * self , PyObject * args , PyObject * kwargs ) {
PyObject * _resultobj ;
wxPalette * _result ;
wxGLCanvas * _arg0 ;
PyObject * _argo0 = 0 ;
char * _kwnames [ ] = { " self " , NULL } ;
char _ptemp [ 128 ] ;
self = self ;
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLCanvas_CreateDefaultPalette " , _kwnames , & _argo0 ) )
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_CreateDefaultPalette. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
_result = new wxPalette ( wxGLCanvas_CreateDefaultPalette ( _arg0 ) ) ;
2001-10-12 23:26:38 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-10-12 23:26:38 +00:00
} SWIG_MakePtr ( _ptemp , ( void * ) _result , " _wxPalette_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
return _resultobj ;
}
# define wxGLCanvas_GetPalette(_swigobj) (_swigobj->GetPalette())
static PyObject * _wrap_wxGLCanvas_GetPalette ( PyObject * self , PyObject * args , PyObject * kwargs ) {
PyObject * _resultobj ;
wxPalette * _result ;
wxGLCanvas * _arg0 ;
PyObject * _argo0 = 0 ;
char * _kwnames [ ] = { " self " , NULL } ;
char _ptemp [ 128 ] ;
self = self ;
if ( ! PyArg_ParseTupleAndKeywords ( args , kwargs , " O:wxGLCanvas_GetPalette " , _kwnames , & _argo0 ) )
return NULL ;
if ( _argo0 ) {
if ( _argo0 = = Py_None ) { _arg0 = NULL ; }
else if ( SWIG_GetPtrObj ( _argo0 , ( void * * ) & _arg0 , " _wxGLCanvas_p " ) ) {
PyErr_SetString ( PyExc_TypeError , " Type error in argument 1 of wxGLCanvas_GetPalette. Expected _wxGLCanvas_p. " ) ;
return NULL ;
}
}
{
2001-12-19 21:25:11 +00:00
PyThreadState * __tstate = wxPyBeginAllowThreads ( ) ;
2002-03-10 00:29:04 +00:00
_result = ( wxPalette * ) wxGLCanvas_GetPalette ( _arg0 ) ;
2001-10-12 23:26:38 +00:00
2001-12-19 21:25:11 +00:00
wxPyEndAllowThreads ( __tstate ) ;
if ( PyErr_Occurred ( ) ) return NULL ;
2001-10-12 23:26:38 +00:00
} if ( _result ) {
SWIG_MakePtr ( _ptemp , ( char * ) _result , " _wxPalette_p " ) ;
_resultobj = Py_BuildValue ( " s " , _ptemp ) ;
} else {
Py_INCREF ( Py_None ) ;
_resultobj = Py_None ;
}
return _resultobj ;
}
1999-08-24 07:15:52 +00:00
static PyMethodDef glcanvascMethods [ ] = {
2001-10-12 23:26:38 +00:00
{ " wxGLCanvas_GetPalette " , ( PyCFunction ) _wrap_wxGLCanvas_GetPalette , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_CreateDefaultPalette " , ( PyCFunction ) _wrap_wxGLCanvas_CreateDefaultPalette , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_SetupPalette " , ( PyCFunction ) _wrap_wxGLCanvas_SetupPalette , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_SetupPixelFormat " , ( PyCFunction ) _wrap_wxGLCanvas_SetupPixelFormat , METH_VARARGS | METH_KEYWORDS } ,
1999-09-02 05:31:38 +00:00
{ " wxGLCanvas_GetContext " , ( PyCFunction ) _wrap_wxGLCanvas_GetContext , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_SwapBuffers " , ( PyCFunction ) _wrap_wxGLCanvas_SwapBuffers , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_SetColour " , ( PyCFunction ) _wrap_wxGLCanvas_SetColour , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLCanvas_SetCurrent " , ( PyCFunction ) _wrap_wxGLCanvas_SetCurrent , METH_VARARGS | METH_KEYWORDS } ,
2001-10-12 23:26:38 +00:00
{ " new_wxGLCanvasWithContext " , ( PyCFunction ) _wrap_new_wxGLCanvasWithContext , METH_VARARGS | METH_KEYWORDS } ,
1999-09-02 05:31:38 +00:00
{ " new_wxGLCanvas " , ( PyCFunction ) _wrap_new_wxGLCanvas , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLContext_GetWindow " , ( PyCFunction ) _wrap_wxGLContext_GetWindow , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLContext_SwapBuffers " , ( PyCFunction ) _wrap_wxGLContext_SwapBuffers , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLContext_SetColour " , ( PyCFunction ) _wrap_wxGLContext_SetColour , METH_VARARGS | METH_KEYWORDS } ,
{ " wxGLContext_SetCurrent " , ( PyCFunction ) _wrap_wxGLContext_SetCurrent , METH_VARARGS | METH_KEYWORDS } ,
{ " delete_wxGLContext " , ( PyCFunction ) _wrap_delete_wxGLContext , METH_VARARGS | METH_KEYWORDS } ,
{ " new_wxGLContext " , ( PyCFunction ) _wrap_new_wxGLContext , METH_VARARGS | METH_KEYWORDS } ,
1999-08-24 07:15:52 +00:00
{ NULL , NULL }
} ;
# ifdef __cplusplus
}
# endif
/*
* This table is used by the pointer type - checker
*/
static struct { char * n1 ; char * n2 ; void * ( * pcnv ) ( void * ) ; } _swig_mapping [ ] = {
{ " _signed_long " , " _long " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _wxPrintQuality " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _wxPrintQuality " , " _int " , 0 } ,
{ " _wxPrintQuality " , " _signed_int " , 0 } ,
{ " _wxPrintQuality " , " _unsigned_int " , 0 } ,
{ " _wxPrintQuality " , " _wxWindowID " , 0 } ,
{ " _wxPrintQuality " , " _uint " , 0 } ,
{ " _wxPrintQuality " , " _EBool " , 0 } ,
{ " _wxPrintQuality " , " _size_t " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _wxPrintQuality " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _byte " , " _unsigned_char " , 0 } ,
{ " _long " , " _unsigned_long " , 0 } ,
{ " _long " , " _signed_long " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _size_t " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _size_t " , " _wxPrintQuality " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _size_t " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _size_t " , " _unsigned_int " , 0 } ,
{ " _size_t " , " _int " , 0 } ,
{ " _size_t " , " _wxWindowID " , 0 } ,
{ " _size_t " , " _uint " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _uint " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _uint " , " _wxPrintQuality " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _uint " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _uint " , " _size_t " , 0 } ,
{ " _uint " , " _unsigned_int " , 0 } ,
{ " _uint " , " _int " , 0 } ,
{ " _uint " , " _wxWindowID " , 0 } ,
2000-07-15 19:51:35 +00:00
{ " _wxChar " , " _char " , 0 } ,
{ " _char " , " _wxChar " , 0 } ,
2001-10-04 17:13:28 +00:00
{ " _struct_wxNativeFontInfo " , " _wxNativeFontInfo " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _EBool " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _EBool " , " _wxPrintQuality " , 0 } ,
{ " _EBool " , " _signed_int " , 0 } ,
{ " _EBool " , " _int " , 0 } ,
{ " _EBool " , " _wxWindowID " , 0 } ,
{ " _unsigned_long " , " _long " , 0 } ,
2001-10-04 17:13:28 +00:00
{ " _wxNativeFontInfo " , " _struct_wxNativeFontInfo " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _signed_int " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _signed_int " , " _wxPrintQuality " , 0 } ,
{ " _signed_int " , " _EBool " , 0 } ,
{ " _signed_int " , " _wxWindowID " , 0 } ,
{ " _signed_int " , " _int " , 0 } ,
2000-11-04 07:37:31 +00:00
{ " _WXTYPE " , " _wxDateTime_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _WXTYPE " , " _short " , 0 } ,
{ " _WXTYPE " , " _signed_short " , 0 } ,
{ " _WXTYPE " , " _unsigned_short " , 0 } ,
2000-11-04 07:37:31 +00:00
{ " _unsigned_short " , " _wxDateTime_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _unsigned_short " , " _WXTYPE " , 0 } ,
{ " _unsigned_short " , " _short " , 0 } ,
2001-05-17 22:47:09 +00:00
{ " _wxObject " , " _wxGLCanvas " , SwigwxGLCanvasTowxObject } ,
{ " _wxObject " , " _wxGLContext " , SwigwxGLContextTowxObject } ,
1999-08-24 07:15:52 +00:00
{ " _signed_short " , " _WXTYPE " , 0 } ,
{ " _signed_short " , " _short " , 0 } ,
{ " _unsigned_char " , " _byte " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _unsigned_int " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _unsigned_int " , " _wxPrintQuality " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _unsigned_int " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _unsigned_int " , " _size_t " , 0 } ,
{ " _unsigned_int " , " _uint " , 0 } ,
{ " _unsigned_int " , " _wxWindowID " , 0 } ,
{ " _unsigned_int " , " _int " , 0 } ,
2000-11-04 07:37:31 +00:00
{ " _short " , " _wxDateTime_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _short " , " _WXTYPE " , 0 } ,
{ " _short " , " _unsigned_short " , 0 } ,
{ " _short " , " _signed_short " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _wxWindowID " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _wxWindowID " , " _wxPrintQuality " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _wxWindowID " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _wxWindowID " , " _size_t " , 0 } ,
{ " _wxWindowID " , " _EBool " , 0 } ,
{ " _wxWindowID " , " _uint " , 0 } ,
{ " _wxWindowID " , " _int " , 0 } ,
{ " _wxWindowID " , " _signed_int " , 0 } ,
{ " _wxWindowID " , " _unsigned_int " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _int " , " _wxCoord " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _int " , " _wxPrintQuality " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _int " , " _time_t " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _int " , " _size_t " , 0 } ,
{ " _int " , " _EBool " , 0 } ,
{ " _int " , " _uint " , 0 } ,
{ " _int " , " _wxWindowID " , 0 } ,
{ " _int " , " _unsigned_int " , 0 } ,
{ " _int " , " _signed_int " , 0 } ,
2000-11-04 07:37:31 +00:00
{ " _wxDateTime_t " , " _unsigned_short " , 0 } ,
{ " _wxDateTime_t " , " _short " , 0 } ,
{ " _wxDateTime_t " , " _WXTYPE " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _time_t " , " _wxCoord " , 0 } ,
{ " _time_t " , " _wxPrintQuality " , 0 } ,
{ " _time_t " , " _unsigned_int " , 0 } ,
{ " _time_t " , " _int " , 0 } ,
{ " _time_t " , " _wxWindowID " , 0 } ,
{ " _time_t " , " _uint " , 0 } ,
{ " _time_t " , " _size_t " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _wxCoord " , " _int " , 0 } ,
{ " _wxCoord " , " _signed_int " , 0 } ,
{ " _wxCoord " , " _unsigned_int " , 0 } ,
{ " _wxCoord " , " _wxWindowID " , 0 } ,
{ " _wxCoord " , " _uint " , 0 } ,
{ " _wxCoord " , " _EBool " , 0 } ,
{ " _wxCoord " , " _size_t " , 0 } ,
2000-10-30 21:08:42 +00:00
{ " _wxCoord " , " _time_t " , 0 } ,
1999-12-24 18:44:29 +00:00
{ " _wxCoord " , " _wxPrintQuality " , 0 } ,
1999-08-24 07:15:52 +00:00
{ " _wxEvtHandler " , " _wxGLCanvas " , SwigwxGLCanvasTowxEvtHandler } ,
{ " _wxWindow " , " _wxGLCanvas " , SwigwxGLCanvasTowxWindow } ,
{ 0 , 0 , 0 } } ;
static PyObject * SWIG_globals ;
# ifdef __cplusplus
extern " C "
# endif
SWIGEXPORT ( void ) initglcanvasc ( ) {
PyObject * m , * d ;
SWIG_globals = SWIG_newvarlink ( ) ;
m = Py_InitModule ( " glcanvasc " , glcanvascMethods ) ;
d = PyModule_GetDict ( m ) ;
2001-11-20 02:04:03 +00:00
PyDict_SetItemString ( d , " WX_GL_RGBA " , PyInt_FromLong ( ( long ) WX_GL_RGBA ) ) ;
PyDict_SetItemString ( d , " WX_GL_BUFFER_SIZE " , PyInt_FromLong ( ( long ) WX_GL_BUFFER_SIZE ) ) ;
PyDict_SetItemString ( d , " WX_GL_LEVEL " , PyInt_FromLong ( ( long ) WX_GL_LEVEL ) ) ;
PyDict_SetItemString ( d , " WX_GL_DOUBLEBUFFER " , PyInt_FromLong ( ( long ) WX_GL_DOUBLEBUFFER ) ) ;
PyDict_SetItemString ( d , " WX_GL_STEREO " , PyInt_FromLong ( ( long ) WX_GL_STEREO ) ) ;
PyDict_SetItemString ( d , " WX_GL_AUX_BUFFERS " , PyInt_FromLong ( ( long ) WX_GL_AUX_BUFFERS ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_RED " , PyInt_FromLong ( ( long ) WX_GL_MIN_RED ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_GREEN " , PyInt_FromLong ( ( long ) WX_GL_MIN_GREEN ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_BLUE " , PyInt_FromLong ( ( long ) WX_GL_MIN_BLUE ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_ALPHA " , PyInt_FromLong ( ( long ) WX_GL_MIN_ALPHA ) ) ;
PyDict_SetItemString ( d , " WX_GL_DEPTH_SIZE " , PyInt_FromLong ( ( long ) WX_GL_DEPTH_SIZE ) ) ;
PyDict_SetItemString ( d , " WX_GL_STENCIL_SIZE " , PyInt_FromLong ( ( long ) WX_GL_STENCIL_SIZE ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_ACCUM_RED " , PyInt_FromLong ( ( long ) WX_GL_MIN_ACCUM_RED ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_ACCUM_GREEN " , PyInt_FromLong ( ( long ) WX_GL_MIN_ACCUM_GREEN ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_ACCUM_BLUE " , PyInt_FromLong ( ( long ) WX_GL_MIN_ACCUM_BLUE ) ) ;
PyDict_SetItemString ( d , " WX_GL_MIN_ACCUM_ALPHA " , PyInt_FromLong ( ( long ) WX_GL_MIN_ACCUM_ALPHA ) ) ;
1999-08-24 07:15:52 +00:00
2000-12-22 22:32:26 +00:00
wxClassInfo : : CleanUpClasses ( ) ;
wxClassInfo : : InitializeClasses ( ) ;
1999-08-24 07:15:52 +00:00
{
int i ;
for ( i = 0 ; _swig_mapping [ i ] . n1 ; i + + )
SWIG_RegisterMapping ( _swig_mapping [ i ] . n1 , _swig_mapping [ i ] . n2 , _swig_mapping [ i ] . pcnv ) ;
}
}