I use a tool called SWIG (http://www.swig.org) to help generate the
C++ sources used in the wxPython extension module. However you don't
need to have SWIG unless you want to modify the *.i files. If you do
-you'll want to have version 1.1-883 of SWIG and you'll need to change
-a flag in the setup.py script as described below.
+you'll want to have version 1.1-883 of SWIG and you'll need to apply
+the patches and updates in wxPython/SWIG and rebuild it. Then you'll
+need to change a flag in the setup.py script as described below so the
+wxPython build process will use SWIG if needed.
I use the new Python Distutils tool to build wxPython. It is included
with Python 2.0, but if you want to use Python 1.5.2 or 1.6 then
I use a tool called SWIG (http://www.swig.org) to help generate the
C++ sources used in the wxPython extension module. However you don't
need to have SWIG unless you want to modify the *.i files. If you do
-you'll want to have version 1.1-883 of SWIG and you'll need to change
-a flag in the setup.py script as described below.
+you'll want to have version 1.1-883 of SWIG and you'll need to apply
+the patches and updates in wxPython/SWIG and rebuild it. Then you'll
+need to change a flag in the setup.py script as described below so the
+wxPython build process will use SWIG if needed.
I use the new Python Distutils tool to build wxPython. It is included
with Python 2.0, but if you want to use Python 1.5.2 or 1.6 then
elif [ "$1" = "21" ]; then
PYVER=2.1
shift
+else
+ echo You must specify Python version as first parameter.
+ exit
fi
#ifdef __cplusplus
extern "C" {
#endif
+static void *SwigwxGLContextTowxObject(void *ptr) {
+ wxGLContext *src;
+ wxObject *dest;
+ src = (wxGLContext *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGLContext * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxGLContext_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxGLCanvasTowxObject(void *ptr) {
+ wxGLCanvas *src;
+ wxObject *dest;
+ src = (wxGLCanvas *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
{ "_class_wxSashEvent","_wxSashEvent",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_wxSizerItem","_class_wxSizerItem",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
{ "_wxPrintPreview","_class_wxPrintPreview",0},
{ "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
+ { "_class_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject},
+ { "_class_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject},
+ { "_class_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject},
+ { "_class_wxObject","_wxGLContext",SwigwxGLContextTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
{ "_size_t","_wxCoord",0},
{ "_wxListCtrl","_class_wxListCtrl",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
{ "_wxGLCanvas","_class_wxGLCanvas",0},
+ { "_wxObject","_class_wxGLCanvas",SwigwxGLCanvasTowxObject},
+ { "_wxObject","_wxGLCanvas",SwigwxGLCanvasTowxObject},
+ { "_wxObject","_class_wxGLContext",SwigwxGLContextTowxObject},
+ { "_wxObject","_wxGLContext",SwigwxGLContextTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_class_wxSizerItem","_wxSizerItem",0},
{ "_int","_wxCoord",0},
from utils import *
import wx
-class wxGLContextPtr :
+class wxGLContextPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxGLContext instance at %s>" % (self.this,)
{ "_wxPNMHandler","_class_wxPNMHandler",0},
{ "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0},
{ "_wxLogGui","_class_wxLogGui",0},
- { "_wxPrinterDC","_class_wxPrinterDC",0},
{ "_class_wxPyShapeEvtHandler","_class_wxPyTextShape",SwigwxPyTextShapeTowxPyShapeEvtHandler},
{ "_class_wxPyShapeEvtHandler","_wxPyTextShape",SwigwxPyTextShapeTowxPyShapeEvtHandler},
{ "_class_wxPyShapeEvtHandler","_class_wxPyPolygonShape",SwigwxPyPolygonShapeTowxPyShapeEvtHandler},
{ "_class_wxPySizer","_wxPySizer",0},
{ "_class_wxPyCompositeShape","_wxPyCompositeShape",0},
{ "_wxPyPolygonShape","_class_wxPyPolygonShape",0},
+ { "_class_wxPostScriptDC","_wxPostScriptDC",0},
{ "_wxPanel","_class_wxPanel",0},
{ "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
{ "_wxCheckBox","_class_wxCheckBox",0},
{ "_char","_wxChar",0},
{ "_wxBitmap","_class_wxBitmap",0},
{ "_wxPenList","_class_wxPenList",0},
- { "_wxTaskBarIcon","_class_wxTaskBarIcon",0},
{ "_wxPrintDialog","_class_wxPrintDialog",0},
{ "_wxPyControlPoint","_class_wxPyControlPoint",0},
{ "_wxWindowDC","_class_wxWindowDC",0},
{ "_class_wxTextCtrl","_wxTextCtrl",0},
{ "_class_wxListItemAttr","_wxListItemAttr",0},
{ "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
- { "_wxMetaFileDC","_class_wxMetaFileDC",0},
{ "_class_wxTextDataObject","_wxTextDataObject",0},
{ "_wxMenu","_class_wxMenu",0},
{ "_class_wxMoveEvent","_wxMoveEvent",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_class_wxMenuEvent","_wxMenuEvent",0},
{ "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
- { "_wxJoystick","_class_wxJoystick",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_class_wxPyCircleShape","_wxPyCircleShape",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_signed_short","_short",0},
{ "_wxMemoryDC","_class_wxMemoryDC",0},
{ "_wxPyTextDataObject","_class_wxPyTextDataObject",0},
- { "_class_wxTaskBarIcon","_wxTaskBarIcon",0},
{ "_class_wxPrintDialog","_wxPrintDialog",0},
{ "_wxPyFileSystemHandler","_class_wxPyFileSystemHandler",0},
{ "_class_wxPyControlPoint","_wxPyControlPoint",0},
{ "_wxStatusBar","_class_wxStatusBar",0},
{ "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
{ "_class_wxCursor","_wxCursor",0},
+ { "_wxPostScriptDC","_class_wxPostScriptDC",0},
{ "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0},
{ "_class_wxPyProcess","_wxPyProcess",0},
{ "_class_wxImageHandler","_wxImageHandler",0},
{ "_class_wxLog","_wxLog",0},
{ "_wxTreeItemId","_class_wxTreeItemId",0},
{ "_unsigned_char","_byte",0},
- { "_class_wxMetaFileDC","_wxMetaFileDC",0},
{ "_class_wxMenu","_wxMenu",0},
{ "_wxControl","_class_wxControl",0},
{ "_class_wxListBox","_wxListBox",0},
{ "_class_wxLogGui","_wxLogGui",0},
{ "_class_wxMDIParentFrame","_wxMDIParentFrame",0},
{ "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
- { "_class_wxPrinterDC","_wxPrinterDC",0},
{ "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0},
{ "_class_wxTimeSpan","_wxTimeSpan",0},
{ "_class_wxPyFileSystemHandler","_wxPyFileSystemHandler",0},
{ "_class_wxCheckListBox","_wxCheckListBox",0},
{ "_class_wxBusyInfo","_wxBusyInfo",0},
{ "_class_wxFontList","_wxFontList",0},
- { "_class_wxJoystick","_wxJoystick",0},
{ "_class_wxCommandEvent","_wxCommandEvent",0},
{ "_class_wxClientDC","_wxClientDC",0},
{ "_class_wxSizeEvent","_wxSizeEvent",0},
return (void *) dest;
}
+static void *SwigwxCalendarEventTowxObject(void *ptr) {
+ wxCalendarEvent *src;
+ wxObject *dest;
+ src = (wxCalendarEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCalendarEvent(_swigarg0,_swigarg1) (new wxCalendarEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxCalendarEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCalendarCtrlTowxObject(void *ptr) {
+ wxCalendarCtrl *src;
+ wxObject *dest;
+ src = (wxCalendarCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxCalendarCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxCalendarCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
+ { "_class_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
+ { "_class_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject},
+ { "_class_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
+ { "_wxObject","_wxCalendarCtrl",SwigwxCalendarCtrlTowxObject},
+ { "_wxObject","_class_wxCalendarEvent",SwigwxCalendarEventTowxObject},
+ { "_wxObject","_wxCalendarEvent",SwigwxCalendarEventTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
return _resultobj;
}
+static void *SwigwxClipboardTowxObject(void *ptr) {
+ wxClipboard *src;
+ wxObject *dest;
+ src = (wxClipboard *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxClipboard() (new wxClipboard())
static PyObject *_wrap_new_wxClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_class_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
{ "_class_wxBitmapDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxBitmapDataObject},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject},
+ { "_class_wxObject","_wxClipboard",SwigwxClipboardTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
+ { "_wxObject","_class_wxClipboard",SwigwxClipboardTowxObject},
+ { "_wxObject","_wxClipboard",SwigwxClipboardTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
wxPyTheClipboard = wxTheClipboard;
-
+ wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
+ wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
+ wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
PyDict_SetItemString(d,"wxDataObject_Get", PyInt_FromLong((long) wxDataObject::Get));
PyDict_SetItemString(d,"wxDataObject_Set", PyInt_FromLong((long) wxDataObject::Set));
PyDict_SetItemString(d,"wxDataObject_Both", PyInt_FromLong((long) wxDataObject::Both));
-class wxClipboardPtr :
+class wxClipboardPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
#ifdef __cplusplus
extern "C" {
#endif
+static void *SwigwxColourDataTowxObject(void *ptr) {
+ wxColourData *src;
+ wxObject *dest;
+ src = (wxColourData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxColourData() (new wxColourData())
static PyObject *_wrap_new_wxColourData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxColourDialogTowxObject(void *ptr) {
+ wxColourDialog *src;
+ wxObject *dest;
+ src = (wxColourDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxColourDialog(_swigarg0,_swigarg1) (new wxColourDialog(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxDirDialogTowxObject(void *ptr) {
+ wxDirDialog *src;
+ wxObject *dest;
+ src = (wxDirDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
static PyObject *_wrap_new_wxDirDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxFileDialogTowxObject(void *ptr) {
+ wxFileDialog *src;
+ wxObject *dest;
+ src = (wxFileDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFileDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxFileDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSingleChoiceDialogTowxObject(void *ptr) {
+ wxSingleChoiceDialog *src;
+ wxObject *dest;
+ src = (wxSingleChoiceDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString *message,wxString *caption,int LCOUNT,wxString *choices,long style,wxPoint *pos) {
return new wxSingleChoiceDialog(parent, *message, *caption,
LCOUNT, choices, NULL, style, *pos);
return (void *) dest;
}
+static void *SwigwxTextEntryDialogTowxObject(void *ptr) {
+ wxTextEntryDialog *src;
+ wxObject *dest;
+ src = (wxTextEntryDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxTextEntryDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxTextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxFontDataTowxObject(void *ptr) {
+ wxFontData *src;
+ wxObject *dest;
+ src = (wxFontData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFontData() (new wxFontData())
static PyObject *_wrap_new_wxFontData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxFontDialogTowxObject(void *ptr) {
+ wxFontDialog *src;
+ wxObject *dest;
+ src = (wxFontDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFontDialog(_swigarg0,_swigarg1) (new wxFontDialog(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxFontDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMessageDialogTowxObject(void *ptr) {
+ wxMessageDialog *src;
+ wxObject *dest;
+ src = (wxMessageDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxMessageDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
static PyObject *_wrap_new_wxMessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxProgressDialogTowxObject(void *ptr) {
+ wxProgressDialog *src;
+ wxObject *dest;
+ src = (wxProgressDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxProgressDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
static PyObject *_wrap_new_wxProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
{ "_wxProgressDialog","_class_wxProgressDialog",0},
+ { "_class_wxObject","_class_wxProgressDialog",SwigwxProgressDialogTowxObject},
+ { "_class_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject},
+ { "_class_wxObject","_class_wxMessageDialog",SwigwxMessageDialogTowxObject},
+ { "_class_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject},
+ { "_class_wxObject","_class_wxFontDialog",SwigwxFontDialogTowxObject},
+ { "_class_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject},
+ { "_class_wxObject","_class_wxFontData",SwigwxFontDataTowxObject},
+ { "_class_wxObject","_wxFontData",SwigwxFontDataTowxObject},
+ { "_class_wxObject","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
+ { "_class_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
+ { "_class_wxObject","_class_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
+ { "_class_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
+ { "_class_wxObject","_class_wxFileDialog",SwigwxFileDialogTowxObject},
+ { "_class_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject},
+ { "_class_wxObject","_class_wxDirDialog",SwigwxDirDialogTowxObject},
+ { "_class_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject},
+ { "_class_wxObject","_class_wxColourDialog",SwigwxColourDialogTowxObject},
+ { "_class_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject},
+ { "_class_wxObject","_class_wxColourData",SwigwxColourDataTowxObject},
+ { "_class_wxObject","_wxColourData",SwigwxColourDataTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
+ { "_wxObject","_class_wxProgressDialog",SwigwxProgressDialogTowxObject},
+ { "_wxObject","_wxProgressDialog",SwigwxProgressDialogTowxObject},
+ { "_wxObject","_class_wxMessageDialog",SwigwxMessageDialogTowxObject},
+ { "_wxObject","_wxMessageDialog",SwigwxMessageDialogTowxObject},
+ { "_wxObject","_class_wxFontDialog",SwigwxFontDialogTowxObject},
+ { "_wxObject","_wxFontDialog",SwigwxFontDialogTowxObject},
+ { "_wxObject","_class_wxFontData",SwigwxFontDataTowxObject},
+ { "_wxObject","_wxFontData",SwigwxFontDataTowxObject},
+ { "_wxObject","_class_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
+ { "_wxObject","_wxTextEntryDialog",SwigwxTextEntryDialogTowxObject},
+ { "_wxObject","_class_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
+ { "_wxObject","_wxSingleChoiceDialog",SwigwxSingleChoiceDialogTowxObject},
+ { "_wxObject","_class_wxFileDialog",SwigwxFileDialogTowxObject},
+ { "_wxObject","_wxFileDialog",SwigwxFileDialogTowxObject},
+ { "_wxObject","_class_wxDirDialog",SwigwxDirDialogTowxObject},
+ { "_wxObject","_wxDirDialog",SwigwxDirDialogTowxObject},
+ { "_wxObject","_class_wxColourDialog",SwigwxColourDialogTowxObject},
+ { "_wxObject","_wxColourDialog",SwigwxColourDialogTowxObject},
+ { "_wxObject","_class_wxColourData",SwigwxColourDataTowxObject},
+ { "_wxObject","_wxColourData",SwigwxColourDataTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
from events import *
import wx
-class wxColourDataPtr :
+class wxColourDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxFontDataPtr :
+class wxFontDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return (void *) dest;
}
+static void *SwigwxControlTowxObject(void *ptr) {
+ wxControl *src;
+ wxObject *dest;
+ src = (wxControl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxControl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxControl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxButtonTowxObject(void *ptr) {
+ wxButton *src;
+ wxObject *dest;
+ src = (wxButton *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxButton(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxBitmapButtonTowxObject(void *ptr) {
+ wxBitmapButton *src;
+ wxObject *dest;
+ src = (wxBitmapButton *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxBitmapButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCheckBoxTowxObject(void *ptr) {
+ wxCheckBox *src;
+ wxObject *dest;
+ src = (wxCheckBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxCheckBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxChoiceTowxObject(void *ptr) {
+ wxChoice *src;
+ wxObject *dest;
+ src = (wxChoice *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxChoice(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
static PyObject *_wrap_new_wxChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxComboBoxTowxObject(void *ptr) {
+ wxComboBox *src;
+ wxObject *dest;
+ src = (wxComboBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxComboBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
static PyObject *_wrap_new_wxComboBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxGaugeTowxObject(void *ptr) {
+ wxGauge *src;
+ wxObject *dest;
+ src = (wxGauge *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGauge(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxGauge(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxStaticBoxTowxObject(void *ptr) {
+ wxStaticBox *src;
+ wxObject *dest;
+ src = (wxStaticBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxStaticLineTowxObject(void *ptr) {
+ wxStaticLine *src;
+ wxObject *dest;
+ src = (wxStaticLine *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStaticLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxStaticTextTowxObject(void *ptr) {
+ wxStaticText *src;
+ wxObject *dest;
+ src = (wxStaticText *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxStaticText(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxListBoxTowxObject(void *ptr) {
+ wxListBox *src;
+ wxObject *dest;
+ src = (wxListBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
static PyObject *_wrap_new_wxListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCheckListBoxTowxObject(void *ptr) {
+ wxCheckListBox *src;
+ wxObject *dest;
+ src = (wxCheckListBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxCheckListBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
static PyObject *_wrap_new_wxCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxTextCtrlTowxObject(void *ptr) {
+ wxTextCtrl *src;
+ wxObject *dest;
+ src = (wxTextCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxTextCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxScrollBarTowxObject(void *ptr) {
+ wxScrollBar *src;
+ wxObject *dest;
+ src = (wxScrollBar *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxScrollBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSpinButtonTowxObject(void *ptr) {
+ wxSpinButton *src;
+ wxObject *dest;
+ src = (wxSpinButton *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSpinButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxStaticBitmapTowxObject(void *ptr) {
+ wxStaticBitmap *src;
+ wxObject *dest;
+ src = (wxStaticBitmap *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxStaticBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxRadioBoxTowxObject(void *ptr) {
+ wxRadioBox *src;
+ wxObject *dest;
+ src = (wxRadioBox *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10) (new wxRadioBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10))
static PyObject *_wrap_new_wxRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxRadioButtonTowxObject(void *ptr) {
+ wxRadioButton *src;
+ wxObject *dest;
+ src = (wxRadioButton *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxRadioButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSliderTowxObject(void *ptr) {
+ wxSlider *src;
+ wxObject *dest;
+ src = (wxSlider *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSlider(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
static PyObject *_wrap_new_wxSlider(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSpinCtrlTowxObject(void *ptr) {
+ wxSpinCtrl *src;
+ wxObject *dest;
+ src = (wxSpinCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxSpinCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
static PyObject *_wrap_new_wxSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxToggleButtonTowxObject(void *ptr) {
+ wxToggleButton *src;
+ wxObject *dest;
+ src = (wxToggleButton *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxToggleButton(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7))
static PyObject *_wrap_new_wxToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject},
+ { "_class_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
+ { "_class_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
+ { "_class_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
+ { "_class_wxObject","_class_wxSlider",SwigwxSliderTowxObject},
+ { "_class_wxObject","_wxSlider",SwigwxSliderTowxObject},
+ { "_class_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject},
+ { "_class_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
+ { "_class_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject},
+ { "_class_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
+ { "_class_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
+ { "_class_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
+ { "_class_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject},
+ { "_class_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
+ { "_class_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject},
+ { "_class_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
+ { "_class_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject},
+ { "_class_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
+ { "_class_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject},
+ { "_class_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
+ { "_class_wxObject","_class_wxListBox",SwigwxListBoxTowxObject},
+ { "_class_wxObject","_wxListBox",SwigwxListBoxTowxObject},
+ { "_class_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject},
+ { "_class_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
+ { "_class_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject},
+ { "_class_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
+ { "_class_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject},
+ { "_class_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
+ { "_class_wxObject","_class_wxGauge",SwigwxGaugeTowxObject},
+ { "_class_wxObject","_wxGauge",SwigwxGaugeTowxObject},
+ { "_class_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject},
+ { "_class_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
+ { "_class_wxObject","_class_wxChoice",SwigwxChoiceTowxObject},
+ { "_class_wxObject","_wxChoice",SwigwxChoiceTowxObject},
+ { "_class_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject},
+ { "_class_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
+ { "_class_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject},
+ { "_class_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
+ { "_class_wxObject","_class_wxButton",SwigwxButtonTowxObject},
+ { "_class_wxObject","_wxButton",SwigwxButtonTowxObject},
+ { "_class_wxObject","_class_wxControl",SwigwxControlTowxObject},
+ { "_class_wxObject","_wxControl",SwigwxControlTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxToggleButton",SwigwxToggleButtonTowxObject},
+ { "_wxObject","_wxToggleButton",SwigwxToggleButtonTowxObject},
+ { "_wxObject","_class_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
+ { "_wxObject","_wxSpinCtrl",SwigwxSpinCtrlTowxObject},
+ { "_wxObject","_class_wxSlider",SwigwxSliderTowxObject},
+ { "_wxObject","_wxSlider",SwigwxSliderTowxObject},
+ { "_wxObject","_class_wxRadioButton",SwigwxRadioButtonTowxObject},
+ { "_wxObject","_wxRadioButton",SwigwxRadioButtonTowxObject},
+ { "_wxObject","_class_wxRadioBox",SwigwxRadioBoxTowxObject},
+ { "_wxObject","_wxRadioBox",SwigwxRadioBoxTowxObject},
+ { "_wxObject","_class_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
+ { "_wxObject","_wxStaticBitmap",SwigwxStaticBitmapTowxObject},
+ { "_wxObject","_class_wxSpinButton",SwigwxSpinButtonTowxObject},
+ { "_wxObject","_wxSpinButton",SwigwxSpinButtonTowxObject},
+ { "_wxObject","_class_wxScrollBar",SwigwxScrollBarTowxObject},
+ { "_wxObject","_wxScrollBar",SwigwxScrollBarTowxObject},
+ { "_wxObject","_class_wxTextCtrl",SwigwxTextCtrlTowxObject},
+ { "_wxObject","_wxTextCtrl",SwigwxTextCtrlTowxObject},
+ { "_wxObject","_class_wxCheckListBox",SwigwxCheckListBoxTowxObject},
+ { "_wxObject","_wxCheckListBox",SwigwxCheckListBoxTowxObject},
+ { "_wxObject","_class_wxListBox",SwigwxListBoxTowxObject},
+ { "_wxObject","_wxListBox",SwigwxListBoxTowxObject},
+ { "_wxObject","_class_wxStaticText",SwigwxStaticTextTowxObject},
+ { "_wxObject","_wxStaticText",SwigwxStaticTextTowxObject},
+ { "_wxObject","_class_wxStaticLine",SwigwxStaticLineTowxObject},
+ { "_wxObject","_wxStaticLine",SwigwxStaticLineTowxObject},
+ { "_wxObject","_class_wxStaticBox",SwigwxStaticBoxTowxObject},
+ { "_wxObject","_wxStaticBox",SwigwxStaticBoxTowxObject},
+ { "_wxObject","_class_wxGauge",SwigwxGaugeTowxObject},
+ { "_wxObject","_wxGauge",SwigwxGaugeTowxObject},
+ { "_wxObject","_class_wxComboBox",SwigwxComboBoxTowxObject},
+ { "_wxObject","_wxComboBox",SwigwxComboBoxTowxObject},
+ { "_wxObject","_class_wxChoice",SwigwxChoiceTowxObject},
+ { "_wxObject","_wxChoice",SwigwxChoiceTowxObject},
+ { "_wxObject","_class_wxCheckBox",SwigwxCheckBoxTowxObject},
+ { "_wxObject","_wxCheckBox",SwigwxCheckBoxTowxObject},
+ { "_wxObject","_class_wxBitmapButton",SwigwxBitmapButtonTowxObject},
+ { "_wxObject","_wxBitmapButton",SwigwxBitmapButtonTowxObject},
+ { "_wxObject","_class_wxButton",SwigwxButtonTowxObject},
+ { "_wxObject","_wxButton",SwigwxButtonTowxObject},
+ { "_wxObject","_class_wxControl",SwigwxControlTowxObject},
+ { "_wxObject","_wxControl",SwigwxControlTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
#endif
#include <wx/listctrl.h>
#include <wx/treectrl.h>
+#include <wx/imaglist.h>
static PyObject* l_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
};
class wxPyTreeCtrl : public wxTreeCtrl {
+ DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
public:
wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
char* name) :
wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
-
int OnCompareItems(const wxTreeItemId& item1,
const wxTreeItemId& item2) {
int rval = 0;
PYPRIVATE;
};
+IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
+
#ifdef __cplusplus
extern "C" {
#endif
return _resultobj;
}
+static void *SwigwxListItemTowxObject(void *ptr) {
+ wxListItem *src;
+ wxObject *dest;
+ src = (wxListItem *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxListItem() (new wxListItem())
static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxListEventTowxObject(void *ptr) {
+ wxListEvent *src;
+ wxObject *dest;
+ src = (wxListEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval)
static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "self","m_item", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1))
_result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxListEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0))
_result = (wxListItem *)wxListEvent_m_item_get(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxListEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0))
_result = (wxListItem *) &_result_ref;
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxListCtrlTowxObject(void *ptr) {
+ wxListCtrl *src;
+ wxObject *dest;
+ src = (wxListCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","which", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
_result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
int _arg2 = (int ) 0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","itemId","col", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
_result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
+ wxPyTreeItemData *src;
+ wxObject *dest;
+ src = (wxPyTreeItemData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxTreeEventTowxObject(void *ptr) {
+ wxTreeEvent *src;
+ wxObject *dest;
+ src = (wxTreeEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
+ wxPyTreeCtrl *src;
+ wxObject *dest;
+ src = (wxPyTreeCtrl *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPyTreeCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
_result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxPyTreeCtrl * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
_result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_wxListEvent","_class_wxListEvent",0},
+ { "_class_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
+ { "_class_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
+ { "_class_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject},
+ { "_class_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
+ { "_class_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
+ { "_class_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
+ { "_class_wxObject","_class_wxListCtrl",SwigwxListCtrlTowxObject},
+ { "_class_wxObject","_wxListCtrl",SwigwxListCtrlTowxObject},
+ { "_class_wxObject","_class_wxListEvent",SwigwxListEventTowxObject},
+ { "_class_wxObject","_wxListEvent",SwigwxListEventTowxObject},
+ { "_class_wxObject","_class_wxListItem",SwigwxListItemTowxObject},
+ { "_class_wxObject","_wxListItem",SwigwxListItemTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
{ "_wxListCtrl","_class_wxListCtrl",0},
+ { "_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
+ { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
+ { "_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject},
+ { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
+ { "_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
+ { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
+ { "_wxObject","_class_wxListCtrl",SwigwxListCtrlTowxObject},
+ { "_wxObject","_wxListCtrl",SwigwxListCtrlTowxObject},
+ { "_wxObject","_class_wxListEvent",SwigwxListEventTowxObject},
+ { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
+ { "_wxObject","_class_wxListItem",SwigwxListItemTowxObject},
+ { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
+
+ wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
+ wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
-class wxListItemPtr :
+class wxListItemPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetItem(self, *_args, **_kwargs):
val = apply(controls2c.wxListEvent_GetItem,(self,) + _args, _kwargs)
- if val: val = wxListItemPtr(val)
return val
def __setattr__(self,name,value):
if name == "m_code" :
return val
def AssignImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_AssignImageList,(self,) + _args, _kwargs)
+ _args[0].thisown = 0
return val
def DeleteItem(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_DeleteItem,(self,) + _args, _kwargs)
return val
def GetImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetImageList,(self,) + _args, _kwargs)
- if val: val = wxImageListPtr(val)
return val
def GetItemData(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetItemData,(self,) + _args, _kwargs)
return val
def GetItem(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs)
- if val: val = wxListItemPtr(val) ; val.thisown = 1
return val
def GetItemPosition(self, *_args, **_kwargs):
val = apply(controls2c.wxListCtrl_GetItemPosition,(self,) + _args, _kwargs)
-class wxTreeItemDataPtr :
+class wxTreeItemDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def AssignImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxTreeCtrl_AssignImageList,(self,) + _args, _kwargs)
+ _args[0].thisown = 0
return val
def GetCount(self, *_args, **_kwargs):
val = apply(controls2c.wxTreeCtrl_GetCount,(self,) + _args, _kwargs)
return val
def GetImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxTreeCtrl_GetImageList,(self,) + _args, _kwargs)
- if val: val = wxImageListPtr(val)
return val
def GetStateImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxTreeCtrl_GetStateImageList,(self,) + _args, _kwargs)
- if val: val = wxImageListPtr(val)
return val
def SetImageList(self, *_args, **_kwargs):
val = apply(controls2c.wxTreeCtrl_SetImageList,(self,) + _args, _kwargs)
return _resultobj;
}
+static void *SwigwxEventTowxObject(void *ptr) {
+ wxEvent *src;
+ wxObject *dest;
+ src = (wxEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxEvent(_swigarg0) (new wxEvent(_swigarg0))
static PyObject *_wrap_new_wxEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvent_GetEventObject",_kwnames,&_argo0))
_result = (wxObject *)wxEvent_GetEventObject(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxSizeEventTowxObject(void *ptr) {
+ wxSizeEvent *src;
+ wxObject *dest;
+ src = (wxSizeEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSizeEvent(_swigarg0,_swigarg1) (new wxSizeEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCloseEventTowxObject(void *ptr) {
+ wxCloseEvent *src;
+ wxObject *dest;
+ src = (wxCloseEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCloseEvent(_swigarg0,_swigarg1) (new wxCloseEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxCloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCommandEventTowxObject(void *ptr) {
+ wxCommandEvent *src;
+ wxObject *dest;
+ src = (wxCommandEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxCommandEvent(_swigarg0,_swigarg1) (new wxCommandEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxScrollEventTowxObject(void *ptr) {
+ wxScrollEvent *src;
+ wxObject *dest;
+ src = (wxScrollEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxScrollEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxScrollEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxScrollWinEventTowxObject(void *ptr) {
+ wxScrollWinEvent *src;
+ wxObject *dest;
+ src = (wxScrollWinEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxScrollWinEvent(_swigarg0,_swigarg1,_swigarg2) (new wxScrollWinEvent(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSpinEventTowxObject(void *ptr) {
+ wxSpinEvent *src;
+ wxObject *dest;
+ src = (wxSpinEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSpinEvent(_swigarg0,_swigarg1) (new wxSpinEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxSpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMouseEventTowxObject(void *ptr) {
+ wxMouseEvent *src;
+ wxObject *dest;
+ src = (wxMouseEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMouseEvent(_swigarg0) (new wxMouseEvent(_swigarg0))
static PyObject *_wrap_new_wxMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxKeyEventTowxObject(void *ptr) {
+ wxKeyEvent *src;
+ wxObject *dest;
+ src = (wxKeyEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxKeyEvent(_swigarg0) (new wxKeyEvent(_swigarg0))
static PyObject *_wrap_new_wxKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxNavigationKeyEventTowxObject(void *ptr) {
+ wxNavigationKeyEvent *src;
+ wxObject *dest;
+ src = (wxNavigationKeyEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxNavigationKeyEvent() (new wxNavigationKeyEvent())
static PyObject *_wrap_new_wxNavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxNavigationKeyEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNavigationKeyEvent_GetCurrentFocus",_kwnames,&_argo0))
_result = (wxWindow *)wxNavigationKeyEvent_GetCurrentFocus(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxMoveEventTowxObject(void *ptr) {
+ wxMoveEvent *src;
+ wxObject *dest;
+ src = (wxMoveEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMoveEvent(_swigarg0,_swigarg1) (new wxMoveEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPaintEventTowxObject(void *ptr) {
+ wxPaintEvent *src;
+ wxObject *dest;
+ src = (wxPaintEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPaintEvent(_swigarg0) (new wxPaintEvent(_swigarg0))
static PyObject *_wrap_new_wxPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxEraseEventTowxObject(void *ptr) {
+ wxEraseEvent *src;
+ wxObject *dest;
+ src = (wxEraseEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxEraseEvent(_swigarg0,_swigarg1) (new wxEraseEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxEraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxEraseEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEraseEvent_GetDC",_kwnames,&_argo0))
_result = (wxDC *)wxEraseEvent_GetDC(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxFocusEventTowxObject(void *ptr) {
+ wxFocusEvent *src;
+ wxObject *dest;
+ src = (wxFocusEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFocusEvent(_swigarg0,_swigarg1) (new wxFocusEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxActivateEventTowxObject(void *ptr) {
+ wxActivateEvent *src;
+ wxObject *dest;
+ src = (wxActivateEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxActivateEvent(_swigarg0,_swigarg1,_swigarg2) (new wxActivateEvent(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxInitDialogEventTowxObject(void *ptr) {
+ wxInitDialogEvent *src;
+ wxObject *dest;
+ src = (wxInitDialogEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxInitDialogEvent(_swigarg0) (new wxInitDialogEvent(_swigarg0))
static PyObject *_wrap_new_wxInitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMenuEventTowxObject(void *ptr) {
+ wxMenuEvent *src;
+ wxObject *dest;
+ src = (wxMenuEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMenuEvent(_swigarg0,_swigarg1) (new wxMenuEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxShowEventTowxObject(void *ptr) {
+ wxShowEvent *src;
+ wxObject *dest;
+ src = (wxShowEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxShowEvent(_swigarg0,_swigarg1) (new wxShowEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxIconizeEventTowxObject(void *ptr) {
+ wxIconizeEvent *src;
+ wxObject *dest;
+ src = (wxIconizeEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxIconizeEvent(_swigarg0) (new wxIconizeEvent(_swigarg0))
static PyObject *_wrap_new_wxIconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMaximizeEventTowxObject(void *ptr) {
+ wxMaximizeEvent *src;
+ wxObject *dest;
+ src = (wxMaximizeEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMaximizeEvent(_swigarg0) (new wxMaximizeEvent(_swigarg0))
static PyObject *_wrap_new_wxMaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxJoystickEventTowxObject(void *ptr) {
+ wxJoystickEvent *src;
+ wxObject *dest;
+ src = (wxJoystickEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxJoystickEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxJoystickEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxJoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxDropFilesEventTowxObject(void *ptr) {
+ wxDropFilesEvent *src;
+ wxObject *dest;
+ src = (wxDropFilesEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxDropFilesEvent_GetPosition(_swigobj) (_swigobj->GetPosition())
static PyObject *_wrap_wxDropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxIdleEventTowxObject(void *ptr) {
+ wxIdleEvent *src;
+ wxObject *dest;
+ src = (wxIdleEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxIdleEvent() (new wxIdleEvent())
static PyObject *_wrap_new_wxIdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxUpdateUIEventTowxObject(void *ptr) {
+ wxUpdateUIEvent *src;
+ wxObject *dest;
+ src = (wxUpdateUIEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxUpdateUIEvent(_swigarg0) (new wxUpdateUIEvent(_swigarg0))
static PyObject *_wrap_new_wxUpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSysColourChangedEventTowxObject(void *ptr) {
+ wxSysColourChangedEvent *src;
+ wxObject *dest;
+ src = (wxSysColourChangedEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSysColourChangedEvent() (new wxSysColourChangedEvent())
static PyObject *_wrap_new_wxSysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxNotifyEventTowxObject(void *ptr) {
+ wxNotifyEvent *src;
+ wxObject *dest;
+ src = (wxNotifyEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxNotifyEvent(_swigarg0,_swigarg1) (new wxNotifyEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxNotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPaletteChangedEventTowxObject(void *ptr) {
+ wxPaletteChangedEvent *src;
+ wxObject *dest;
+ src = (wxPaletteChangedEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPaletteChangedEvent(_swigarg0) (new wxPaletteChangedEvent(_swigarg0))
static PyObject *_wrap_new_wxPaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPaletteChangedEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPaletteChangedEvent_GetChangedWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxPaletteChangedEvent_GetChangedWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxQueryNewPaletteEventTowxObject(void *ptr) {
+ wxQueryNewPaletteEvent *src;
+ wxObject *dest;
+ src = (wxQueryNewPaletteEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxQueryNewPaletteEvent(_swigarg0) (new wxQueryNewPaletteEvent(_swigarg0))
static PyObject *_wrap_new_wxQueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxWindowCreateEventTowxObject(void *ptr) {
+ wxWindowCreateEvent *src;
+ wxObject *dest;
+ src = (wxWindowCreateEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxWindowCreateEvent(_swigarg0) (new wxWindowCreateEvent(_swigarg0))
static PyObject *_wrap_new_wxWindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxWindowCreateEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindowCreateEvent_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxWindowCreateEvent_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxWindowDestroyEventTowxObject(void *ptr) {
+ wxWindowDestroyEvent *src;
+ wxObject *dest;
+ src = (wxWindowDestroyEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxWindowDestroyEvent(_swigarg0) (new wxWindowDestroyEvent(_swigarg0))
static PyObject *_wrap_new_wxWindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxWindowDestroyEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindowDestroyEvent_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxWindowDestroyEvent_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxTimerEventTowxObject(void *ptr) {
+ wxTimerEvent *src;
+ wxObject *dest;
+ src = (wxTimerEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTimerEvent(_swigarg0,_swigarg1) (new wxTimerEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxTimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyEventTowxObject(void *ptr) {
+ wxPyEvent *src;
+ wxObject *dest;
+ src = (wxPyEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPyEvent(_swigarg0) (new wxPyEvent(_swigarg0))
static PyObject *_wrap_new_wxPyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyCommandEventTowxObject(void *ptr) {
+ wxPyCommandEvent *src;
+ wxObject *dest;
+ src = (wxPyCommandEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPyCommandEvent(_swigarg0,_swigarg1) (new wxPyCommandEvent(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxPyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_wxImageList","_class_wxImageList",0},
{ "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
+ { "_class_wxObject","_class_wxPyCommandEvent",SwigwxPyCommandEventTowxObject},
+ { "_class_wxObject","_wxPyCommandEvent",SwigwxPyCommandEventTowxObject},
+ { "_class_wxObject","_class_wxPyEvent",SwigwxPyEventTowxObject},
+ { "_class_wxObject","_wxPyEvent",SwigwxPyEventTowxObject},
+ { "_class_wxObject","_class_wxTimerEvent",SwigwxTimerEventTowxObject},
+ { "_class_wxObject","_wxTimerEvent",SwigwxTimerEventTowxObject},
+ { "_class_wxObject","_class_wxWindowDestroyEvent",SwigwxWindowDestroyEventTowxObject},
+ { "_class_wxObject","_wxWindowDestroyEvent",SwigwxWindowDestroyEventTowxObject},
+ { "_class_wxObject","_class_wxWindowCreateEvent",SwigwxWindowCreateEventTowxObject},
+ { "_class_wxObject","_wxWindowCreateEvent",SwigwxWindowCreateEventTowxObject},
+ { "_class_wxObject","_class_wxQueryNewPaletteEvent",SwigwxQueryNewPaletteEventTowxObject},
+ { "_class_wxObject","_wxQueryNewPaletteEvent",SwigwxQueryNewPaletteEventTowxObject},
+ { "_class_wxObject","_class_wxPaletteChangedEvent",SwigwxPaletteChangedEventTowxObject},
+ { "_class_wxObject","_wxPaletteChangedEvent",SwigwxPaletteChangedEventTowxObject},
+ { "_class_wxObject","_class_wxNotifyEvent",SwigwxNotifyEventTowxObject},
+ { "_class_wxObject","_wxNotifyEvent",SwigwxNotifyEventTowxObject},
+ { "_class_wxObject","_class_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxObject},
+ { "_class_wxObject","_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxObject},
+ { "_class_wxObject","_class_wxUpdateUIEvent",SwigwxUpdateUIEventTowxObject},
+ { "_class_wxObject","_wxUpdateUIEvent",SwigwxUpdateUIEventTowxObject},
+ { "_class_wxObject","_class_wxIdleEvent",SwigwxIdleEventTowxObject},
+ { "_class_wxObject","_wxIdleEvent",SwigwxIdleEventTowxObject},
+ { "_class_wxObject","_class_wxDropFilesEvent",SwigwxDropFilesEventTowxObject},
+ { "_class_wxObject","_wxDropFilesEvent",SwigwxDropFilesEventTowxObject},
+ { "_class_wxObject","_class_wxJoystickEvent",SwigwxJoystickEventTowxObject},
+ { "_class_wxObject","_wxJoystickEvent",SwigwxJoystickEventTowxObject},
+ { "_class_wxObject","_class_wxMaximizeEvent",SwigwxMaximizeEventTowxObject},
+ { "_class_wxObject","_wxMaximizeEvent",SwigwxMaximizeEventTowxObject},
+ { "_class_wxObject","_class_wxIconizeEvent",SwigwxIconizeEventTowxObject},
+ { "_class_wxObject","_wxIconizeEvent",SwigwxIconizeEventTowxObject},
+ { "_class_wxObject","_class_wxShowEvent",SwigwxShowEventTowxObject},
+ { "_class_wxObject","_wxShowEvent",SwigwxShowEventTowxObject},
+ { "_class_wxObject","_class_wxMenuEvent",SwigwxMenuEventTowxObject},
+ { "_class_wxObject","_wxMenuEvent",SwigwxMenuEventTowxObject},
+ { "_class_wxObject","_class_wxInitDialogEvent",SwigwxInitDialogEventTowxObject},
+ { "_class_wxObject","_wxInitDialogEvent",SwigwxInitDialogEventTowxObject},
+ { "_class_wxObject","_class_wxActivateEvent",SwigwxActivateEventTowxObject},
+ { "_class_wxObject","_wxActivateEvent",SwigwxActivateEventTowxObject},
+ { "_class_wxObject","_class_wxFocusEvent",SwigwxFocusEventTowxObject},
+ { "_class_wxObject","_wxFocusEvent",SwigwxFocusEventTowxObject},
+ { "_class_wxObject","_class_wxEraseEvent",SwigwxEraseEventTowxObject},
+ { "_class_wxObject","_wxEraseEvent",SwigwxEraseEventTowxObject},
+ { "_class_wxObject","_class_wxPaintEvent",SwigwxPaintEventTowxObject},
+ { "_class_wxObject","_wxPaintEvent",SwigwxPaintEventTowxObject},
+ { "_class_wxObject","_class_wxMoveEvent",SwigwxMoveEventTowxObject},
+ { "_class_wxObject","_wxMoveEvent",SwigwxMoveEventTowxObject},
+ { "_class_wxObject","_class_wxNavigationKeyEvent",SwigwxNavigationKeyEventTowxObject},
+ { "_class_wxObject","_wxNavigationKeyEvent",SwigwxNavigationKeyEventTowxObject},
+ { "_class_wxObject","_class_wxKeyEvent",SwigwxKeyEventTowxObject},
+ { "_class_wxObject","_wxKeyEvent",SwigwxKeyEventTowxObject},
+ { "_class_wxObject","_class_wxMouseEvent",SwigwxMouseEventTowxObject},
+ { "_class_wxObject","_wxMouseEvent",SwigwxMouseEventTowxObject},
+ { "_class_wxObject","_class_wxSpinEvent",SwigwxSpinEventTowxObject},
+ { "_class_wxObject","_wxSpinEvent",SwigwxSpinEventTowxObject},
+ { "_class_wxObject","_class_wxScrollWinEvent",SwigwxScrollWinEventTowxObject},
+ { "_class_wxObject","_wxScrollWinEvent",SwigwxScrollWinEventTowxObject},
+ { "_class_wxObject","_class_wxScrollEvent",SwigwxScrollEventTowxObject},
+ { "_class_wxObject","_wxScrollEvent",SwigwxScrollEventTowxObject},
+ { "_class_wxObject","_class_wxCommandEvent",SwigwxCommandEventTowxObject},
+ { "_class_wxObject","_wxCommandEvent",SwigwxCommandEventTowxObject},
+ { "_class_wxObject","_class_wxCloseEvent",SwigwxCloseEventTowxObject},
+ { "_class_wxObject","_wxCloseEvent",SwigwxCloseEventTowxObject},
+ { "_class_wxObject","_class_wxSizeEvent",SwigwxSizeEventTowxObject},
+ { "_class_wxObject","_wxSizeEvent",SwigwxSizeEventTowxObject},
+ { "_class_wxObject","_class_wxEvent",SwigwxEventTowxObject},
+ { "_class_wxObject","_wxEvent",SwigwxEventTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxPyCommandEvent",SwigwxPyCommandEventTowxObject},
+ { "_wxObject","_wxPyCommandEvent",SwigwxPyCommandEventTowxObject},
+ { "_wxObject","_class_wxPyEvent",SwigwxPyEventTowxObject},
+ { "_wxObject","_wxPyEvent",SwigwxPyEventTowxObject},
+ { "_wxObject","_class_wxTimerEvent",SwigwxTimerEventTowxObject},
+ { "_wxObject","_wxTimerEvent",SwigwxTimerEventTowxObject},
+ { "_wxObject","_class_wxWindowDestroyEvent",SwigwxWindowDestroyEventTowxObject},
+ { "_wxObject","_wxWindowDestroyEvent",SwigwxWindowDestroyEventTowxObject},
+ { "_wxObject","_class_wxWindowCreateEvent",SwigwxWindowCreateEventTowxObject},
+ { "_wxObject","_wxWindowCreateEvent",SwigwxWindowCreateEventTowxObject},
+ { "_wxObject","_class_wxQueryNewPaletteEvent",SwigwxQueryNewPaletteEventTowxObject},
+ { "_wxObject","_wxQueryNewPaletteEvent",SwigwxQueryNewPaletteEventTowxObject},
+ { "_wxObject","_class_wxPaletteChangedEvent",SwigwxPaletteChangedEventTowxObject},
+ { "_wxObject","_wxPaletteChangedEvent",SwigwxPaletteChangedEventTowxObject},
+ { "_wxObject","_class_wxNotifyEvent",SwigwxNotifyEventTowxObject},
+ { "_wxObject","_wxNotifyEvent",SwigwxNotifyEventTowxObject},
+ { "_wxObject","_class_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxObject},
+ { "_wxObject","_wxSysColourChangedEvent",SwigwxSysColourChangedEventTowxObject},
+ { "_wxObject","_class_wxUpdateUIEvent",SwigwxUpdateUIEventTowxObject},
+ { "_wxObject","_wxUpdateUIEvent",SwigwxUpdateUIEventTowxObject},
+ { "_wxObject","_class_wxIdleEvent",SwigwxIdleEventTowxObject},
+ { "_wxObject","_wxIdleEvent",SwigwxIdleEventTowxObject},
+ { "_wxObject","_class_wxDropFilesEvent",SwigwxDropFilesEventTowxObject},
+ { "_wxObject","_wxDropFilesEvent",SwigwxDropFilesEventTowxObject},
+ { "_wxObject","_class_wxJoystickEvent",SwigwxJoystickEventTowxObject},
+ { "_wxObject","_wxJoystickEvent",SwigwxJoystickEventTowxObject},
+ { "_wxObject","_class_wxMaximizeEvent",SwigwxMaximizeEventTowxObject},
+ { "_wxObject","_wxMaximizeEvent",SwigwxMaximizeEventTowxObject},
+ { "_wxObject","_class_wxIconizeEvent",SwigwxIconizeEventTowxObject},
+ { "_wxObject","_wxIconizeEvent",SwigwxIconizeEventTowxObject},
+ { "_wxObject","_class_wxShowEvent",SwigwxShowEventTowxObject},
+ { "_wxObject","_wxShowEvent",SwigwxShowEventTowxObject},
+ { "_wxObject","_class_wxMenuEvent",SwigwxMenuEventTowxObject},
+ { "_wxObject","_wxMenuEvent",SwigwxMenuEventTowxObject},
+ { "_wxObject","_class_wxInitDialogEvent",SwigwxInitDialogEventTowxObject},
+ { "_wxObject","_wxInitDialogEvent",SwigwxInitDialogEventTowxObject},
+ { "_wxObject","_class_wxActivateEvent",SwigwxActivateEventTowxObject},
+ { "_wxObject","_wxActivateEvent",SwigwxActivateEventTowxObject},
+ { "_wxObject","_class_wxFocusEvent",SwigwxFocusEventTowxObject},
+ { "_wxObject","_wxFocusEvent",SwigwxFocusEventTowxObject},
+ { "_wxObject","_class_wxEraseEvent",SwigwxEraseEventTowxObject},
+ { "_wxObject","_wxEraseEvent",SwigwxEraseEventTowxObject},
+ { "_wxObject","_class_wxPaintEvent",SwigwxPaintEventTowxObject},
+ { "_wxObject","_wxPaintEvent",SwigwxPaintEventTowxObject},
+ { "_wxObject","_class_wxMoveEvent",SwigwxMoveEventTowxObject},
+ { "_wxObject","_wxMoveEvent",SwigwxMoveEventTowxObject},
+ { "_wxObject","_class_wxNavigationKeyEvent",SwigwxNavigationKeyEventTowxObject},
+ { "_wxObject","_wxNavigationKeyEvent",SwigwxNavigationKeyEventTowxObject},
+ { "_wxObject","_class_wxKeyEvent",SwigwxKeyEventTowxObject},
+ { "_wxObject","_wxKeyEvent",SwigwxKeyEventTowxObject},
+ { "_wxObject","_class_wxMouseEvent",SwigwxMouseEventTowxObject},
+ { "_wxObject","_wxMouseEvent",SwigwxMouseEventTowxObject},
+ { "_wxObject","_class_wxSpinEvent",SwigwxSpinEventTowxObject},
+ { "_wxObject","_wxSpinEvent",SwigwxSpinEventTowxObject},
+ { "_wxObject","_class_wxScrollWinEvent",SwigwxScrollWinEventTowxObject},
+ { "_wxObject","_wxScrollWinEvent",SwigwxScrollWinEventTowxObject},
+ { "_wxObject","_class_wxScrollEvent",SwigwxScrollEventTowxObject},
+ { "_wxObject","_wxScrollEvent",SwigwxScrollEventTowxObject},
+ { "_wxObject","_class_wxCommandEvent",SwigwxCommandEventTowxObject},
+ { "_wxObject","_wxCommandEvent",SwigwxCommandEventTowxObject},
+ { "_wxObject","_class_wxCloseEvent",SwigwxCloseEventTowxObject},
+ { "_wxObject","_wxCloseEvent",SwigwxCloseEventTowxObject},
+ { "_wxObject","_class_wxSizeEvent",SwigwxSizeEventTowxObject},
+ { "_wxObject","_wxSizeEvent",SwigwxSizeEventTowxObject},
+ { "_wxObject","_class_wxEvent",SwigwxEventTowxObject},
+ { "_wxObject","_wxEvent",SwigwxEventTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
from misc import *
from gdi import *
-class wxEventPtr :
+class wxEventPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetCurrentFocus(self, *_args, **_kwargs):
val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetCurrentFocus(self, *_args, **_kwargs):
val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
self.thisown = 0
def GetDC(self, *_args, **_kwargs):
val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val)
return val
def __repr__(self):
return "<C wxEraseEvent instance at %s>" % (self.this,)
return val
def GetChangedWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxPaletteChangedEvent instance at %s>" % (self.this,)
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxWindowCreateEvent instance at %s>" % (self.this,)
self.thisown = 0
def GetWindow(self, *_args, **_kwargs):
val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxWindowDestroyEvent instance at %s>" % (self.this,)
return _resultobj;
}
+static void *SwigwxFSFileTowxObject(void *ptr) {
+ wxFSFile *src;
+ wxObject *dest;
+ src = (wxFSFile *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxFSFile(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
static PyObject *_wrap_new_wxFSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
if (_result) {
_ptr = new wxPyInputStream(_result);
}
- if (_ptr) {
- char swigptr[64];
- SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p");
-
- PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr");
- if (! classobj) {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- } else {
- PyObject* arg = Py_BuildValue("(s)", swigptr);
- _resultobj = PyInstance_New(classobj, arg, NULL);
- Py_DECREF(arg);
-
- // set ThisOwn
- PyObject* one = PyInt_FromLong(1);
- PyObject_SetAttrString(_resultobj, "thisown", one);
- Py_DECREF(one);
- }
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
}
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxFileSystemHandlerTowxObject(void *ptr) {
+ wxFileSystemHandler *src;
+ wxObject *dest;
+ src = (wxFileSystemHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static void *SwigwxPyFileSystemHandlerTowxFileSystemHandler(void *ptr) {
wxPyFileSystemHandler *src;
wxFileSystemHandler *dest;
return (void *) dest;
}
+static void *SwigwxPyFileSystemHandlerTowxObject(void *ptr) {
+ wxPyFileSystemHandler *src;
+ wxObject *dest;
+ src = (wxPyFileSystemHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFileSystemHandler() (new wxPyFileSystemHandler())
static PyObject *_wrap_new_wxFileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo1 = 0;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","fs","location", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFileSystemHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2))
_result = (wxFSFile *)wxFileSystemHandler_OpenFile(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj2)
delete _arg2;
return _resultobj;
}
+static void *SwigwxFileSystemTowxObject(void *ptr) {
+ wxFileSystem *src;
+ wxObject *dest;
+ src = (wxFileSystem *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFileSystem() (new wxFileSystem())
static PyObject *_wrap_new_wxFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo0 = 0;
PyObject * _obj1 = 0;
char *_kwnames[] = { "self","location", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileSystem_OpenFile",_kwnames,&_argo0,&_obj1))
_result = (wxFSFile *)wxFileSystem_OpenFile(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj1)
delete _arg1;
return (void *) dest;
}
+static void *SwigwxInternetFSHandlerTowxObject(void *ptr) {
+ wxInternetFSHandler *src;
+ wxObject *dest;
+ src = (wxInternetFSHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxInternetFSHandler() (new wxInternetFSHandler())
static PyObject *_wrap_new_wxInternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo1 = 0;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","fs","location", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxInternetFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2))
_result = (wxFSFile *)wxInternetFSHandler_OpenFile(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj2)
delete _arg2;
return (void *) dest;
}
+static void *SwigwxZipFSHandlerTowxObject(void *ptr) {
+ wxZipFSHandler *src;
+ wxObject *dest;
+ src = (wxZipFSHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxZipFSHandler() (new wxZipFSHandler())
static PyObject *_wrap_new_wxZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo1 = 0;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","fs","location", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxZipFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2))
_result = (wxFSFile *)wxZipFSHandler_OpenFile(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj2)
delete _arg2;
return (void *) dest;
}
+static void *SwigwxMemoryFSHandlerTowxObject(void *ptr) {
+ wxMemoryFSHandler *src;
+ wxObject *dest;
+ src = (wxMemoryFSHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMemoryFSHandler() (new wxMemoryFSHandler())
static PyObject *_wrap_new_wxMemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo1 = 0;
PyObject * _obj2 = 0;
char *_kwnames[] = { "self","fs","location", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMemoryFSHandler_OpenFile",_kwnames,&_argo0,&_argo1,&_obj2))
_result = (wxFSFile *)wxMemoryFSHandler_OpenFile(_arg0,*_arg1,*_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFSFile_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj2)
delete _arg2;
{ "_wxImageList","_class_wxImageList",0},
{ "_class_wxTIFFHandler","_wxTIFFHandler",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
+ { "_class_wxObject","_class_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject},
+ { "_class_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject},
+ { "_class_wxObject","_class_wxZipFSHandler",SwigwxZipFSHandlerTowxObject},
+ { "_class_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject},
+ { "_class_wxObject","_class_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject},
+ { "_class_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject},
+ { "_class_wxObject","_class_wxFileSystem",SwigwxFileSystemTowxObject},
+ { "_class_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject},
+ { "_class_wxObject","_class_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject},
+ { "_class_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject},
+ { "_class_wxObject","_class_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject},
+ { "_class_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject},
+ { "_class_wxObject","_class_wxFSFile",SwigwxFSFileTowxObject},
+ { "_class_wxObject","_wxFSFile",SwigwxFSFileTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_wxBusyInfo","_class_wxBusyInfo",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_wxClientDC","_class_wxClientDC",0},
+ { "_wxObject","_class_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject},
+ { "_wxObject","_wxMemoryFSHandler",SwigwxMemoryFSHandlerTowxObject},
+ { "_wxObject","_class_wxZipFSHandler",SwigwxZipFSHandlerTowxObject},
+ { "_wxObject","_wxZipFSHandler",SwigwxZipFSHandlerTowxObject},
+ { "_wxObject","_class_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject},
+ { "_wxObject","_wxInternetFSHandler",SwigwxInternetFSHandlerTowxObject},
+ { "_wxObject","_class_wxFileSystem",SwigwxFileSystemTowxObject},
+ { "_wxObject","_wxFileSystem",SwigwxFileSystemTowxObject},
+ { "_wxObject","_class_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject},
+ { "_wxObject","_wxPyFileSystemHandler",SwigwxPyFileSystemHandlerTowxObject},
+ { "_wxObject","_class_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject},
+ { "_wxObject","_wxFileSystemHandler",SwigwxFileSystemHandlerTowxObject},
+ { "_wxObject","_class_wxFSFile",SwigwxFSFileTowxObject},
+ { "_wxObject","_wxFSFile",SwigwxFSFileTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("filesysc", filesyscMethods);
d = PyModule_GetDict(m);
+
+ wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
__wxMemoryFSHandler_AddFile_Data(filename, a)
else: raise TypeError, 'wxImage, wxBitmap or string expected'
-class wxFSFilePtr :
+class wxFSFilePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxCPPFileSystemHandlerPtr :
+class wxCPPFileSystemHandlerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def OpenFile(self, *_args, **_kwargs):
val = apply(filesysc.wxFileSystemHandler_OpenFile,(self,) + _args, _kwargs)
- if val: val = wxFSFilePtr(val)
return val
def FindFirst(self, *_args, **_kwargs):
val = apply(filesysc.wxFileSystemHandler_FindFirst,(self,) + _args, _kwargs)
-class wxFileSystemPtr :
+class wxFileSystemPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def OpenFile(self, *_args, **_kwargs):
val = apply(filesysc.wxFileSystem_OpenFile,(self,) + _args, _kwargs)
- if val: val = wxFSFilePtr(val)
return val
def FindFirst(self, *_args, **_kwargs):
val = apply(filesysc.wxFileSystem_FindFirst,(self,) + _args, _kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
val = apply(filesysc.wxInternetFSHandler_OpenFile,(self,) + _args, _kwargs)
- if val: val = wxFSFilePtr(val)
return val
def __repr__(self):
return "<C wxInternetFSHandler instance at %s>" % (self.this,)
return val
def OpenFile(self, *_args, **_kwargs):
val = apply(filesysc.wxZipFSHandler_OpenFile,(self,) + _args, _kwargs)
- if val: val = wxFSFilePtr(val)
return val
def FindFirst(self, *_args, **_kwargs):
val = apply(filesysc.wxZipFSHandler_FindFirst,(self,) + _args, _kwargs)
return val
def OpenFile(self, *_args, **_kwargs):
val = apply(filesysc.wxMemoryFSHandler_OpenFile,(self,) + _args, _kwargs)
- if val: val = wxFSFilePtr(val)
return val
def FindFirst(self, *_args, **_kwargs):
val = apply(filesysc.wxMemoryFSHandler_FindFirst,(self,) + _args, _kwargs)
return (void *) dest;
}
+static void *SwigwxFrameTowxObject(void *ptr) {
+ wxFrame *src;
+ wxObject *dest;
+ src = (wxFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
char * _arg4 = (char *) "statusBar";
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","number","style","id","name", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ilis:wxFrame_CreateStatusBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
_result = (wxStatusBar *)wxFrame_CreateStatusBar(_arg0,_arg1,_arg2,_arg3,_arg4);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
char * _arg3 = (char *) "toolBar";
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","style","id","name", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|lis:wxFrame_CreateToolBar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
_result = (wxToolBar *)wxFrame_CreateToolBar(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetMenuBar",_kwnames,&_argo0))
_result = (wxMenuBar *)wxFrame_GetMenuBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetStatusBar",_kwnames,&_argo0))
_result = (wxStatusBar *)wxFrame_GetStatusBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxStatusBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFrame_GetToolBar",_kwnames,&_argo0))
_result = (wxToolBar *)wxFrame_GetToolBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+#define wxFrame_ShowFullScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->ShowFullScreen(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxFrame_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxFrame * _arg0;
+ bool _arg1;
+ long _arg2 = (long ) (wxFULLSCREEN_ALL);
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","show","style", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|l:wxFrame_ShowFullScreen",_kwnames,&_argo0,&tempbool1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFrame_ShowFullScreen. Expected _wxFrame_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxFrame_ShowFullScreen(_arg0,_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
static void *SwigwxMiniFrameTowxFrame(void *ptr) {
wxMiniFrame *src;
wxFrame *dest;
return (void *) dest;
}
+static void *SwigwxMiniFrameTowxObject(void *ptr) {
+ wxMiniFrame *src;
+ wxObject *dest;
+ src = (wxMiniFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMiniFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
static PyMethodDef framescMethods[] = {
{ "new_wxMiniFrame", (PyCFunction) _wrap_new_wxMiniFrame, METH_VARARGS | METH_KEYWORDS },
+ { "wxFrame_ShowFullScreen", (PyCFunction) _wrap_wxFrame_ShowFullScreen, METH_VARARGS | METH_KEYWORDS },
{ "wxFrame_ProcessCommand", (PyCFunction) _wrap_wxFrame_ProcessCommand, METH_VARARGS | METH_KEYWORDS },
{ "wxFrame_Command", (PyCFunction) _wrap_wxFrame_Command, METH_VARARGS | METH_KEYWORDS },
{ "wxFrame_GetClientAreaOrigin", (PyCFunction) _wrap_wxFrame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxMiniFrame",SwigwxMiniFrameTowxObject},
+ { "_class_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject},
+ { "_class_wxObject","_class_wxFrame",SwigwxFrameTowxObject},
+ { "_class_wxObject","_wxFrame",SwigwxFrameTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxMiniFrame",SwigwxMiniFrameTowxObject},
+ { "_wxObject","_wxMiniFrame",SwigwxMiniFrameTowxObject},
+ { "_wxObject","_class_wxFrame",SwigwxFrameTowxObject},
+ { "_wxObject","_wxFrame",SwigwxFrameTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
return val
def CreateStatusBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_CreateStatusBar,(self,) + _args, _kwargs)
- if val: val = wxStatusBarPtr(val)
return val
def CreateToolBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_CreateToolBar,(self,) + _args, _kwargs)
- if val: val = wxToolBarPtr(val)
return val
def GetIcon(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetIcon,(self,) + _args, _kwargs)
return val
def GetMenuBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetMenuBar,(self,) + _args, _kwargs)
- if val: val = wxMenuBarPtr(val)
return val
def GetStatusBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetStatusBar,(self,) + _args, _kwargs)
- if val: val = wxStatusBarPtr(val)
return val
def GetTitle(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetTitle,(self,) + _args, _kwargs)
return val
def GetToolBar(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_GetToolBar,(self,) + _args, _kwargs)
- if val: val = wxToolBarPtr(val)
return val
def Iconize(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_Iconize,(self,) + _args, _kwargs)
def ProcessCommand(self, *_args, **_kwargs):
val = apply(framesc.wxFrame_ProcessCommand,(self,) + _args, _kwargs)
return val
+ def ShowFullScreen(self, *_args, **_kwargs):
+ val = apply(framesc.wxFrame_ShowFullScreen,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxFrame instance at %s>" % (self.this,)
class wxFrame(wxFramePtr):
return pyobj;
}
+static void *SwigwxGDIObjectTowxObject(void *ptr) {
+ wxGDIObject *src;
+ wxObject *dest;
+ src = (wxGDIObject *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxGDIObject() (new wxGDIObject())
+static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGDIObject * _result;
+ char *_kwnames[] = { NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxGDIObject *)new_wxGDIObject();
+
+ wxPy_END_ALLOW_THREADS;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define delete_wxGDIObject(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGDIObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxGDIObject(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
+static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxGDIObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxGDIObject_GetVisible(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
+static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGDIObject * _arg0;
+ bool _arg1;
+ PyObject * _argo0 = 0;
+ int tempbool1;
+ char *_kwnames[] = { "self","visible", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
+ return NULL;
+ }
+ }
+ _arg1 = (bool ) tempbool1;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxGDIObject_SetVisible(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
+static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxGDIObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxGDIObject_IsNull(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static void *SwigwxBitmapTowxGDIObject(void *ptr) {
+ wxBitmap *src;
+ wxGDIObject *dest;
+ src = (wxBitmap *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxBitmapTowxObject(void *ptr) {
+ wxBitmap *src;
+ wxObject *dest;
+ src = (wxBitmap *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxMaskTowxObject(void *ptr) {
+ wxMask *src;
+ wxObject *dest;
+ src = (wxMask *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxIconTowxGDIObject(void *ptr) {
+ wxIcon *src;
+ wxGDIObject *dest;
+ src = (wxIcon *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxIconTowxObject(void *ptr) {
+ wxIcon *src;
+ wxObject *dest;
+ src = (wxIcon *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxCursorTowxGDIObject(void *ptr) {
+ wxCursor *src;
+ wxGDIObject *dest;
+ src = (wxCursor *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxCursorTowxObject(void *ptr) {
+ wxCursor *src;
+ wxObject *dest;
+ src = (wxCursor *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define delete_wxCursor(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxFontTowxGDIObject(void *ptr) {
+ wxFont *src;
+ wxGDIObject *dest;
+ src = (wxFont *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxFontTowxObject(void *ptr) {
+ wxFont *src;
+ wxObject *dest;
+ src = (wxFont *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxFontListTowxObject(void *ptr) {
+ wxFontList *src;
+ wxObject *dest;
+ src = (wxFontList *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxColourTowxObject(void *ptr) {
+ wxColour *src;
+ wxObject *dest;
+ src = (wxColour *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxColourDatabaseTowxObject(void *ptr) {
+ wxColourDatabase *src;
+ wxObject *dest;
+ src = (wxColourDatabase *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPenTowxGDIObject(void *ptr) {
+ wxPen *src;
+ wxGDIObject *dest;
+ src = (wxPen *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPenTowxObject(void *ptr) {
+ wxPen *src;
+ wxObject *dest;
+ src = (wxPen *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPenListTowxObject(void *ptr) {
+ wxPenList *src;
+ wxObject *dest;
+ src = (wxPenList *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxBrushTowxGDIObject(void *ptr) {
+ wxBrush *src;
+ wxGDIObject *dest;
+ src = (wxBrush *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxBrushTowxObject(void *ptr) {
+ wxBrush *src;
+ wxObject *dest;
+ src = (wxBrush *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxDCTowxObject(void *ptr) {
+ wxDC *src;
+ wxObject *dest;
+ src = (wxDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define delete_wxDC(_swigobj) (delete _swigobj)
static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMemoryDCTowxObject(void *ptr) {
+ wxMemoryDC *src;
+ wxObject *dest;
+ src = (wxMemoryDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMemoryDC() (new wxMemoryDC())
static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxScreenDCTowxObject(void *ptr) {
+ wxScreenDC *src;
+ wxObject *dest;
+ src = (wxScreenDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxScreenDC() (new wxScreenDC())
static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxClientDCTowxObject(void *ptr) {
+ wxClientDC *src;
+ wxObject *dest;
+ src = (wxClientDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPaintDCTowxObject(void *ptr) {
+ wxPaintDC *src;
+ wxObject *dest;
+ src = (wxPaintDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxWindowDCTowxObject(void *ptr) {
+ wxWindowDC *src;
+ wxObject *dest;
+ src = (wxWindowDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPostScriptDCTowxObject(void *ptr) {
+ wxPostScriptDC *src;
+ wxObject *dest;
+ src = (wxPostScriptDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPaletteTowxGDIObject(void *ptr) {
+ wxPalette *src;
+ wxGDIObject *dest;
+ src = (wxPalette *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPaletteTowxObject(void *ptr) {
+ wxPalette *src;
+ wxObject *dest;
+ src = (wxPalette *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxImageListTowxObject(void *ptr) {
+ wxImageList *src;
+ wxObject *dest;
+ src = (wxImageList *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxRegionTowxGDIObject(void *ptr) {
+ wxRegion *src;
+ wxGDIObject *dest;
+ src = (wxRegion *) ptr;
+ dest = (wxGDIObject *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxRegionTowxObject(void *ptr) {
+ wxRegion *src;
+ wxObject *dest;
+ src = (wxRegion *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegion * _result;
+ long _arg0 = (long ) 0;
+ long _arg1 = (long ) 0;
+ long _arg2 = (long ) 0;
+ long _arg3 = (long ) 0;
+ char *_kwnames[] = { "x","y","width","height", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
+
+ wxPy_END_ALLOW_THREADS;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define delete_wxRegion(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxRegion(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
+static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxRegion_Clear(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionContain _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
+static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionContain _result;
+ wxRegion * _arg0;
+ wxPoint * _arg1;
+ PyObject * _argo0 = 0;
+ wxPoint temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","pt", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxPoint_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
+static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionContain _result;
+ wxRegion * _arg0;
+ wxRect * _arg1;
+ PyObject * _argo0 = 0;
+ wxRect temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","rect", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxRect_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionContain _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ long _arg3;
+ long _arg4;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y","w","h", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
+static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRect * _result;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxRect (wxRegion_GetBox(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ long _arg3;
+ long _arg4;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y","width","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
+static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRect * _arg1;
+ PyObject * _argo0 = 0;
+ wxRect temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","rect", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxRect_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
+static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRegion * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","region", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
+static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_IsEmpty(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ long _arg3;
+ long _arg4;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y","width","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
+static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRect * _arg1;
+ PyObject * _argo0 = 0;
+ wxRect temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","rect", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxRect_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
+static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRegion * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","region", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ long _arg3;
+ long _arg4;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y","width","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
+static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRect * _arg1;
+ PyObject * _argo0 = 0;
+ wxRect temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","rect", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxRect_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
+static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRegion * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","region", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
+static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ long _arg1;
+ long _arg2;
+ long _arg3;
+ long _arg4;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","x","y","width","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
+static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRect * _arg1;
+ PyObject * _argo0 = 0;
+ wxRect temp;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","rect", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = &temp;
+ if (! wxRect_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
+static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegion * _arg0;
+ wxRegion * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","region", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static void *SwigwxRegionIteratorTowxObject(void *ptr) {
+ wxRegionIterator *src;
+ wxObject *dest;
+ src = (wxRegionIterator *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
+static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionIterator * _result;
+ wxRegion * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "region", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxRegionIterator(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
+static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetX(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
+static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetY(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
+static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetW(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
+static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetWidth(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
+static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetH(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
+static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ long _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (long )wxRegionIterator_GetHeight(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("l",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
+static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRect * _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxRect (wxRegionIterator_GetRect(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
+static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxRegionIterator_HaveRects(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
+static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxRegionIterator_Reset(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static void wxRegionIterator_Next(wxRegionIterator *self) {
+ (*self) ++;
+ }
+static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxRegionIterator * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxRegionIterator_Next(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static PyMethodDef gdicMethods[] = {
+ { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
+ { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
+ { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
+ { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
{ "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
{ "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
{ "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
{ "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
{ "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
+ { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
+ { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
+ { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
+ { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
{ "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
{ "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
{ "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
{ "_long","_signed_long",0},
{ "_wxImageList","_class_wxImageList",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
+ { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
+ { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
+ { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
+ { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
+ { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
+ { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
+ { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
+ { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
+ { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
+ { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
+ { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
+ { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
+ { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
+ { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
+ { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
+ { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
{ "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
{ "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
{ "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
{ "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
{ "_wxDC","_class_wxDC",0},
+ { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
+ { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
+ { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
+ { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject},
+ { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
+ { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject},
+ { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
+ { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject},
+ { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
+ { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
+ { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
+ { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
+ { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
+ { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
+ { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
+ { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
+ { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
+ { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
+ { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
+ { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
+ { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject},
+ { "_class_wxObject","_wxDC",SwigwxDCTowxObject},
+ { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
+ { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject},
+ { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
+ { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject},
+ { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject},
+ { "_class_wxObject","_wxPen",SwigwxPenTowxObject},
+ { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
+ { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
+ { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject},
+ { "_class_wxObject","_wxColour",SwigwxColourTowxObject},
+ { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
+ { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject},
+ { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject},
+ { "_class_wxObject","_wxFont",SwigwxFontTowxObject},
+ { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
+ { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject},
+ { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject},
+ { "_class_wxObject","_wxIcon",SwigwxIconTowxObject},
+ { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject},
+ { "_class_wxObject","_wxMask",SwigwxMaskTowxObject},
+ { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
+ { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
+ { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
+ { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_wxBusyInfo","_class_wxBusyInfo",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_wxClientDC","_class_wxClientDC",0},
+ { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
+ { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
+ { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
+ { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
+ { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
+ { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
+ { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
+ { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
+ { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
+ { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
+ { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
+ { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
+ { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
+ { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
+ { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
+ { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
+ { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
+ { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
+ { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
+ { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
+ { "_wxObject","_class_wxDC",SwigwxDCTowxObject},
+ { "_wxObject","_wxDC",SwigwxDCTowxObject},
+ { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
+ { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
+ { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
+ { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
+ { "_wxObject","_class_wxPen",SwigwxPenTowxObject},
+ { "_wxObject","_wxPen",SwigwxPenTowxObject},
+ { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
+ { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
+ { "_wxObject","_class_wxColour",SwigwxColourTowxObject},
+ { "_wxObject","_wxColour",SwigwxColourTowxObject},
+ { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
+ { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
+ { "_wxObject","_class_wxFont",SwigwxFontTowxObject},
+ { "_wxObject","_wxFont",SwigwxFontTowxObject},
+ { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
+ { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
+ { "_wxObject","_class_wxIcon",SwigwxIconTowxObject},
+ { "_wxObject","_wxIcon",SwigwxIconTowxObject},
+ { "_wxObject","_class_wxMask",SwigwxMaskTowxObject},
+ { "_wxObject","_wxMask",SwigwxMaskTowxObject},
+ { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
+ { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
+ { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
+ { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
+ { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
+ { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
+ { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
+ { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
+ { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
+ { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
+ { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
+ { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
+ { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
+ PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
+ PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
+ PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
import gdic
from misc import *
-class wxBitmapPtr :
+class wxGDIObjectPtr(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,gdic=gdic):
+ if self.thisown == 1 :
+ gdic.delete_wxGDIObject(self)
+ def GetVisible(self, *_args, **_kwargs):
+ val = apply(gdic.wxGDIObject_GetVisible,(self,) + _args, _kwargs)
+ return val
+ def SetVisible(self, *_args, **_kwargs):
+ val = apply(gdic.wxGDIObject_SetVisible,(self,) + _args, _kwargs)
+ return val
+ def IsNull(self, *_args, **_kwargs):
+ val = apply(gdic.wxGDIObject_IsNull,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxGDIObject instance at %s>" % (self.this,)
+class wxGDIObject(wxGDIObjectPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(gdic.new_wxGDIObject,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxBitmapPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxMaskPtr :
+class wxMaskPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxIconPtr :
+class wxIconPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxCursorPtr :
+class wxCursorPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxFontPtr :
+class wxFontPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxFontListPtr :
+class wxFontListPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxColourPtr :
+class wxColourPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxColourDatabasePtr :
+class wxColourDatabasePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPenPtr :
+class wxPenPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPenListPtr :
+class wxPenListPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxBrushPtr :
+class wxBrushPtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxDCPtr :
+class wxDCPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPalettePtr :
+class wxPalettePtr(wxGDIObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxImageListPtr :
+class wxImageListPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
+class wxRegionPtr(wxGDIObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,gdic=gdic):
+ if self.thisown == 1 :
+ gdic.delete_wxRegion(self)
+ def Clear(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
+ return val
+ def Contains(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
+ return val
+ def ContainsPoint(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
+ return val
+ def ContainsRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_ContainsRect,(self,) + _args, _kwargs)
+ return val
+ def ContainsRectDim(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
+ return val
+ def GetBox(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_GetBox,(self,) + _args, _kwargs)
+ if val: val = wxRectPtr(val) ; val.thisown = 1
+ return val
+ def Intersect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Intersect,(self,) + _args, _kwargs)
+ return val
+ def IntersectRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_IntersectRect,(self,) + _args, _kwargs)
+ return val
+ def IntersectRegion(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
+ return val
+ def IsEmpty(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_IsEmpty,(self,) + _args, _kwargs)
+ return val
+ def Union(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Union,(self,) + _args, _kwargs)
+ return val
+ def UnionRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_UnionRect,(self,) + _args, _kwargs)
+ return val
+ def UnionRegion(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_UnionRegion,(self,) + _args, _kwargs)
+ return val
+ def Subtract(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Subtract,(self,) + _args, _kwargs)
+ return val
+ def SubtractRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_SubtractRect,(self,) + _args, _kwargs)
+ return val
+ def SubtractRegion(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
+ return val
+ def Xor(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_Xor,(self,) + _args, _kwargs)
+ return val
+ def XorRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_XorRect,(self,) + _args, _kwargs)
+ return val
+ def XorRegion(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegion_XorRegion,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxRegion instance at %s>" % (self.this,)
+class wxRegion(wxRegionPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(gdic.new_wxRegion,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
+class wxRegionIteratorPtr(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,gdic=gdic):
+ if self.thisown == 1 :
+ gdic.delete_wxRegionIterator(self)
+ def GetX(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetX,(self,) + _args, _kwargs)
+ return val
+ def GetY(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetY,(self,) + _args, _kwargs)
+ return val
+ def GetW(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetW,(self,) + _args, _kwargs)
+ return val
+ def GetWidth(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
+ return val
+ def GetH(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetH,(self,) + _args, _kwargs)
+ return val
+ def GetHeight(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
+ return val
+ def GetRect(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
+ if val: val = wxRectPtr(val) ; val.thisown = 1
+ return val
+ def HaveRects(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
+ return val
+ def Reset(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_Reset,(self,) + _args, _kwargs)
+ return val
+ def Next(self, *_args, **_kwargs):
+ val = apply(gdic.wxRegionIterator_Next,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxRegionIterator instance at %s>" % (self.this,)
+class wxRegionIterator(wxRegionIteratorPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(gdic.new_wxRegionIterator,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
#-------------- FUNCTION WRAPPERS ------------------
wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
+wxOutRegion = gdic.wxOutRegion
+wxPartRegion = gdic.wxPartRegion
+wxInRegion = gdic.wxInRegion
static char* wxStringErrorMsg = "string type is required for parameter";
#endif
-#define PYCALLBACK_GCA_INTINT(PCLASS, CBNAME) \
- wxGridCellAttr* CBNAME(int a, int b) { \
- wxGridCellAttr* rval = NULL; \
- bool doSave = wxPyRestoreThread(); \
- if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
- PyObject* ro; \
- wxGridCellAttr* ptr; \
- ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(ii)", a, b)); \
- if (ro) { \
+#define PYCALLBACK_GCA_INTINTKIND(PCLASS, CBNAME) \
+ wxGridCellAttr* CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
+ wxGridCellAttr* rval = NULL; \
+ bool doSave = wxPyRestoreThread(); \
+ if (wxPyCBH_findCallback(m_myInst, #CBNAME)) { \
+ PyObject* ro; \
+ wxGridCellAttr* ptr; \
+ ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iii)", a, b, c)); \
+ if (ro) { \
if (!SWIG_GetPtrObj(ro, (void **)&ptr, "_wxGridCellAttr_p")) \
- rval = ptr; \
- Py_DECREF(ro); \
- } \
- } \
- else \
- rval = PCLASS::CBNAME(a, b); \
- wxPySaveThread(doSave); \
- return rval; \
- } \
- wxGridCellAttr *base_##CBNAME(int a, int b) { \
- return PCLASS::CBNAME(a, b); \
+ rval = ptr; \
+ Py_DECREF(ro); \
+ } \
+ } \
+ else \
+ rval = PCLASS::CBNAME(a, b, c); \
+ wxPySaveThread(doSave); \
+ return rval; \
+ } \
+ wxGridCellAttr *base_##CBNAME(int a, int b, wxGridCellAttr::wxAttrKind c) { \
+ return PCLASS::CBNAME(a, b, c); \
}
public:
wxPyGridCellAttrProvider() : wxGridCellAttrProvider() {};
- PYCALLBACK_GCA_INTINT(wxGridCellAttrProvider, GetAttr);
+ PYCALLBACK_GCA_INTINTKIND(wxGridCellAttrProvider, GetAttr);
PYCALLBACK__GCAINTINT(wxGridCellAttrProvider, SetAttr);
PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetRowAttr);
PYCALLBACK__GCAINT(wxGridCellAttrProvider, SetColAttr);
PYCALLBACK__INTSTRING(wxGridTableBase, SetRowLabelValue);
PYCALLBACK__INTSTRING(wxGridTableBase, SetColLabelValue);
PYCALLBACK_BOOL_(wxGridTableBase, CanHaveAttributes);
- PYCALLBACK_GCA_INTINT(wxGridTableBase, GetAttr);
+ PYCALLBACK_GCA_INTINTKIND(wxGridTableBase, GetAttr);
PYCALLBACK__GCAINTINT(wxGridTableBase, SetAttr);
PYCALLBACK__GCAINT(wxGridTableBase, SetRowAttr);
PYCALLBACK__GCAINT(wxGridTableBase, SetColAttr);
wxGridCellEditor * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellEditor_GetControl",_kwnames,&_argo0))
_result = (wxControl *)wxGridCellEditor_GetControl(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+#define wxGridCellAttr_MergeWith(_swigobj,_swigarg0) (_swigobj->MergeWith(_swigarg0))
+static PyObject *_wrap_wxGridCellAttr_MergeWith(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGridCellAttr * _arg0;
+ wxGridCellAttr * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","mergefrom", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGridCellAttr_MergeWith",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellAttr_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellAttr_MergeWith. Expected _wxGridCellAttr_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGridCellAttr_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGridCellAttr_MergeWith. Expected _wxGridCellAttr_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxGridCellAttr_MergeWith(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxGridCellAttr_IncRef(_swigobj) (_swigobj->IncRef())
static PyObject *_wrap_wxGridCellAttr_IncRef(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+#define wxGridCellAttr_SetKind(_swigobj,_swigarg0) (_swigobj->SetKind(_swigarg0))
+static PyObject *_wrap_wxGridCellAttr_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGridCellAttr * _arg0;
+ wxGridCellAttr::wxAttrKind _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","kind", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGridCellAttr_SetKind",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellAttr_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellAttr_SetKind. Expected _wxGridCellAttr_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxGridCellAttr_SetKind(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxGridCellAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
static PyObject *_wrap_wxGridCellAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+#define wxGridCellAttr_HasReadWriteMode(_swigobj) (_swigobj->HasReadWriteMode())
+static PyObject *_wrap_wxGridCellAttr_HasReadWriteMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxGridCellAttr * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridCellAttr_HasReadWriteMode",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGridCellAttr_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGridCellAttr_HasReadWriteMode. Expected _wxGridCellAttr_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxGridCellAttr_HasReadWriteMode(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxGridCellAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
static PyObject *_wrap_wxGridCellAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
-#define wxGridCellAttrProvider_GetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAttr(_swigarg0,_swigarg1))
+#define wxGridCellAttrProvider_GetAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetAttr(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_wxGridCellAttrProvider_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridCellAttr * _result;
wxGridCellAttrProvider * _arg0;
int _arg1;
int _arg2;
+ wxGridCellAttr::wxAttrKind _arg3;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","row","col", NULL };
+ char *_kwnames[] = { "self","row","col","kind", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxGridCellAttrProvider_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxGridCellAttrProvider_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxGridCellAttr *)wxGridCellAttrProvider_GetAttr(_arg0,_arg1,_arg2);
+ _result = (wxGridCellAttr *)wxGridCellAttrProvider_GetAttr(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
} if (_result) {
return _resultobj;
}
-#define wxPyGridCellAttrProvider_base_GetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_GetAttr(_swigarg0,_swigarg1))
+#define wxPyGridCellAttrProvider_base_GetAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_GetAttr(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_wxPyGridCellAttrProvider_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridCellAttr * _result;
wxPyGridCellAttrProvider * _arg0;
int _arg1;
int _arg2;
+ wxGridCellAttr::wxAttrKind _arg3;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","row","col", NULL };
+ char *_kwnames[] = { "self","row","col","kind", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyGridCellAttrProvider_base_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyGridCellAttrProvider_base_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxGridCellAttr *)wxPyGridCellAttrProvider_base_GetAttr(_arg0,_arg1,_arg2);
+ _result = (wxGridCellAttr *)wxPyGridCellAttrProvider_base_GetAttr(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
} if (_result) {
return _resultobj;
}
+static void *SwigwxGridTableBaseTowxObject(void *ptr) {
+ wxGridTableBase *src;
+ wxObject *dest;
+ src = (wxGridTableBase *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxGridTableBase_SetAttrProvider(_swigobj,_swigarg0) (_swigobj->SetAttrProvider(_swigarg0))
static PyObject *_wrap_wxGridTableBase_SetAttrProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridTableBase * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridTableBase_GetView",_kwnames,&_argo0))
_result = (wxGrid *)wxGridTableBase_GetView(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxGrid_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
-#define wxGridTableBase_GetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetAttr(_swigarg0,_swigarg1))
+#define wxGridTableBase_GetAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetAttr(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_wxGridTableBase_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridCellAttr * _result;
wxGridTableBase * _arg0;
int _arg1;
int _arg2;
+ wxGridCellAttr::wxAttrKind _arg3;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","row","col", NULL };
+ char *_kwnames[] = { "self","row","col","kind", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxGridTableBase_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxGridTableBase_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxGridCellAttr *)wxGridTableBase_GetAttr(_arg0,_arg1,_arg2);
+ _result = (wxGridCellAttr *)wxGridTableBase_GetAttr(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
} if (_result) {
return (void *) dest;
}
+static void *SwigwxPyGridTableBaseTowxObject(void *ptr) {
+ wxPyGridTableBase *src;
+ wxObject *dest;
+ src = (wxPyGridTableBase *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPyGridTableBase() (new wxPyGridTableBase())
static PyObject *_wrap_new_wxPyGridTableBase(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
-#define wxPyGridTableBase_base_GetAttr(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_GetAttr(_swigarg0,_swigarg1))
+#define wxPyGridTableBase_base_GetAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->base_GetAttr(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_wxPyGridTableBase_base_GetAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridCellAttr * _result;
wxPyGridTableBase * _arg0;
int _arg1;
int _arg2;
+ wxGridCellAttr::wxAttrKind _arg3;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","row","col", NULL };
+ char *_kwnames[] = { "self","row","col","kind", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPyGridTableBase_base_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxPyGridTableBase_base_GetAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxGridCellAttr *)wxPyGridTableBase_base_GetAttr(_arg0,_arg1,_arg2);
+ _result = (wxGridCellAttr *)wxPyGridTableBase_base_GetAttr(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
} if (_result) {
return (void *) dest;
}
+static void *SwigwxGridStringTableTowxObject(void *ptr) {
+ wxGridStringTable *src;
+ wxObject *dest;
+ src = (wxGridStringTable *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGridStringTable(_swigarg0,_swigarg1) (new wxGridStringTable(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxGridStringTable(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGridTableMessage * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGridTableMessage_GetTableObject",_kwnames,&_argo0))
_result = (wxGridTableBase *)wxGridTableMessage_GetTableObject(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxGridTableBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxGridTowxObject(void *ptr) {
+ wxGrid *src;
+ wxObject *dest;
+ src = (wxGrid *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGrid(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxGrid(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxGrid(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxGrid * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetTable",_kwnames,&_argo0))
_result = (wxGridTableBase *)wxGrid_GetTable(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxGridTableBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+#define wxGrid_GetCellHighlightPenWidth(_swigobj) (_swigobj->GetCellHighlightPenWidth())
+static PyObject *_wrap_wxGrid_GetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetCellHighlightPenWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetCellHighlightPenWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxGrid_GetCellHighlightPenWidth(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxGrid_GetCellHighlightROPenWidth(_swigobj) (_swigobj->GetCellHighlightROPenWidth())
+static PyObject *_wrap_wxGrid_GetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetCellHighlightROPenWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetCellHighlightROPenWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxGrid_GetCellHighlightROPenWidth(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxGrid_SetRowLabelSize(_swigobj,_swigarg0) (_swigobj->SetRowLabelSize(_swigarg0))
static PyObject *_wrap_wxGrid_SetRowLabelSize(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+#define wxGrid_SetCellHighlightPenWidth(_swigobj,_swigarg0) (_swigobj->SetCellHighlightPenWidth(_swigarg0))
+static PyObject *_wrap_wxGrid_SetCellHighlightPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGrid * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","width", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGrid_SetCellHighlightPenWidth",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_SetCellHighlightPenWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxGrid_SetCellHighlightPenWidth(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxGrid_SetCellHighlightROPenWidth(_swigobj,_swigarg0) (_swigobj->SetCellHighlightROPenWidth(_swigarg0))
+static PyObject *_wrap_wxGrid_SetCellHighlightROPenWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxGrid * _arg0;
+ int _arg1;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","width", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGrid_SetCellHighlightROPenWidth",_kwnames,&_argo0,&_arg1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_SetCellHighlightROPenWidth. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxGrid_SetCellHighlightROPenWidth(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxGrid_EnableDragRowSize(_swigobj,_swigarg0) (_swigobj->EnableDragRowSize(_swigarg0))
static PyObject *_wrap_wxGrid_EnableDragRowSize(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+#define wxGrid_GetGridWindow(_swigobj) (_swigobj->GetGridWindow())
+static PyObject *_wrap_wxGrid_GetGridWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetGridWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetGridWindow. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxWindow *)wxGrid_GetGridWindow(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxGrid_GetGridRowLabelWindow(_swigobj) (_swigobj->GetGridRowLabelWindow())
+static PyObject *_wrap_wxGrid_GetGridRowLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetGridRowLabelWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetGridRowLabelWindow. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxWindow *)wxGrid_GetGridRowLabelWindow(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxGrid_GetGridColLabelWindow(_swigobj) (_swigobj->GetGridColLabelWindow())
+static PyObject *_wrap_wxGrid_GetGridColLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetGridColLabelWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetGridColLabelWindow. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxWindow *)wxGrid_GetGridColLabelWindow(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
+#define wxGrid_GetGridCornerLabelWindow(_swigobj) (_swigobj->GetGridCornerLabelWindow())
+static PyObject *_wrap_wxGrid_GetGridCornerLabelWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxWindow * _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetGridCornerLabelWindow",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetGridCornerLabelWindow. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxWindow *)wxGrid_GetGridCornerLabelWindow(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+}{ _resultobj = wxPyMake_wxObject(_result); }
+ return _resultobj;
+}
+
static void *SwigwxGridEventTowxNotifyEvent(void *ptr) {
wxGridEvent *src;
wxNotifyEvent *dest;
return (void *) dest;
}
+static void *SwigwxGridEventTowxObject(void *ptr) {
+ wxGridEvent *src;
+ wxObject *dest;
+ src = (wxGridEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGridEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10,_swigarg11) (new wxGridEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9,_swigarg10,_swigarg11))
static PyObject *_wrap_new_wxGridEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxGridSizeEventTowxObject(void *ptr) {
+ wxGridSizeEvent *src;
+ wxObject *dest;
+ src = (wxGridSizeEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGridSizeEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxGridSizeEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
static PyObject *_wrap_new_wxGridSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxGridRangeSelectEventTowxObject(void *ptr) {
+ wxGridRangeSelectEvent *src;
+ wxObject *dest;
+ src = (wxGridRangeSelectEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGridRangeSelectEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9) (new wxGridRangeSelectEvent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8,_swigarg9))
static PyObject *_wrap_new_wxGridRangeSelectEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "wxGridEvent_GetCol", (PyCFunction) _wrap_wxGridEvent_GetCol, METH_VARARGS | METH_KEYWORDS },
{ "wxGridEvent_GetRow", (PyCFunction) _wrap_wxGridEvent_GetRow, METH_VARARGS | METH_KEYWORDS },
{ "new_wxGridEvent", (PyCFunction) _wrap_new_wxGridEvent, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetGridCornerLabelWindow", (PyCFunction) _wrap_wxGrid_GetGridCornerLabelWindow, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetGridColLabelWindow", (PyCFunction) _wrap_wxGrid_GetGridColLabelWindow, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetGridRowLabelWindow", (PyCFunction) _wrap_wxGrid_GetGridRowLabelWindow, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetGridWindow", (PyCFunction) _wrap_wxGrid_GetGridWindow, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetMargins", (PyCFunction) _wrap_wxGrid_SetMargins, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetDefaultRendererForType", (PyCFunction) _wrap_wxGrid_GetDefaultRendererForType, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetDefaultEditorForType", (PyCFunction) _wrap_wxGrid_GetDefaultEditorForType, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_CanDragRowSize", (PyCFunction) _wrap_wxGrid_CanDragRowSize, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_DisableDragRowSize", (PyCFunction) _wrap_wxGrid_DisableDragRowSize, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_EnableDragRowSize", (PyCFunction) _wrap_wxGrid_EnableDragRowSize, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_SetCellHighlightROPenWidth", (PyCFunction) _wrap_wxGrid_SetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_SetCellHighlightPenWidth", (PyCFunction) _wrap_wxGrid_SetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetCellHighlightColour", (PyCFunction) _wrap_wxGrid_SetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetGridLineColour", (PyCFunction) _wrap_wxGrid_SetGridLineColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetColLabelValue", (PyCFunction) _wrap_wxGrid_SetColLabelValue, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetLabelBackgroundColour", (PyCFunction) _wrap_wxGrid_SetLabelBackgroundColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetColLabelSize", (PyCFunction) _wrap_wxGrid_SetColLabelSize, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetRowLabelSize", (PyCFunction) _wrap_wxGrid_SetRowLabelSize, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetCellHighlightROPenWidth", (PyCFunction) _wrap_wxGrid_GetCellHighlightROPenWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetCellHighlightPenWidth", (PyCFunction) _wrap_wxGrid_GetCellHighlightPenWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetCellHighlightColour", (PyCFunction) _wrap_wxGrid_GetCellHighlightColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetGridLineColour", (PyCFunction) _wrap_wxGrid_GetGridLineColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetColLabelValue", (PyCFunction) _wrap_wxGrid_GetColLabelValue, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_GetFont", (PyCFunction) _wrap_wxGridCellAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_GetBackgroundColour", (PyCFunction) _wrap_wxGridCellAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_GetTextColour", (PyCFunction) _wrap_wxGridCellAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxGridCellAttr_HasReadWriteMode", (PyCFunction) _wrap_wxGridCellAttr_HasReadWriteMode, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasEditor", (PyCFunction) _wrap_wxGridCellAttr_HasEditor, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasRenderer", (PyCFunction) _wrap_wxGridCellAttr_HasRenderer, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasAlignment", (PyCFunction) _wrap_wxGridCellAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasFont", (PyCFunction) _wrap_wxGridCellAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasBackgroundColour", (PyCFunction) _wrap_wxGridCellAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_HasTextColour", (PyCFunction) _wrap_wxGridCellAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
+ { "wxGridCellAttr_SetKind", (PyCFunction) _wrap_wxGridCellAttr_SetKind, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_SetEditor", (PyCFunction) _wrap_wxGridCellAttr_SetEditor, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_SetRenderer", (PyCFunction) _wrap_wxGridCellAttr_SetRenderer, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_SetReadOnly", (PyCFunction) _wrap_wxGridCellAttr_SetReadOnly, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_SetTextColour", (PyCFunction) _wrap_wxGridCellAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_DecRef", (PyCFunction) _wrap_wxGridCellAttr_DecRef, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_IncRef", (PyCFunction) _wrap_wxGridCellAttr_IncRef, METH_VARARGS | METH_KEYWORDS },
+ { "wxGridCellAttr_MergeWith", (PyCFunction) _wrap_wxGridCellAttr_MergeWith, METH_VARARGS | METH_KEYWORDS },
{ "wxGridCellAttr_Clone", (PyCFunction) _wrap_wxGridCellAttr_Clone, METH_VARARGS | METH_KEYWORDS },
{ "new_wxGridCellAttr", (PyCFunction) _wrap_new_wxGridCellAttr, METH_VARARGS | METH_KEYWORDS },
{ "new_wxGridCellChoiceEditor", (PyCFunction) _wrap_new_wxGridCellChoiceEditor, METH_VARARGS | METH_KEYWORDS },
{ "_class_wxGauge","_wxGauge",0},
{ "_wxGridCellCoords","_class_wxGridCellCoords",0},
{ "_wxGridCellNumberRenderer","_class_wxGridCellNumberRenderer",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxGridSizeEvent","_wxGridSizeEvent",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxGridCellBoolEditor","_wxGridCellBoolEditor",0},
+ { "_class_wxObject","_class_wxGridRangeSelectEvent",SwigwxGridRangeSelectEventTowxObject},
+ { "_class_wxObject","_wxGridRangeSelectEvent",SwigwxGridRangeSelectEventTowxObject},
+ { "_class_wxObject","_class_wxGridSizeEvent",SwigwxGridSizeEventTowxObject},
+ { "_class_wxObject","_wxGridSizeEvent",SwigwxGridSizeEventTowxObject},
+ { "_class_wxObject","_class_wxGridEvent",SwigwxGridEventTowxObject},
+ { "_class_wxObject","_wxGridEvent",SwigwxGridEventTowxObject},
+ { "_class_wxObject","_class_wxGrid",SwigwxGridTowxObject},
+ { "_class_wxObject","_wxGrid",SwigwxGridTowxObject},
+ { "_class_wxObject","_class_wxGridStringTable",SwigwxGridStringTableTowxObject},
+ { "_class_wxObject","_wxGridStringTable",SwigwxGridStringTableTowxObject},
+ { "_class_wxObject","_class_wxPyGridTableBase",SwigwxPyGridTableBaseTowxObject},
+ { "_class_wxObject","_wxPyGridTableBase",SwigwxPyGridTableBaseTowxObject},
+ { "_class_wxObject","_class_wxGridTableBase",SwigwxGridTableBaseTowxObject},
+ { "_class_wxObject","_wxGridTableBase",SwigwxGridTableBaseTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_WXGRIDSELECTIONMODES",0},
{ "_size_t","_wxCoord",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
{ "_wxGridCellBoolEditor","_class_wxGridCellBoolEditor",0},
+ { "_wxObject","_class_wxGridRangeSelectEvent",SwigwxGridRangeSelectEventTowxObject},
+ { "_wxObject","_wxGridRangeSelectEvent",SwigwxGridRangeSelectEventTowxObject},
+ { "_wxObject","_class_wxGridSizeEvent",SwigwxGridSizeEventTowxObject},
+ { "_wxObject","_wxGridSizeEvent",SwigwxGridSizeEventTowxObject},
+ { "_wxObject","_class_wxGridEvent",SwigwxGridEventTowxObject},
+ { "_wxObject","_wxGridEvent",SwigwxGridEventTowxObject},
+ { "_wxObject","_class_wxGrid",SwigwxGridTowxObject},
+ { "_wxObject","_wxGrid",SwigwxGridTowxObject},
+ { "_wxObject","_class_wxGridStringTable",SwigwxGridStringTableTowxObject},
+ { "_wxObject","_wxGridStringTable",SwigwxGridStringTableTowxObject},
+ { "_wxObject","_class_wxPyGridTableBase",SwigwxPyGridTableBaseTowxObject},
+ { "_wxObject","_wxPyGridTableBase",SwigwxPyGridTableBaseTowxObject},
+ { "_wxObject","_class_wxGridTableBase",SwigwxGridTableBaseTowxObject},
+ { "_wxObject","_wxGridTableBase",SwigwxGridTableBaseTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_WXGRIDSELECTIONMODES",0},
{ "_int","_wxCoord",0},
wxClassInfo::CleanUpClasses();
wxClassInfo::InitializeClasses();
+ PyDict_SetItemString(d,"wxGridCellAttr_Any", PyInt_FromLong((long) wxGridCellAttr::Any));
+ PyDict_SetItemString(d,"wxGridCellAttr_Default", PyInt_FromLong((long) wxGridCellAttr::Default));
+ PyDict_SetItemString(d,"wxGridCellAttr_Cell", PyInt_FromLong((long) wxGridCellAttr::Cell));
+ PyDict_SetItemString(d,"wxGridCellAttr_Row", PyInt_FromLong((long) wxGridCellAttr::Row));
+ PyDict_SetItemString(d,"wxGridCellAttr_Col", PyInt_FromLong((long) wxGridCellAttr::Col));
+ PyDict_SetItemString(d,"wxGridCellAttr_Merged", PyInt_FromLong((long) wxGridCellAttr::Merged));
PyDict_SetItemString(d,"wxGrid_wxGridSelectCells", PyInt_FromLong((long) wxGrid::wxGridSelectCells));
PyDict_SetItemString(d,"wxGrid_wxGridSelectRows", PyInt_FromLong((long) wxGrid::wxGridSelectRows));
PyDict_SetItemString(d,"wxGrid_wxGridSelectColumns", PyInt_FromLong((long) wxGrid::wxGridSelectColumns));
return val
def GetControl(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellEditor_GetControl,(self,) + _args, _kwargs)
- if val: val = wxControlPtr(val)
return val
def SetControl(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellEditor_SetControl,(self,) + _args, _kwargs)
class wxGridCellAttrPtr :
+ Any = gridc.wxGridCellAttr_Any
+ Default = gridc.wxGridCellAttr_Default
+ Cell = gridc.wxGridCellAttr_Cell
+ Row = gridc.wxGridCellAttr_Row
+ Col = gridc.wxGridCellAttr_Col
+ Merged = gridc.wxGridCellAttr_Merged
def __init__(self,this):
self.this = this
self.thisown = 0
val = apply(gridc.wxGridCellAttr_Clone,(self,) + _args, _kwargs)
if val: val = wxGridCellAttrPtr(val)
return val
+ def MergeWith(self, *_args, **_kwargs):
+ val = apply(gridc.wxGridCellAttr_MergeWith,(self,) + _args, _kwargs)
+ return val
def IncRef(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellAttr_IncRef,(self,) + _args, _kwargs)
return val
def SetEditor(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellAttr_SetEditor,(self,) + _args, _kwargs)
return val
+ def SetKind(self, *_args, **_kwargs):
+ val = apply(gridc.wxGridCellAttr_SetKind,(self,) + _args, _kwargs)
+ return val
def HasTextColour(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellAttr_HasTextColour,(self,) + _args, _kwargs)
return val
def HasEditor(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellAttr_HasEditor,(self,) + _args, _kwargs)
return val
+ def HasReadWriteMode(self, *_args, **_kwargs):
+ val = apply(gridc.wxGridCellAttr_HasReadWriteMode,(self,) + _args, _kwargs)
+ return val
def GetTextColour(self, *_args, **_kwargs):
val = apply(gridc.wxGridCellAttr_GetTextColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val)
-class wxGridTableBasePtr :
+class wxGridTableBasePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetView(self, *_args, **_kwargs):
val = apply(gridc.wxGridTableBase_GetView,(self,) + _args, _kwargs)
- if val: val = wxGridPtr(val)
return val
def GetNumberRows(self, *_args, **_kwargs):
val = apply(gridc.wxGridTableBase_GetNumberRows,(self,) + _args, _kwargs)
return val
def GetTableObject(self, *_args, **_kwargs):
val = apply(gridc.wxGridTableMessage_GetTableObject,(self,) + _args, _kwargs)
- if val: val = wxGridTableBasePtr(val)
return val
def SetId(self, *_args, **_kwargs):
val = apply(gridc.wxGridTableMessage_SetId,(self,) + _args, _kwargs)
return val
def GetTable(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetTable,(self,) + _args, _kwargs)
- if val: val = wxGridTableBasePtr(val)
return val
def SetTable(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_SetTable,(self,) + _args, _kwargs)
val = apply(gridc.wxGrid_GetCellHighlightColour,(self,) + _args, _kwargs)
if val: val = wxColourPtr(val) ; val.thisown = 1
return val
+ def GetCellHighlightPenWidth(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetCellHighlightPenWidth,(self,) + _args, _kwargs)
+ return val
+ def GetCellHighlightROPenWidth(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetCellHighlightROPenWidth,(self,) + _args, _kwargs)
+ return val
def SetRowLabelSize(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_SetRowLabelSize,(self,) + _args, _kwargs)
return val
def SetCellHighlightColour(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_SetCellHighlightColour,(self,) + _args, _kwargs)
return val
+ def SetCellHighlightPenWidth(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_SetCellHighlightPenWidth,(self,) + _args, _kwargs)
+ return val
+ def SetCellHighlightROPenWidth(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_SetCellHighlightROPenWidth,(self,) + _args, _kwargs)
+ return val
def EnableDragRowSize(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_EnableDragRowSize,(self,) + _args, _kwargs)
return val
def SetMargins(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_SetMargins,(self,) + _args, _kwargs)
return val
+ def GetGridWindow(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetGridWindow,(self,) + _args, _kwargs)
+ return val
+ def GetGridRowLabelWindow(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetGridRowLabelWindow,(self,) + _args, _kwargs)
+ return val
+ def GetGridColLabelWindow(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetGridColLabelWindow,(self,) + _args, _kwargs)
+ return val
+ def GetGridCornerLabelWindow(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetGridCornerLabelWindow,(self,) + _args, _kwargs)
+ return val
def __repr__(self):
return "<C wxGrid instance at %s>" % (self.this,)
class wxGrid(wxGridPtr):
#endif
class wxPyHtmlTagHandler : public wxHtmlTagHandler {
+ DECLARE_DYNAMIC_CLASS(wxPyHtmlTagHandler);
public:
wxPyHtmlTagHandler() : wxHtmlTagHandler() {};
PYPRIVATE;
};
+IMPLEMENT_DYNAMIC_CLASS(wxPyHtmlTagHandler, wxHtmlTagHandler);
+
IMP_PYCALLBACK_STRING__pure(wxPyHtmlTagHandler, wxHtmlTagHandler, GetSupportedTags);
IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlTagHandler, wxHtmlTagHandler, HandleTag);
class wxPyHtmlWinTagHandler : public wxHtmlWinTagHandler {
+ DECLARE_DYNAMIC_CLASS(wxPyHtmlWinTagHandler);
public:
wxPyHtmlWinTagHandler() : wxHtmlWinTagHandler() {};
PYPRIVATE;
};
+IMPLEMENT_DYNAMIC_CLASS( wxPyHtmlWinTagHandler, wxHtmlWinTagHandler);
+
IMP_PYCALLBACK_STRING__pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, GetSupportedTags);
IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, HandleTag);
IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle);
- void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
+void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
bool doSave = wxPyRestoreThread();
if (wxPyCBH_findCallback(m_myInst, "OnLinkClicked")) {
PyObject* obj = wxPyConstructObject((void*)&link, "wxHtmlLinkInfo", 0);
return _resultobj;
}
+static void *SwigwxHtmlLinkInfoTowxObject(void *ptr) {
+ wxHtmlLinkInfo *src;
+ wxObject *dest;
+ src = (wxHtmlLinkInfo *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlLinkInfo(_swigarg0,_swigarg1) (new wxHtmlLinkInfo(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxHtmlLinkInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxHtmlLinkInfo * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlLinkInfo_GetEvent",_kwnames,&_argo0))
_result = (wxMouseEvent *)wxHtmlLinkInfo_GetEvent(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMouseEvent_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxHtmlTagTowxObject(void *ptr) {
+ wxHtmlTag *src;
+ wxObject *dest;
+ src = (wxHtmlTag *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxHtmlTag_GetName(_swigobj) (_swigobj->GetName())
static PyObject *_wrap_wxHtmlTag_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxHtmlParserTowxObject(void *ptr) {
+ wxHtmlParser *src;
+ wxObject *dest;
+ src = (wxHtmlParser *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxHtmlParser_SetFS(_swigobj,_swigarg0) (_swigobj->SetFS(_swigarg0))
static PyObject *_wrap_wxHtmlParser_SetFS(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxHtmlParser * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlParser_GetFS",_kwnames,&_argo0))
_result = (wxFileSystem *)wxHtmlParser_GetFS(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileSystem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo0 = 0;
PyObject * _obj1 = 0;
char *_kwnames[] = { "self","source", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxHtmlParser_Parse",_kwnames,&_argo0,&_obj1))
_result = (wxObject *)wxHtmlParser_Parse(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxObject_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj1)
delete _arg1;
return (void *) dest;
}
+static void *SwigwxHtmlWinParserTowxObject(void *ptr) {
+ wxHtmlWinParser *src;
+ wxObject *dest;
+ src = (wxHtmlWinParser *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlWinParser(_swigarg0) (new wxHtmlWinParser(_swigarg0))
static PyObject *_wrap_new_wxHtmlWinParser(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxHtmlWinParser * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetDC",_kwnames,&_argo0))
_result = (wxDC *)wxHtmlWinParser_GetDC(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxHtmlWinParser * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWinParser_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxHtmlWinParser_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxPyHtmlTagHandlerTowxObject(void *ptr) {
+ wxPyHtmlTagHandler *src;
+ wxObject *dest;
+ src = (wxPyHtmlTagHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlTagHandler() (new wxPyHtmlTagHandler())
static PyObject *_wrap_new_wxHtmlTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyHtmlWinTagHandlerTowxObject(void *ptr) {
+ wxPyHtmlWinTagHandler *src;
+ wxObject *dest;
+ src = (wxPyHtmlWinTagHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlWinTagHandler() (new wxPyHtmlWinTagHandler())
static PyObject *_wrap_new_wxHtmlWinTagHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxHtmlCellTowxObject(void *ptr) {
+ wxHtmlCell *src;
+ wxObject *dest;
+ src = (wxHtmlCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlCell() (new wxHtmlCell())
static PyObject *_wrap_new_wxHtmlCell(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxHtmlWordCellTowxHtmlCell(void *ptr) {
+ wxHtmlWordCell *src;
+ wxHtmlCell *dest;
+ src = (wxHtmlWordCell *) ptr;
+ dest = (wxHtmlCell *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxHtmlWordCellTowxObject(void *ptr) {
+ wxHtmlWordCell *src;
+ wxObject *dest;
+ src = (wxHtmlWordCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxHtmlWordCell(_swigarg0,_swigarg1) (new wxHtmlWordCell(_swigarg0,_swigarg1))
+static PyObject *_wrap_new_wxHtmlWordCell(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxHtmlWordCell * _result;
+ wxString * _arg0;
+ wxDC * _arg1;
+ PyObject * _obj0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "word","dc", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxHtmlWordCell",_kwnames,&_obj0,&_argo1))
+ return NULL;
+{
+#if PYTHON_API_VERSION >= 1009
+ char* tmpPtr; int tmpSize;
+ if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
+ return NULL;
+ _arg0 = new wxString(tmpPtr, tmpSize);
+#else
+ if (!PyString_Check(_obj0)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
+#endif
+}
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxHtmlWordCell. Expected _wxDC_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxHtmlWordCell *)new_wxHtmlWordCell(*_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlWordCell_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj0)
+ delete _arg0;
+}
+ return _resultobj;
+}
+
static void *SwigwxHtmlContainerCellTowxHtmlCell(void *ptr) {
wxHtmlContainerCell *src;
wxHtmlCell *dest;
return (void *) dest;
}
+static void *SwigwxHtmlContainerCellTowxObject(void *ptr) {
+ wxHtmlContainerCell *src;
+ wxObject *dest;
+ src = (wxHtmlContainerCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlContainerCell(_swigarg0) (new wxHtmlContainerCell(_swigarg0))
static PyObject *_wrap_new_wxHtmlContainerCell(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxHtmlColourCellTowxObject(void *ptr) {
+ wxHtmlColourCell *src;
+ wxObject *dest;
+ src = (wxHtmlColourCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlColourCell(_swigarg0,_swigarg1) (new wxHtmlColourCell(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxHtmlColourCell(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxHtmlFontCellTowxHtmlCell(void *ptr) {
+ wxHtmlFontCell *src;
+ wxHtmlCell *dest;
+ src = (wxHtmlFontCell *) ptr;
+ dest = (wxHtmlCell *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxHtmlFontCellTowxObject(void *ptr) {
+ wxHtmlFontCell *src;
+ wxObject *dest;
+ src = (wxHtmlFontCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxHtmlFontCell(_swigarg0) (new wxHtmlFontCell(_swigarg0))
+static PyObject *_wrap_new_wxHtmlFontCell(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxHtmlFontCell * _result;
+ wxFont * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "font", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxHtmlFontCell",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxHtmlFontCell. Expected _wxFont_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxHtmlFontCell *)new_wxHtmlFontCell(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxHtmlFontCell_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
static void *SwigwxHtmlWidgetCellTowxHtmlCell(void *ptr) {
wxHtmlWidgetCell *src;
wxHtmlCell *dest;
return (void *) dest;
}
+static void *SwigwxHtmlWidgetCellTowxObject(void *ptr) {
+ wxHtmlWidgetCell *src;
+ wxObject *dest;
+ src = (wxHtmlWidgetCell *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlWidgetCell(_swigarg0,_swigarg1) (new wxHtmlWidgetCell(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxHtmlWidgetCell(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyHtmlWindowTowxObject(void *ptr) {
+ wxPyHtmlWindow *src;
+ wxObject *dest;
+ src = (wxPyHtmlWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPyHtmlWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxHtmlWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPyHtmlWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxHtmlWindow_GetRelatedFrame",_kwnames,&_argo0))
_result = (wxFrame *)wxHtmlWindow_GetRelatedFrame(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxHtmlDCRendererTowxObject(void *ptr) {
+ wxHtmlDCRenderer *src;
+ wxObject *dest;
+ src = (wxHtmlDCRenderer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlDCRenderer() (new wxHtmlDCRenderer())
static PyObject *_wrap_new_wxHtmlDCRenderer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxHtmlPrintoutTowxObject(void *ptr) {
+ wxHtmlPrintout *src;
+ wxObject *dest;
+ src = (wxHtmlPrintout *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlPrintout(_swigarg0) (new wxHtmlPrintout(_swigarg0))
static PyObject *_wrap_new_wxHtmlPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxHtmlEasyPrintingTowxObject(void *ptr) {
+ wxHtmlEasyPrinting *src;
+ wxObject *dest;
+ src = (wxHtmlEasyPrinting *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlEasyPrinting(_swigarg0,_swigarg1) (new wxHtmlEasyPrinting(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxHtmlEasyPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "wxHtmlWindow__setSelf", (PyCFunction) _wrap_wxHtmlWindow__setSelf, METH_VARARGS | METH_KEYWORDS },
{ "new_wxHtmlWindow", (PyCFunction) _wrap_new_wxHtmlWindow, METH_VARARGS | METH_KEYWORDS },
{ "new_wxHtmlWidgetCell", (PyCFunction) _wrap_new_wxHtmlWidgetCell, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxHtmlFontCell", (PyCFunction) _wrap_new_wxHtmlFontCell, METH_VARARGS | METH_KEYWORDS },
{ "new_wxHtmlColourCell", (PyCFunction) _wrap_new_wxHtmlColourCell, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlContainerCell_GetFirstCell", (PyCFunction) _wrap_wxHtmlContainerCell_GetFirstCell, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlContainerCell_SetBorder", (PyCFunction) _wrap_wxHtmlContainerCell_SetBorder, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlContainerCell_SetAlignHor", (PyCFunction) _wrap_wxHtmlContainerCell_SetAlignHor, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlContainerCell_InsertCell", (PyCFunction) _wrap_wxHtmlContainerCell_InsertCell, METH_VARARGS | METH_KEYWORDS },
{ "new_wxHtmlContainerCell", (PyCFunction) _wrap_new_wxHtmlContainerCell, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxHtmlWordCell", (PyCFunction) _wrap_new_wxHtmlWordCell, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlCell_SetCanLiveOnPagebreak", (PyCFunction) _wrap_wxHtmlCell_SetCanLiveOnPagebreak, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlCell_AdjustPagebreak", (PyCFunction) _wrap_wxHtmlCell_AdjustPagebreak, METH_VARARGS | METH_KEYWORDS },
{ "wxHtmlCell_Find", (PyCFunction) _wrap_wxHtmlCell_Find, METH_VARARGS | METH_KEYWORDS },
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
{ "_class_wxSashEvent","_wxSashEvent",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_wxSizerItem","_class_wxSizerItem",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
{ "_wxPrintPreview","_class_wxPrintPreview",0},
{ "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
+ { "_class_wxObject","_class_wxHtmlEasyPrinting",SwigwxHtmlEasyPrintingTowxObject},
+ { "_class_wxObject","_wxHtmlEasyPrinting",SwigwxHtmlEasyPrintingTowxObject},
+ { "_class_wxObject","_class_wxHtmlPrintout",SwigwxHtmlPrintoutTowxObject},
+ { "_class_wxObject","_wxHtmlPrintout",SwigwxHtmlPrintoutTowxObject},
+ { "_class_wxObject","_class_wxHtmlDCRenderer",SwigwxHtmlDCRendererTowxObject},
+ { "_class_wxObject","_wxHtmlDCRenderer",SwigwxHtmlDCRendererTowxObject},
+ { "_class_wxObject","_class_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxObject},
+ { "_class_wxObject","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxObject},
+ { "_class_wxObject","_class_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxObject},
+ { "_class_wxObject","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxObject},
+ { "_class_wxObject","_class_wxHtmlFontCell",SwigwxHtmlFontCellTowxObject},
+ { "_class_wxObject","_wxHtmlFontCell",SwigwxHtmlFontCellTowxObject},
+ { "_class_wxObject","_class_wxHtmlColourCell",SwigwxHtmlColourCellTowxObject},
+ { "_class_wxObject","_wxHtmlColourCell",SwigwxHtmlColourCellTowxObject},
+ { "_class_wxObject","_class_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxObject},
+ { "_class_wxObject","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxObject},
+ { "_class_wxObject","_class_wxHtmlWordCell",SwigwxHtmlWordCellTowxObject},
+ { "_class_wxObject","_wxHtmlWordCell",SwigwxHtmlWordCellTowxObject},
+ { "_class_wxObject","_class_wxHtmlCell",SwigwxHtmlCellTowxObject},
+ { "_class_wxObject","_wxHtmlCell",SwigwxHtmlCellTowxObject},
+ { "_class_wxObject","_class_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxObject},
+ { "_class_wxObject","_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxObject},
+ { "_class_wxObject","_class_wxPyHtmlTagHandler",SwigwxPyHtmlTagHandlerTowxObject},
+ { "_class_wxObject","_wxPyHtmlTagHandler",SwigwxPyHtmlTagHandlerTowxObject},
+ { "_class_wxObject","_class_wxHtmlWinParser",SwigwxHtmlWinParserTowxObject},
+ { "_class_wxObject","_wxHtmlWinParser",SwigwxHtmlWinParserTowxObject},
+ { "_class_wxObject","_class_wxHtmlParser",SwigwxHtmlParserTowxObject},
+ { "_class_wxObject","_wxHtmlParser",SwigwxHtmlParserTowxObject},
+ { "_class_wxObject","_class_wxHtmlTag",SwigwxHtmlTagTowxObject},
+ { "_class_wxObject","_wxHtmlTag",SwigwxHtmlTagTowxObject},
+ { "_class_wxObject","_class_wxHtmlLinkInfo",SwigwxHtmlLinkInfoTowxObject},
+ { "_class_wxObject","_wxHtmlLinkInfo",SwigwxHtmlLinkInfoTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
{ "_size_t","_wxCoord",0},
{ "_class_wxZipFSHandler","_wxZipFSHandler",0},
{ "_wxHtmlCell","_class_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxHtmlCell},
{ "_wxHtmlCell","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxHtmlCell},
+ { "_wxHtmlCell","_class_wxHtmlFontCell",SwigwxHtmlFontCellTowxHtmlCell},
+ { "_wxHtmlCell","_wxHtmlFontCell",SwigwxHtmlFontCellTowxHtmlCell},
{ "_wxHtmlCell","_class_wxHtmlColourCell",SwigwxHtmlColourCellTowxHtmlCell},
{ "_wxHtmlCell","_wxHtmlColourCell",SwigwxHtmlColourCellTowxHtmlCell},
{ "_wxHtmlCell","_class_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxHtmlCell},
{ "_wxHtmlCell","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxHtmlCell},
+ { "_wxHtmlCell","_class_wxHtmlWordCell",SwigwxHtmlWordCellTowxHtmlCell},
+ { "_wxHtmlCell","_wxHtmlWordCell",SwigwxHtmlWordCellTowxHtmlCell},
{ "_wxHtmlCell","_class_wxHtmlCell",0},
{ "_char","_wxChar",0},
{ "_wxBitmap","_class_wxBitmap",0},
{ "_wxMenu","_class_wxMenu",0},
{ "_class_wxMoveEvent","_wxMoveEvent",0},
{ "_wxListBox","_class_wxListBox",0},
+ { "_class_wxHtmlWordCell","_wxHtmlWordCell",0},
{ "_wxScreenDC","_class_wxScreenDC",0},
{ "_class_wxToolBarSimple","_wxToolBarSimple",0},
{ "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
{ "_class_wxCaret","_wxCaret",0},
{ "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
{ "_class_wxHtmlLinkInfo","_wxHtmlLinkInfo",0},
+ { "_class_wxHtmlFontCell","_wxHtmlFontCell",0},
{ "_class_wxBrush","_wxBrush",0},
{ "_wxTipProvider","_class_wxTipProvider",0},
{ "_class_wxPyHtmlTagHandler","_class_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxPyHtmlTagHandler},
{ "_class_wxGenericDragImage","_wxGenericDragImage",0},
{ "_wxListCtrl","_class_wxListCtrl",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
+ { "_wxObject","_class_wxHtmlEasyPrinting",SwigwxHtmlEasyPrintingTowxObject},
+ { "_wxObject","_wxHtmlEasyPrinting",SwigwxHtmlEasyPrintingTowxObject},
+ { "_wxObject","_class_wxHtmlPrintout",SwigwxHtmlPrintoutTowxObject},
+ { "_wxObject","_wxHtmlPrintout",SwigwxHtmlPrintoutTowxObject},
+ { "_wxObject","_class_wxHtmlDCRenderer",SwigwxHtmlDCRendererTowxObject},
+ { "_wxObject","_wxHtmlDCRenderer",SwigwxHtmlDCRendererTowxObject},
+ { "_wxObject","_class_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxObject},
+ { "_wxObject","_wxPyHtmlWindow",SwigwxPyHtmlWindowTowxObject},
+ { "_wxObject","_class_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxObject},
+ { "_wxObject","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxObject},
+ { "_wxObject","_class_wxHtmlFontCell",SwigwxHtmlFontCellTowxObject},
+ { "_wxObject","_wxHtmlFontCell",SwigwxHtmlFontCellTowxObject},
+ { "_wxObject","_class_wxHtmlColourCell",SwigwxHtmlColourCellTowxObject},
+ { "_wxObject","_wxHtmlColourCell",SwigwxHtmlColourCellTowxObject},
+ { "_wxObject","_class_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxObject},
+ { "_wxObject","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxObject},
+ { "_wxObject","_class_wxHtmlWordCell",SwigwxHtmlWordCellTowxObject},
+ { "_wxObject","_wxHtmlWordCell",SwigwxHtmlWordCellTowxObject},
+ { "_wxObject","_class_wxHtmlCell",SwigwxHtmlCellTowxObject},
+ { "_wxObject","_wxHtmlCell",SwigwxHtmlCellTowxObject},
+ { "_wxObject","_class_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxObject},
+ { "_wxObject","_wxPyHtmlWinTagHandler",SwigwxPyHtmlWinTagHandlerTowxObject},
+ { "_wxObject","_class_wxPyHtmlTagHandler",SwigwxPyHtmlTagHandlerTowxObject},
+ { "_wxObject","_wxPyHtmlTagHandler",SwigwxPyHtmlTagHandlerTowxObject},
+ { "_wxObject","_class_wxHtmlWinParser",SwigwxHtmlWinParserTowxObject},
+ { "_wxObject","_wxHtmlWinParser",SwigwxHtmlWinParserTowxObject},
+ { "_wxObject","_class_wxHtmlParser",SwigwxHtmlParserTowxObject},
+ { "_wxObject","_wxHtmlParser",SwigwxHtmlParserTowxObject},
+ { "_wxObject","_class_wxHtmlTag",SwigwxHtmlTagTowxObject},
+ { "_wxObject","_wxHtmlTag",SwigwxHtmlTagTowxObject},
+ { "_wxObject","_class_wxHtmlLinkInfo",SwigwxHtmlLinkInfoTowxObject},
+ { "_wxObject","_wxHtmlLinkInfo",SwigwxHtmlLinkInfoTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxHtmlWinParser","_wxHtmlWinParser",0},
{ "_class_wxHtmlCell","_class_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxHtmlCell},
{ "_class_wxHtmlCell","_wxHtmlWidgetCell",SwigwxHtmlWidgetCellTowxHtmlCell},
+ { "_class_wxHtmlCell","_class_wxHtmlFontCell",SwigwxHtmlFontCellTowxHtmlCell},
+ { "_class_wxHtmlCell","_wxHtmlFontCell",SwigwxHtmlFontCellTowxHtmlCell},
{ "_class_wxHtmlCell","_class_wxHtmlColourCell",SwigwxHtmlColourCellTowxHtmlCell},
{ "_class_wxHtmlCell","_wxHtmlColourCell",SwigwxHtmlColourCellTowxHtmlCell},
{ "_class_wxHtmlCell","_class_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxHtmlCell},
{ "_class_wxHtmlCell","_wxHtmlContainerCell",SwigwxHtmlContainerCellTowxHtmlCell},
+ { "_class_wxHtmlCell","_class_wxHtmlWordCell",SwigwxHtmlWordCellTowxHtmlCell},
+ { "_class_wxHtmlCell","_wxHtmlWordCell",SwigwxHtmlWordCellTowxHtmlCell},
{ "_class_wxHtmlCell","_wxHtmlCell",0},
{ "_signed_short","_WXTYPE",0},
{ "_signed_short","_short",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_class_wxSizerItem","_wxSizerItem",0},
{ "_int","_wxCoord",0},
{ "_class_wxConfig","_wxConfig",0},
{ "_wxKeyEvent","_class_wxKeyEvent",0},
{ "_wxMoveEvent","_class_wxMoveEvent",0},
+ { "_wxHtmlWordCell","_class_wxHtmlWordCell",0},
{ "_wxHtmlEasyPrinting","_class_wxHtmlEasyPrinting",0},
{ "_wxColourData","_class_wxColourData",0},
{ "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
{ "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0},
{ "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
{ "_wxHtmlLinkInfo","_class_wxHtmlLinkInfo",0},
+ { "_wxHtmlFontCell","_class_wxHtmlFontCell",0},
{ "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
{ "_class_wxToolBarToolBase","_wxToolBarToolBase",0},
{ "_class_wxFontDialog","_wxFontDialog",0},
wxClassInfo::CleanUpClasses();
wxClassInfo::InitializeClasses();
+
+ wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
+ wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");
+ wxPyPtrTypeMap_Add("wxHtmlWindow", "wxPyHtmlWindow");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
from utils import *
import wx
-class wxHtmlLinkInfoPtr :
+class wxHtmlLinkInfoPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetEvent(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlLinkInfo_GetEvent,(self,) + _args, _kwargs)
- if val: val = wxMouseEventPtr(val)
return val
def GetHtmlCell(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlLinkInfo_GetHtmlCell,(self,) + _args, _kwargs)
-class wxHtmlTagPtr :
+class wxHtmlTagPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxHtmlParserPtr :
+class wxHtmlParserPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetFS(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlParser_GetFS,(self,) + _args, _kwargs)
- if val: val = wxFileSystemPtr(val)
return val
def Parse(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlParser_Parse,(self,) + _args, _kwargs)
return val
def GetDC(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWinParser_GetDC,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val)
return val
def GetCharHeight(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWinParser_GetCharHeight,(self,) + _args, _kwargs)
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWinParser_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetFonts(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWinParser_SetFonts,(self,) + _args, _kwargs)
-class wxHtmlTagHandlerPtr :
+class wxHtmlTagHandlerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxHtmlCellPtr :
+class wxHtmlCellPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
+class wxHtmlWordCellPtr(wxHtmlCellPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __repr__(self):
+ return "<C wxHtmlWordCell instance at %s>" % (self.this,)
+class wxHtmlWordCell(wxHtmlWordCellPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(htmlc.new_wxHtmlWordCell,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxHtmlContainerCellPtr(wxHtmlCellPtr):
def __init__(self,this):
self.this = this
+class wxHtmlFontCellPtr(wxHtmlCellPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __repr__(self):
+ return "<C wxHtmlFontCell instance at %s>" % (self.this,)
+class wxHtmlFontCell(wxHtmlFontCellPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(htmlc.new_wxHtmlFontCell,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxHtmlWidgetCellPtr(wxHtmlCellPtr):
def __init__(self,this):
self.this = this
return val
def GetRelatedFrame(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWindow_GetRelatedFrame,(self,) + _args, _kwargs)
- if val: val = wxFramePtr(val)
return val
def SetRelatedStatusBar(self, *_args, **_kwargs):
val = apply(htmlc.wxHtmlWindow_SetRelatedStatusBar,(self,) + _args, _kwargs)
-class wxHtmlDCRendererPtr :
+class wxHtmlDCRendererPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxHtmlEasyPrintingPtr :
+class wxHtmlEasyPrintingPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr
wx.wxHtmlWindowPtr = wxHtmlWindowPtr
wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr
-
return (void *) dest;
}
+static void *SwigwxHtmlHelpFrameTowxObject(void *ptr) {
+ wxHtmlHelpFrame *src;
+ wxObject *dest;
+ src = (wxHtmlHelpFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlHelpFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxHtmlHelpFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
static PyObject *_wrap_new_wxHtmlHelpFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxHtmlHelpControllerTowxObject(void *ptr) {
+ wxHtmlHelpController *src;
+ wxObject *dest;
+ src = (wxHtmlHelpController *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxHtmlHelpController(_swigarg0) (new wxHtmlHelpController(_swigarg0))
static PyObject *_wrap_new_wxHtmlHelpController(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
{ "_class_wxSashEvent","_wxSashEvent",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_wxSizerItem","_class_wxSizerItem",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
{ "_wxPrintPreview","_class_wxPrintPreview",0},
{ "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
+ { "_class_wxObject","_class_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxObject},
+ { "_class_wxObject","_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxObject},
+ { "_class_wxObject","_class_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxObject},
+ { "_class_wxObject","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
{ "_size_t","_wxCoord",0},
{ "_wxMenu","_class_wxMenu",0},
{ "_class_wxMoveEvent","_wxMoveEvent",0},
{ "_wxListBox","_class_wxListBox",0},
+ { "_class_wxHtmlWordCell","_wxHtmlWordCell",0},
{ "_wxScreenDC","_class_wxScreenDC",0},
{ "_class_wxToolBarSimple","_wxToolBarSimple",0},
{ "_class_wxMDIChildFrame","_wxMDIChildFrame",0},
{ "_class_wxCaret","_wxCaret",0},
{ "_class_wxMDIClientWindow","_wxMDIClientWindow",0},
{ "_class_wxHtmlLinkInfo","_wxHtmlLinkInfo",0},
+ { "_class_wxHtmlFontCell","_wxHtmlFontCell",0},
{ "_class_wxBrush","_wxBrush",0},
{ "_wxTipProvider","_class_wxTipProvider",0},
{ "_class_wxPyHtmlTagHandler","_wxPyHtmlTagHandler",0},
{ "_class_wxGenericDragImage","_wxGenericDragImage",0},
{ "_wxListCtrl","_class_wxListCtrl",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
+ { "_wxObject","_class_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxObject},
+ { "_wxObject","_wxHtmlHelpController",SwigwxHtmlHelpControllerTowxObject},
+ { "_wxObject","_class_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxObject},
+ { "_wxObject","_wxHtmlHelpFrame",SwigwxHtmlHelpFrameTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_class_wxSizerItem","_wxSizerItem",0},
{ "_int","_wxCoord",0},
{ "_class_wxConfig","_wxConfig",0},
{ "_wxKeyEvent","_class_wxKeyEvent",0},
{ "_wxMoveEvent","_class_wxMoveEvent",0},
+ { "_wxHtmlWordCell","_class_wxHtmlWordCell",0},
{ "_wxHtmlEasyPrinting","_class_wxHtmlEasyPrinting",0},
{ "_wxColourData","_class_wxColourData",0},
{ "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0},
{ "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0},
{ "_wxMDIClientWindow","_class_wxMDIClientWindow",0},
{ "_wxHtmlLinkInfo","_class_wxHtmlLinkInfo",0},
+ { "_wxHtmlFontCell","_class_wxHtmlFontCell",0},
{ "_class_wxDataObjectComposite","_wxDataObjectComposite",0},
{ "_class_wxToolBarToolBase","_wxToolBarToolBase",0},
{ "_class_wxFontDialog","_wxFontDialog",0},
return _resultobj;
}
+static void *SwigwxImageHandlerTowxObject(void *ptr) {
+ wxImageHandler *src;
+ wxObject *dest;
+ src = (wxImageHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxImageHandler_GetName(_swigobj) (_swigobj->GetName())
static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPNGHandlerTowxObject(void *ptr) {
+ wxPNGHandler *src;
+ wxObject *dest;
+ src = (wxPNGHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPNGHandler() (new wxPNGHandler())
static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxJPEGHandlerTowxObject(void *ptr) {
+ wxJPEGHandler *src;
+ wxObject *dest;
+ src = (wxJPEGHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxJPEGHandler() (new wxJPEGHandler())
static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxBMPHandlerTowxObject(void *ptr) {
+ wxBMPHandler *src;
+ wxObject *dest;
+ src = (wxBMPHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxBMPHandler() (new wxBMPHandler())
static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxGIFHandlerTowxObject(void *ptr) {
+ wxGIFHandler *src;
+ wxObject *dest;
+ src = (wxGIFHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGIFHandler() (new wxGIFHandler())
static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPNMHandlerTowxObject(void *ptr) {
+ wxPNMHandler *src;
+ wxObject *dest;
+ src = (wxPNMHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPNMHandler() (new wxPNMHandler())
static PyObject *_wrap_new_wxPNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPCXHandlerTowxObject(void *ptr) {
+ wxPCXHandler *src;
+ wxObject *dest;
+ src = (wxPCXHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPCXHandler() (new wxPCXHandler())
static PyObject *_wrap_new_wxPCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxTIFFHandlerTowxObject(void *ptr) {
+ wxTIFFHandler *src;
+ wxObject *dest;
+ src = (wxTIFFHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxTIFFHandler() (new wxTIFFHandler())
static PyObject *_wrap_new_wxTIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxImageTowxObject(void *ptr) {
+ wxImage *src;
+ wxObject *dest;
+ src = (wxImage *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_wxImageList","_class_wxImageList",0},
{ "_class_wxTIFFHandler","_wxTIFFHandler",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
+ { "_class_wxObject","_class_wxImage",SwigwxImageTowxObject},
+ { "_class_wxObject","_wxImage",SwigwxImageTowxObject},
+ { "_class_wxObject","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
+ { "_class_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
+ { "_class_wxObject","_class_wxPCXHandler",SwigwxPCXHandlerTowxObject},
+ { "_class_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
+ { "_class_wxObject","_class_wxPNMHandler",SwigwxPNMHandlerTowxObject},
+ { "_class_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
+ { "_class_wxObject","_class_wxGIFHandler",SwigwxGIFHandlerTowxObject},
+ { "_class_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
+ { "_class_wxObject","_class_wxBMPHandler",SwigwxBMPHandlerTowxObject},
+ { "_class_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
+ { "_class_wxObject","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
+ { "_class_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
+ { "_class_wxObject","_class_wxPNGHandler",SwigwxPNGHandlerTowxObject},
+ { "_class_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
+ { "_class_wxObject","_class_wxImageHandler",SwigwxImageHandlerTowxObject},
+ { "_class_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_wxBusyInfo","_class_wxBusyInfo",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_wxClientDC","_class_wxClientDC",0},
+ { "_wxObject","_class_wxImage",SwigwxImageTowxObject},
+ { "_wxObject","_wxImage",SwigwxImageTowxObject},
+ { "_wxObject","_class_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
+ { "_wxObject","_wxTIFFHandler",SwigwxTIFFHandlerTowxObject},
+ { "_wxObject","_class_wxPCXHandler",SwigwxPCXHandlerTowxObject},
+ { "_wxObject","_wxPCXHandler",SwigwxPCXHandlerTowxObject},
+ { "_wxObject","_class_wxPNMHandler",SwigwxPNMHandlerTowxObject},
+ { "_wxObject","_wxPNMHandler",SwigwxPNMHandlerTowxObject},
+ { "_wxObject","_class_wxGIFHandler",SwigwxGIFHandlerTowxObject},
+ { "_wxObject","_wxGIFHandler",SwigwxGIFHandlerTowxObject},
+ { "_wxObject","_class_wxBMPHandler",SwigwxBMPHandlerTowxObject},
+ { "_wxObject","_wxBMPHandler",SwigwxBMPHandlerTowxObject},
+ { "_wxObject","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
+ { "_wxObject","_wxJPEGHandler",SwigwxJPEGHandlerTowxObject},
+ { "_wxObject","_class_wxPNGHandler",SwigwxPNGHandlerTowxObject},
+ { "_wxObject","_wxPNGHandler",SwigwxPNGHandlerTowxObject},
+ { "_wxObject","_class_wxImageHandler",SwigwxImageHandlerTowxObject},
+ { "_wxObject","_wxImageHandler",SwigwxImageHandlerTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
from misc import *
from gdi import *
-class wxImageHandlerPtr :
+class wxImageHandlerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxImagePtr :
+class wxImagePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return (void *) dest;
}
+static void *SwigwxMDIParentFrameTowxObject(void *ptr) {
+ wxMDIParentFrame *src;
+ wxObject *dest;
+ src = (wxMDIParentFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIParentFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxMDIParentFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetActiveChild",_kwnames,&_argo0))
_result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMDIParentFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetClientWindow",_kwnames,&_argo0))
_result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMDIParentFrame * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMDIParentFrame_GetToolBar",_kwnames,&_argo0))
_result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxMDIChildFrameTowxObject(void *ptr) {
+ wxMDIChildFrame *src;
+ wxObject *dest;
+ src = (wxMDIChildFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxMDIChildFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxMDIClientWindowTowxObject(void *ptr) {
+ wxMDIClientWindow *src;
+ wxObject *dest;
+ src = (wxMDIClientWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMDIClientWindow(_swigarg0,_swigarg1) (new wxMDIClientWindow(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
+ { "_class_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
+ { "_class_wxObject","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
+ { "_class_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
+ { "_class_wxObject","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
+ { "_class_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
+ { "_wxObject","_wxMDIClientWindow",SwigwxMDIClientWindowTowxObject},
+ { "_wxObject","_class_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
+ { "_wxObject","_wxMDIChildFrame",SwigwxMDIChildFrameTowxObject},
+ { "_wxObject","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
+ { "_wxObject","_wxMDIParentFrame",SwigwxMDIParentFrameTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
return val
def GetActiveChild(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetActiveChild,(self,) + _args, _kwargs)
- if val: val = wxMDIChildFramePtr(val)
return val
def GetClientWindow(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetClientWindow,(self,) + _args, _kwargs)
- if val: val = wxMDIClientWindowPtr(val)
return val
def GetToolBar(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_GetToolBar,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def Tile(self, *_args, **_kwargs):
val = apply(mdic.wxMDIParentFrame_Tile,(self,) + _args, _kwargs)
return pyobj;
}
+static const char * wxObject_GetClassName(wxObject *self) {
+ return self->GetClassInfo()->GetClassName();
+ }
+static PyObject *_wrap_wxObject_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ char * _result;
+ wxObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_GetClassName",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_GetClassName. Expected _wxObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (char *)wxObject_GetClassName(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("s", _result);
+ return _resultobj;
+}
+
+static void wxObject_Destroy(wxObject *self) {
+ delete self;
+ }
+static PyObject *_wrap_wxObject_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_Destroy",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_Destroy. Expected _wxObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxObject_Destroy(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
#define wxSize_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
static PyObject *_wrap_wxSize_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static int wxSize___cmp__(wxSize *self,const wxSize * sz) {
+ if (! sz) return 1;
+ if (*self == *sz) return 0;
+ return -1;
+ }
+static PyObject *_wrap_wxSize___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxSize * _arg0;
+ wxSize * _arg1;
+ wxSize temp;
+ PyObject * _obj0 = 0;
+ wxSize temp0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","sz", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___cmp__",_kwnames,&_obj0,&_obj1))
+ return NULL;
+{
+ _arg0 = &temp;
+ if (! wxSize_helper(_obj0, &_arg0))
+ return NULL;
+}
+{
+ _arg1 = &temp0;
+ if (! wxSize_helper(_obj1, &_arg1))
+ return NULL;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxSize___cmp__(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxRealPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
static PyObject *_wrap_wxRealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
static int wxRealPoint___cmp__(wxRealPoint *self,const wxRealPoint * p) {
- if (! p) return 0;
- return *self == *p;
+ if (! p) return 1;
+ if (*self == *p) return 0;
+ return -1;
}
static PyObject *_wrap_wxRealPoint___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
static int wxPoint___cmp__(wxPoint *self,const wxPoint * p) {
- if (! p) return 0;
- return *self == *p;
+ if (! p) return 1;
+ if (*self == *p) return 0;
+ return -1;
}
static PyObject *_wrap_wxPoint___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
}
static int wxRect___cmp__(wxRect *self,const wxRect * rect) {
- if (! rect) return 0;
- return *self == *rect;
+ if (! rect) return 1;
+ if (*self == *rect) return 0;
+ return -1;
}
static PyObject *_wrap_wxRect___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxIndividualLayoutConstraintTowxObject(void *ptr) {
+ wxIndividualLayoutConstraint *src;
+ wxObject *dest;
+ src = (wxIndividualLayoutConstraint *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxIndividualLayoutConstraint_Above(_swigobj,_swigarg0,_swigarg1) (_swigobj->Above(_swigarg0,_swigarg1))
static PyObject *_wrap_wxIndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxLayoutConstraintsTowxObject(void *ptr) {
+ wxLayoutConstraints *src;
+ wxObject *dest;
+ src = (wxLayoutConstraints *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxLayoutConstraints() (new wxLayoutConstraints())
static PyObject *_wrap_new_wxLayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
-#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegion * _result;
- long _arg0 = (long ) 0;
- long _arg1 = (long ) 0;
- long _arg2 = (long ) 0;
- long _arg3 = (long ) 0;
- char *_kwnames[] = { "x","y","width","height", NULL };
+ wxAcceleratorEntry * _result;
+ int _arg0 = (int ) 0;
+ int _arg1 = (int ) 0;
+ int _arg2 = (int ) 0;
+ char *_kwnames[] = { "flags","keyCode","cmd", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxAcceleratorEntry",_kwnames,&_arg0,&_arg1,&_arg2))
return NULL;
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
+ _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
_resultobj = Py_BuildValue("s",_ptemp);
} else {
Py_INCREF(Py_None);
return _resultobj;
}
-#define delete_wxRegion(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define delete_wxAcceleratorEntry(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegion * _arg0;
+ wxAcceleratorEntry * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorEntry",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorEntry. Expected _wxAcceleratorEntry_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- delete_wxRegion(_arg0);
+ delete_wxAcceleratorEntry(_arg0);
wxPy_END_ALLOW_THREADS;
} Py_INCREF(Py_None);
return _resultobj;
}
-#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
-static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegion * _arg0;
+ wxAcceleratorEntry * _arg0;
+ int _arg1;
+ int _arg2;
+ int _arg3;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ char *_kwnames[] = { "self","flags","keyCode","Cmd", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxAcceleratorEntry_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxRegion_Clear(_arg0);
+ wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3);
wxPy_END_ALLOW_THREADS;
} Py_INCREF(Py_None);
return _resultobj;
}
-#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
-static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags())
+static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegionContain _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
+ int _result;
+ wxAcceleratorEntry * _arg0;
PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetFlags",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p.");
return NULL;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
+ _result = (int )wxAcceleratorEntry_GetFlags(_arg0);
wxPy_END_ALLOW_THREADS;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
-static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode())
+static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegionContain _result;
- wxRegion * _arg0;
- wxPoint * _arg1;
+ int _result;
+ wxAcceleratorEntry * _arg0;
PyObject * _argo0 = 0;
- wxPoint temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","pt", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetKeyCode",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p.");
return NULL;
}
}
-{
- _arg1 = &temp;
- if (! wxPoint_helper(_obj1, &_arg1))
- return NULL;
-}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
+ _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0);
wxPy_END_ALLOW_THREADS;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
-static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand())
+static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRegionContain _result;
- wxRegion * _arg0;
- wxRect * _arg1;
+ int _result;
+ wxAcceleratorEntry * _arg0;
PyObject * _argo0 = 0;
- wxRect temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","rect", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetCommand",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p.");
return NULL;
}
}
-{
- _arg1 = &temp;
- if (! wxRect_helper(_obj1, &_arg1))
- return NULL;
-}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
+ _result = (int )wxAcceleratorEntry_GetCommand(_arg0);
wxPy_END_ALLOW_THREADS;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
-#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRegionContain _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
- long _arg3;
- long _arg4;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y","w","h", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
+static void *SwigwxAcceleratorTableTowxObject(void *ptr) {
+ wxAcceleratorTable *src;
+ wxObject *dest;
+ src = (wxAcceleratorTable *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
}
-#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
-static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1))
+static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- wxRect * _result;
- wxRegion * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
+ wxAcceleratorTable * _result;
+ int _arg0;
+ wxAcceleratorEntry * _arg1;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "choices", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxAcceleratorTable",_kwnames,&_obj1))
return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
+ if (_obj1)
+{
+ _arg1 = wxAcceleratorEntry_LIST_helper(_obj1);
+ if (_arg1 == NULL) {
return NULL;
- }
}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxRect (wxRegion_GetBox(_arg0));
-
- wxPy_END_ALLOW_THREADS;
-} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- return _resultobj;
}
-
-#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
- long _arg3;
- long _arg4;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
- return NULL;
- }
+{
+ if (_obj1) {
+ _arg0 = PyList_Size(_obj1);
}
+ else {
+ _arg0 = 0;
+ }
+}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
+ _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ delete [] _arg1;
+}
return _resultobj;
}
-#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
-static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
+#define delete_wxAcceleratorTable(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRect * _arg1;
+ wxAcceleratorTable * _arg0;
PyObject * _argo0 = 0;
- wxRect temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","rect", NULL };
+ char *_kwnames[] = { "self", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorTable",_kwnames,&_argo0))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorTable_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorTable. Expected _wxAcceleratorTable_p.");
return NULL;
}
}
-{
- _arg1 = &temp;
- if (! wxRect_helper(_obj1, &_arg1))
- return NULL;
-}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
+ delete_wxAcceleratorTable(_arg0);
wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
return _resultobj;
}
-#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
-static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRegion * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","region", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
-static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_IsEmpty(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
- long _arg3;
- long _arg4;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
-static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRect * _arg1;
- PyObject * _argo0 = 0;
- wxRect temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","rect", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- _arg1 = &temp;
- if (! wxRect_helper(_obj1, &_arg1))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
-static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRegion * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","region", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
- long _arg3;
- long _arg4;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
-static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRect * _arg1;
- PyObject * _argo0 = 0;
- wxRect temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","rect", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- _arg1 = &temp;
- if (! wxRect_helper(_obj1, &_arg1))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
-static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRegion * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","region", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
-static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- long _arg1;
- long _arg2;
- long _arg3;
- long _arg4;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","x","y","width","height", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
-static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRect * _arg1;
- PyObject * _argo0 = 0;
- wxRect temp;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "self","rect", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- _arg1 = &temp;
- if (! wxRect_helper(_obj1, &_arg1))
- return NULL;
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
-static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegion * _arg0;
- wxRegion * _arg1;
- PyObject * _argo0 = 0;
- PyObject * _argo1 = 0;
- char *_kwnames[] = { "self","region", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
- if (_argo1) {
- if (_argo1 == Py_None) { _arg1 = NULL; }
- else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
-static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRegionIterator * _result;
- wxRegion * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "region", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxRegionIterator(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
-static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetX(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
-static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetY(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
-static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetW(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
-static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetWidth(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
-static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetH(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
-static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- long _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxRegionIterator_GetHeight(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("l",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
-static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRect * _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxRect (wxRegionIterator_GetRect(_arg0));
-
- wxPy_END_ALLOW_THREADS;
-} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- return _resultobj;
-}
-
-#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
-static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxRegionIterator_HaveRects(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
-static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxRegionIterator_Reset(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-static void wxRegionIterator_Next(wxRegionIterator *self) {
- (*self) ++;
- }
-static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxRegionIterator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxRegionIterator_Next(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2))
-static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxAcceleratorEntry * _result;
- int _arg0 = (int ) 0;
- int _arg1 = (int ) 0;
- int _arg2 = (int ) 0;
- char *_kwnames[] = { "flags","keyCode","cmd", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxAcceleratorEntry",_kwnames,&_arg0,&_arg1,&_arg2))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2);
-
- wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
- return _resultobj;
-}
-
-#define delete_wxAcceleratorEntry(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxAcceleratorEntry * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorEntry",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorEntry. Expected _wxAcceleratorEntry_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxAcceleratorEntry(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
-static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxAcceleratorEntry * _arg0;
- int _arg1;
- int _arg2;
- int _arg3;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self","flags","keyCode","Cmd", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxAcceleratorEntry_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
-#define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags())
-static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- wxAcceleratorEntry * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetFlags",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxAcceleratorEntry_GetFlags(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode())
-static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- wxAcceleratorEntry * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetKeyCode",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand())
-static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _result;
- wxAcceleratorEntry * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetCommand",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxAcceleratorEntry_GetCommand(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-#define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1))
-static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxAcceleratorTable * _result;
- int _arg0;
- wxAcceleratorEntry * _arg1;
- PyObject * _obj1 = 0;
- char *_kwnames[] = { "choices", NULL };
- char _ptemp[128];
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxAcceleratorTable",_kwnames,&_obj1))
- return NULL;
- if (_obj1)
-{
- _arg1 = wxAcceleratorEntry_LIST_helper(_obj1);
- if (_arg1 == NULL) {
- return NULL;
- }
-}
-{
- if (_obj1) {
- _arg0 = PyList_Size(_obj1);
- }
- else {
- _arg0 = 0;
- }
-}
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1);
-
- wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
-{
- delete [] _arg1;
-}
- return _resultobj;
-}
-
-#define delete_wxAcceleratorTable(_swigobj) (delete _swigobj)
-static PyObject *_wrap_delete_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxAcceleratorTable * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorTable",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorTable_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorTable. Expected _wxAcceleratorTable_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxAcceleratorTable(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
+static void *SwigwxBusyInfoTowxObject(void *ptr) {
+ wxBusyInfo *src;
+ wxObject *dest;
+ src = (wxBusyInfo *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
}
#define new_wxBusyInfo(_swigarg0) (new wxBusyInfo(_swigarg0))
{ "wxAcceleratorEntry_Set", (PyCFunction) _wrap_wxAcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxAcceleratorEntry", (PyCFunction) _wrap_delete_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
{ "new_wxAcceleratorEntry", (PyCFunction) _wrap_new_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
- { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
- { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
- { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
- { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
- { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
- { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
{ "wxLayoutConstraints_width_get", (PyCFunction) _wrap_wxLayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
{ "wxLayoutConstraints_top_get", (PyCFunction) _wrap_wxLayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
{ "wxLayoutConstraints_right_get", (PyCFunction) _wrap_wxLayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
{ "wxRealPoint_y_set", (PyCFunction) _wrap_wxRealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
{ "wxRealPoint_x_get", (PyCFunction) _wrap_wxRealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
{ "wxRealPoint_x_set", (PyCFunction) _wrap_wxRealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
+ { "wxSize___cmp__", (PyCFunction) _wrap_wxSize___cmp__, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_asTuple", (PyCFunction) _wrap_wxSize_asTuple, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_SetHeight", (PyCFunction) _wrap_wxSize_SetHeight, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_SetWidth", (PyCFunction) _wrap_wxSize_SetWidth, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_y_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_x_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS },
{ "wxSize_x_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS },
+ { "wxObject_Destroy", (PyCFunction) _wrap_wxObject_Destroy, METH_VARARGS | METH_KEYWORDS },
+ { "wxObject_GetClassName", (PyCFunction) _wrap_wxObject_GetClassName, METH_VARARGS | METH_KEYWORDS },
{ "wxGetAccelFromString", (PyCFunction) _wrap_wxGetAccelFromString, METH_VARARGS | METH_KEYWORDS },
{ "wxGetHomeDir", (PyCFunction) _wrap_wxGetHomeDir, METH_VARARGS | METH_KEYWORDS },
{ "wxGetUserName", (PyCFunction) _wrap_wxGetUserName, METH_VARARGS | METH_KEYWORDS },
{ "_wxPrintQuality","_EBool",0},
{ "_wxPrintQuality","_size_t",0},
{ "_wxPrintQuality","_time_t",0},
- { "_class_wxRegionIterator","_wxRegionIterator",0},
{ "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
{ "_byte","_unsigned_char",0},
{ "_long","_unsigned_long",0},
{ "_long","_signed_long",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
+ { "_class_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject},
+ { "_class_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
+ { "_class_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
+ { "_class_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
+ { "_class_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
+ { "_class_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
+ { "_class_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
+ { "_class_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_EBool","_signed_int",0},
{ "_EBool","_int",0},
{ "_EBool","_wxWindowID",0},
- { "_class_wxRegion","_wxRegion",0},
{ "_unsigned_long","_long",0},
{ "_class_wxRect","_wxRect",0},
{ "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
{ "_unsigned_short","_WXTYPE",0},
{ "_unsigned_short","_short",0},
{ "_wxBusyInfo","_class_wxBusyInfo",0},
+ { "_wxObject","_class_wxBusyInfo",SwigwxBusyInfoTowxObject},
+ { "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
+ { "_wxObject","_class_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
+ { "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
+ { "_wxObject","_class_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
+ { "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
+ { "_wxObject","_class_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
+ { "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_time_t","_uint",0},
{ "_time_t","_size_t",0},
{ "_wxSize","_class_wxSize",0},
- { "_wxRegionIterator","_class_wxRegionIterator",0},
{ "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
{ "_wxCoord","_int",0},
{ "_wxCoord","_signed_int",0},
{ "_wxCoord","_size_t",0},
{ "_wxCoord","_time_t",0},
{ "_wxCoord","_wxPrintQuality",0},
- { "_wxRegion","_class_wxRegion",0},
{ "_class_wxBusyInfo","_wxBusyInfo",0},
{ "_class_wxSize","_wxSize",0},
{0,0,0}};
PyDict_SetItemString(d,"wxRightOf", PyInt_FromLong((long) wxRightOf));
PyDict_SetItemString(d,"wxSameAs", PyInt_FromLong((long) wxSameAs));
PyDict_SetItemString(d,"wxAbsolute", PyInt_FromLong((long) wxAbsolute));
- PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
- PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
- PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
PyDict_SetItemString(d,"cvar", SWIG_globals);
SWIG_addvarlink(SWIG_globals,"wxNullAcceleratorTable",_wrap_wxNullAcceleratorTable_get, _wrap_wxNullAcceleratorTable_set);
{
# This file was created automatically by SWIG.
import miscc
+class wxObjectPtr :
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetClassName(self, *_args, **_kwargs):
+ val = apply(miscc.wxObject_GetClassName,(self,) + _args, _kwargs)
+ return val
+ def Destroy(self, *_args, **_kwargs):
+ val = apply(miscc.wxObject_Destroy,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxObject instance at %s>" % (self.this,)
+class wxObject(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+
+
+
+
class wxSizePtr :
def __init__(self,this):
self.this = this
def asTuple(self, *_args, **_kwargs):
val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
return val
+ def __cmp__(self, *_args, **_kwargs):
+ val = apply(miscc.wxSize___cmp__,(self,) + _args, _kwargs)
+ return val
def __setattr__(self,name,value):
if name == "x" :
miscc.wxSize_x_set(self,value)
-class wxIndividualLayoutConstraintPtr :
+class wxIndividualLayoutConstraintPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxLayoutConstraintsPtr :
+class wxLayoutConstraintsPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxRegionPtr :
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def __del__(self,miscc=miscc):
- if self.thisown == 1 :
- miscc.delete_wxRegion(self)
- def Clear(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
- return val
- def Contains(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
- return val
- def ContainsPoint(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
- return val
- def ContainsRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
- return val
- def ContainsRectDim(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
- return val
- def GetBox(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
- if val: val = wxRectPtr(val) ; val.thisown = 1
- return val
- def Intersect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
- return val
- def IntersectRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_IntersectRect,(self,) + _args, _kwargs)
- return val
- def IntersectRegion(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
- return val
- def IsEmpty(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
- return val
- def Union(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs)
- return val
- def UnionRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_UnionRect,(self,) + _args, _kwargs)
- return val
- def UnionRegion(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_UnionRegion,(self,) + _args, _kwargs)
- return val
- def Subtract(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
- return val
- def SubtractRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_SubtractRect,(self,) + _args, _kwargs)
- return val
- def SubtractRegion(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
- return val
- def Xor(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
- return val
- def XorRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_XorRect,(self,) + _args, _kwargs)
- return val
- def XorRegion(self, *_args, **_kwargs):
- val = apply(miscc.wxRegion_XorRegion,(self,) + _args, _kwargs)
- return val
- def __repr__(self):
- return "<C wxRegion instance at %s>" % (self.this,)
-class wxRegion(wxRegionPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxRegion,_args,_kwargs)
- self.thisown = 1
-
-
-
-
-class wxRegionIteratorPtr :
- def __init__(self,this):
- self.this = this
- self.thisown = 0
- def __del__(self,miscc=miscc):
- if self.thisown == 1 :
- miscc.delete_wxRegionIterator(self)
- def GetX(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
- return val
- def GetY(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
- return val
- def GetW(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
- return val
- def GetWidth(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
- return val
- def GetH(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
- return val
- def GetHeight(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
- return val
- def GetRect(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
- if val: val = wxRectPtr(val) ; val.thisown = 1
- return val
- def HaveRects(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
- return val
- def Reset(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
- return val
- def Next(self, *_args, **_kwargs):
- val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
- return val
- def __repr__(self):
- return "<C wxRegionIterator instance at %s>" % (self.this,)
-class wxRegionIterator(wxRegionIteratorPtr):
- def __init__(self,*_args,**_kwargs):
- self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
- self.thisown = 1
-
-
-
-
class wxAcceleratorEntryPtr :
def __init__(self,this):
self.this = this
-class wxAcceleratorTablePtr :
+class wxAcceleratorTablePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxBusyInfoPtr :
+class wxBusyInfoPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
wxRightOf = miscc.wxRightOf
wxSameAs = miscc.wxSameAs
wxAbsolute = miscc.wxAbsolute
-wxOutRegion = miscc.wxOutRegion
-wxPartRegion = miscc.wxPartRegion
-wxInRegion = miscc.wxInRegion
cvar = miscc.cvar
wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)
PyObject * _obj0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "label","parent", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1))
_result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj0)
delete _arg0;
PyObject * _obj0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "name","parent", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1))
_result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj0)
delete _arg0;
PyObject * _resultobj;
wxWindow * _result;
char *_kwnames[] = { NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames))
_result = (wxWindow *)wxGetActiveWindow();
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMenuBar * _result;
char * _arg0;
char *_kwnames[] = { "resource", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0))
_result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxToolTipTowxObject(void *ptr) {
+ wxToolTip *src;
+ wxObject *dest;
+ src = (wxToolTip *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxToolTip * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxToolTip_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxCaret * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxCaret_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxGenericDragImageTowxObject(void *ptr) {
+ wxGenericDragImage *src;
+ wxObject *dest;
+ src = (wxGenericDragImage *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxDragImage(_swigarg0,_swigarg1,_swigarg2) (new wxGenericDragImage(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPyTimerTowxObject(void *ptr) {
+ wxPyTimer *src;
+ wxObject *dest;
+ src = (wxPyTimer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0))
static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxLogWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0))
_result = (wxFrame *)wxLogWindow_GetFrame(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxProcessEventTowxObject(void *ptr) {
+ wxProcessEvent *src;
+ wxObject *dest;
+ src = (wxProcessEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPyProcessTowxObject(void *ptr) {
+ wxPyProcess *src;
+ wxObject *dest;
+ src = (wxPyProcess *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
if (_result) {
_ptr = new wxPyInputStream(_result);
}
- if (_ptr) {
- char swigptr[64];
- SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p");
-
- PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr");
- if (! classobj) {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- } else {
- PyObject* arg = Py_BuildValue("(s)", swigptr);
- _resultobj = PyInstance_New(classobj, arg, NULL);
- Py_DECREF(arg);
-
- // set ThisOwn
- PyObject* one = PyInt_FromLong(1);
- PyObject_SetAttrString(_resultobj, "thisown", one);
- Py_DECREF(one);
- }
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
}
return _resultobj;
}
if (_result) {
_ptr = new wxPyInputStream(_result);
}
- if (_ptr) {
- char swigptr[64];
- SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p");
-
- PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr");
- if (! classobj) {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- } else {
- PyObject* arg = Py_BuildValue("(s)", swigptr);
- _resultobj = PyInstance_New(classobj, arg, NULL);
- Py_DECREF(arg);
-
- // set ThisOwn
- PyObject* one = PyInt_FromLong(1);
- PyObject_SetAttrString(_resultobj, "thisown", one);
- Py_DECREF(one);
- }
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+ _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
}
return _resultobj;
}
{ "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxPyProcess",SwigwxPyProcessTowxObject},
+ { "_class_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject},
+ { "_class_wxObject","_class_wxProcessEvent",SwigwxProcessEventTowxObject},
+ { "_class_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject},
+ { "_class_wxObject","_class_wxPyTimer",SwigwxPyTimerTowxObject},
+ { "_class_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject},
+ { "_class_wxObject","_class_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
+ { "_class_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
+ { "_class_wxObject","_class_wxToolTip",SwigwxToolTipTowxObject},
+ { "_class_wxObject","_wxToolTip",SwigwxToolTipTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
{ "_class_wxGenericDragImage","_wxGenericDragImage",0},
+ { "_wxObject","_class_wxPyProcess",SwigwxPyProcessTowxObject},
+ { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject},
+ { "_wxObject","_class_wxProcessEvent",SwigwxProcessEventTowxObject},
+ { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject},
+ { "_wxObject","_class_wxPyTimer",SwigwxPyTimerTowxObject},
+ { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject},
+ { "_wxObject","_class_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
+ { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
+ { "_wxObject","_class_wxToolTip",SwigwxToolTipTowxObject},
+ { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress));
PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User));
PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS));
+
+ wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
+ wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
+ wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
from events import *
from streams import *
-class wxToolTipPtr :
+class wxToolTipPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def __repr__(self):
return "<C wxToolTip instance at %s>" % (self.this,)
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def MoveXY(self, *_args, **_kwargs):
val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
-class wxDragImagePtr :
+class wxDragImagePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPyTimerPtr :
+class wxPyTimerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetFrame(self, *_args, **_kwargs):
val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
- if val: val = wxFramePtr(val)
return val
def GetOldLog(self, *_args, **_kwargs):
val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
def wxFindWindowByLabel(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
def wxFindWindowByName(*_args, **_kwargs):
val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
wxBeginBusyCursor = misc2c.wxBeginBusyCursor
def wxGetActiveWindow(*_args, **_kwargs):
val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
def wxResourceCreateMenuBar(*_args, **_kwargs):
val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
- if val: val = wxMenuBarPtr(val)
return val
wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
#ifdef __cplusplus
extern "C" {
#endif
+static void *SwigwxPrintDataTowxObject(void *ptr) {
+ wxPrintData *src;
+ wxObject *dest;
+ src = (wxPrintData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrintData() (new wxPrintData())
static PyObject *_wrap_new_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPageSetupDialogDataTowxObject(void *ptr) {
+ wxPageSetupDialogData *src;
+ wxObject *dest;
+ src = (wxPageSetupDialogData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPageSetupDialogData() (new wxPageSetupDialogData())
static PyObject *_wrap_new_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPageSetupDialogTowxObject(void *ptr) {
+ wxPageSetupDialog *src;
+ wxObject *dest;
+ src = (wxPageSetupDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxPageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxPrintDialogDataTowxObject(void *ptr) {
+ wxPrintDialogData *src;
+ wxObject *dest;
+ src = (wxPrintDialogData *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrintDialogData() (new wxPrintDialogData())
static PyObject *_wrap_new_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPrintDialogTowxObject(void *ptr) {
+ wxPrintDialog *src;
+ wxObject *dest;
+ src = (wxPrintDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxPrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPrintDialog * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDC",_kwnames,&_argo0))
_result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxPyPrintoutTowxObject(void *ptr) {
+ wxPyPrintout *src;
+ wxObject *dest;
+ src = (wxPyPrintout *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrintout(_swigarg0) (new wxPyPrintout(_swigarg0))
static PyObject *_wrap_new_wxPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPyPrintout * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetDC",_kwnames,&_argo0))
_result = (wxDC *)wxPrintout_GetDC(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxPrinterTowxObject(void *ptr) {
+ wxPrinter *src;
+ wxObject *dest;
+ src = (wxPrinter *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrinter(_swigarg0) (new wxPrinter(_swigarg0))
static PyObject *_wrap_new_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "self","parent", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_PrintDialog",_kwnames,&_argo0,&_argo1))
_result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxDC_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxPrintPreviewTowxObject(void *ptr) {
+ wxPrintPreview *src;
+ wxObject *dest;
+ src = (wxPrintPreview *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPrintPreview(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_new_wxPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPrintPreview * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCanvas",_kwnames,&_argo0))
_result = (wxWindow *)wxPrintPreview_GetCanvas(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxPrintPreview * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetFrame",_kwnames,&_argo0))
_result = (wxFrame *)wxPrintPreview_GetFrame(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxFrame_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxPrintPreview * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintout",_kwnames,&_argo0))
_result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxPrintPreview * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintoutForPrinting",_kwnames,&_argo0))
_result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxPreviewFrameTowxObject(void *ptr) {
+ wxPreviewFrame *src;
+ wxObject *dest;
+ src = (wxPreviewFrame *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0},
{ "_wxProgressDialog","_class_wxProgressDialog",0},
{ "_wxPrintPreview","_class_wxPrintPreview",0},
+ { "_class_wxObject","_class_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
+ { "_class_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
+ { "_class_wxObject","_class_wxPrintPreview",SwigwxPrintPreviewTowxObject},
+ { "_class_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject},
+ { "_class_wxObject","_class_wxPrinter",SwigwxPrinterTowxObject},
+ { "_class_wxObject","_wxPrinter",SwigwxPrinterTowxObject},
+ { "_class_wxObject","_class_wxPyPrintout",SwigwxPyPrintoutTowxObject},
+ { "_class_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject},
+ { "_class_wxObject","_class_wxPrintDialog",SwigwxPrintDialogTowxObject},
+ { "_class_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject},
+ { "_class_wxObject","_class_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
+ { "_class_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
+ { "_class_wxObject","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
+ { "_class_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
+ { "_class_wxObject","_class_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
+ { "_class_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
+ { "_class_wxObject","_class_wxPrintData",SwigwxPrintDataTowxObject},
+ { "_class_wxObject","_wxPrintData",SwigwxPrintDataTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
+ { "_wxObject","_class_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
+ { "_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
+ { "_wxObject","_class_wxPrintPreview",SwigwxPrintPreviewTowxObject},
+ { "_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject},
+ { "_wxObject","_class_wxPrinter",SwigwxPrinterTowxObject},
+ { "_wxObject","_wxPrinter",SwigwxPrinterTowxObject},
+ { "_wxObject","_class_wxPyPrintout",SwigwxPyPrintoutTowxObject},
+ { "_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject},
+ { "_wxObject","_class_wxPrintDialog",SwigwxPrintDialogTowxObject},
+ { "_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject},
+ { "_wxObject","_class_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
+ { "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
+ { "_wxObject","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
+ { "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
+ { "_wxObject","_class_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
+ { "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
+ { "_wxObject","_class_wxPrintData",SwigwxPrintDataTowxObject},
+ { "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("printfwc", printfwcMethods);
d = PyModule_GetDict(m);
+
+ wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
from events import *
import wx
-class wxPrintDataPtr :
+class wxPrintDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPageSetupDialogDataPtr :
+class wxPageSetupDialogDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
-class wxPrintDialogDataPtr :
+class wxPrintDialogDataPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetPrintDC(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintDialog_GetPrintDC,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val) ; val.thisown = 1
return val
def ShowModal(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintDialog_ShowModal,(self,) + _args, _kwargs)
-class wxPrintoutPtr :
+class wxPrintoutPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetDC(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintout_GetDC,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val)
return val
def GetPageSizeMM(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintout_GetPageSizeMM,(self,) + _args, _kwargs)
-class wxPrinterPtr :
+class wxPrinterPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def PrintDialog(self, *_args, **_kwargs):
val = apply(printfwc.wxPrinter_PrintDialog,(self,) + _args, _kwargs)
- if val: val = wxDCPtr(val)
return val
def ReportError(self, *_args, **_kwargs):
val = apply(printfwc.wxPrinter_ReportError,(self,) + _args, _kwargs)
-class wxPrintPreviewPtr :
+class wxPrintPreviewPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetCanvas(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetCanvas,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetCurrentPage(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetCurrentPage,(self,) + _args, _kwargs)
return val
def GetFrame(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetFrame,(self,) + _args, _kwargs)
- if val: val = wxFramePtr(val)
return val
def GetMaxPage(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetMaxPage,(self,) + _args, _kwargs)
return val
def GetPrintout(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetPrintout,(self,) + _args, _kwargs)
- if val: val = wxPrintoutPtr(val)
return val
def GetPrintoutForPrinting(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetPrintoutForPrinting,(self,) + _args, _kwargs)
- if val: val = wxPrintoutPtr(val)
return val
def GetZoom(self, *_args, **_kwargs):
val = apply(printfwc.wxPrintPreview_GetZoom,(self,) + _args, _kwargs)
#include "helpers.h"
+#include <wx/notebook.h>
+
static PyObject* l_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
if (!target) {
#ifdef __cplusplus
extern "C" {
#endif
+static void *SwigwxSizerItemTowxObject(void *ptr) {
+ wxSizerItem *src;
+ wxObject *dest;
+ src = (wxSizerItem *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxSizerItem_GetSize(_swigobj) (_swigobj->GetSize())
static PyObject *_wrap_wxSizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxSizerItem * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxSizerItem_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxSizerItem * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSizerItem_GetSizer",_kwnames,&_argo0))
_result = (wxSizer *)wxSizerItem_GetSizer(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxSizerTowxObject(void *ptr) {
+ wxSizer *src;
+ wxObject *dest;
+ src = (wxSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static void wxSizer_Destroy(wxSizer *self) { delete self; }
static PyObject *_wrap_wxSizer_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxPySizerTowxObject(void *ptr) {
+ wxPySizer *src;
+ wxObject *dest;
+ src = (wxPySizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPySizer() (new wxPySizer())
static PyObject *_wrap_new_wxPySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxBoxSizerTowxObject(void *ptr) {
+ wxBoxSizer *src;
+ wxObject *dest;
+ src = (wxBoxSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxBoxSizer(_swigarg0) (new wxBoxSizer(_swigarg0))
static PyObject *_wrap_new_wxBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxStaticBoxSizerTowxObject(void *ptr) {
+ wxStaticBoxSizer *src;
+ wxObject *dest;
+ src = (wxStaticBoxSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStaticBoxSizer(_swigarg0,_swigarg1) (new wxStaticBoxSizer(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxStaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxStaticBoxSizer * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStaticBoxSizer_GetStaticBox",_kwnames,&_argo0))
_result = (wxStaticBox *)wxStaticBoxSizer_GetStaticBox(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxStaticBox_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxNotebookSizerTowxObject(void *ptr) {
+ wxNotebookSizer *src;
+ wxObject *dest;
+ src = (wxNotebookSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxNotebookSizer(_swigarg0) (new wxNotebookSizer(_swigarg0))
static PyObject *_wrap_new_wxNotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxNotebookSizer * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebookSizer_GetNotebook",_kwnames,&_argo0))
_result = (wxNotebook *)wxNotebookSizer_GetNotebook(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxNotebook_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxGridSizerTowxObject(void *ptr) {
+ wxGridSizer *src;
+ wxObject *dest;
+ src = (wxGridSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxFlexGridSizerTowxObject(void *ptr) {
+ wxFlexGridSizer *src;
+ wxObject *dest;
+ src = (wxFlexGridSizer *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFlexGridSizer(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxFlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_wxSizerItem","_class_wxSizerItem",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
+ { "_class_wxObject","_class_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
+ { "_class_wxObject","_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
+ { "_class_wxObject","_class_wxGridSizer",SwigwxGridSizerTowxObject},
+ { "_class_wxObject","_wxGridSizer",SwigwxGridSizerTowxObject},
+ { "_class_wxObject","_class_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
+ { "_class_wxObject","_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
+ { "_class_wxObject","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
+ { "_class_wxObject","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
+ { "_class_wxObject","_class_wxBoxSizer",SwigwxBoxSizerTowxObject},
+ { "_class_wxObject","_wxBoxSizer",SwigwxBoxSizerTowxObject},
+ { "_class_wxObject","_class_wxPySizer",SwigwxPySizerTowxObject},
+ { "_class_wxObject","_wxPySizer",SwigwxPySizerTowxObject},
+ { "_class_wxObject","_class_wxSizer",SwigwxSizerTowxObject},
+ { "_class_wxObject","_wxSizer",SwigwxSizerTowxObject},
+ { "_class_wxObject","_class_wxSizerItem",SwigwxSizerItemTowxObject},
+ { "_class_wxObject","_wxSizerItem",SwigwxSizerItemTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
+ { "_wxObject","_wxFlexGridSizer",SwigwxFlexGridSizerTowxObject},
+ { "_wxObject","_class_wxGridSizer",SwigwxGridSizerTowxObject},
+ { "_wxObject","_wxGridSizer",SwigwxGridSizerTowxObject},
+ { "_wxObject","_class_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
+ { "_wxObject","_wxNotebookSizer",SwigwxNotebookSizerTowxObject},
+ { "_wxObject","_class_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
+ { "_wxObject","_wxStaticBoxSizer",SwigwxStaticBoxSizerTowxObject},
+ { "_wxObject","_class_wxBoxSizer",SwigwxBoxSizerTowxObject},
+ { "_wxObject","_wxBoxSizer",SwigwxBoxSizerTowxObject},
+ { "_wxObject","_class_wxPySizer",SwigwxPySizerTowxObject},
+ { "_wxObject","_wxPySizer",SwigwxPySizerTowxObject},
+ { "_wxObject","_class_wxSizer",SwigwxSizerTowxObject},
+ { "_wxObject","_wxSizer",SwigwxSizerTowxObject},
+ { "_wxObject","_class_wxSizerItem",SwigwxSizerItemTowxObject},
+ { "_wxObject","_wxSizerItem",SwigwxSizerItemTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_class_wxSizerItem","_wxSizerItem",0},
{ "_int","_wxCoord",0},
from events import *
import wx
import string
-class wxSizerItemPtr :
+class wxSizerItemPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(sizersc.wxSizerItem_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetWindow(self, *_args, **_kwargs):
val = apply(sizersc.wxSizerItem_SetWindow,(self,) + _args, _kwargs)
return val
def GetSizer(self, *_args, **_kwargs):
val = apply(sizersc.wxSizerItem_GetSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def SetSizer(self, *_args, **_kwargs):
val = apply(sizersc.wxSizerItem_SetSizer,(self,) + _args, _kwargs)
-class wxSizerPtr :
+class wxSizerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
self.thisown = 0
def GetStaticBox(self, *_args, **_kwargs):
val = apply(sizersc.wxStaticBoxSizer_GetStaticBox,(self,) + _args, _kwargs)
- if val: val = wxStaticBoxPtr(val)
return val
def RecalcSizes(self, *_args, **_kwargs):
val = apply(sizersc.wxStaticBoxSizer_RecalcSizes,(self,) + _args, _kwargs)
return val
def GetNotebook(self, *_args, **_kwargs):
val = apply(sizersc.wxNotebookSizer_GetNotebook,(self,) + _args, _kwargs)
- if val: val = wxNotebookPtr(val)
return val
def __repr__(self):
return "<C wxNotebookSizer instance at %s>" % (self.this,)
return (void *) dest;
}
+static void *SwigwxStatusBarTowxObject(void *ptr) {
+ wxStatusBar *src;
+ wxObject *dest;
+ src = (wxStatusBar *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxStatusBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxToolBarToolBaseTowxObject(void *ptr) {
+ wxToolBarToolBase *src;
+ wxObject *dest;
+ src = (wxToolBarToolBase *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static void wxToolBarToolBase_Destroy(wxToolBarToolBase *self) { delete self; }
static PyObject *_wrap_wxToolBarToolBase_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxToolBarToolBase * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetControl",_kwnames,&_argo0))
_result = (wxControl *)wxToolBarToolBase_GetControl(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxControl_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxToolBarToolBase * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarToolBase_GetToolBar",_kwnames,&_argo0))
_result = (wxToolBarBase *)wxToolBarToolBase_GetToolBar(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxToolBarBaseTowxObject(void *ptr) {
+ wxToolBarBase *src;
+ wxObject *dest;
+ src = (wxToolBarBase *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static wxToolBarToolBase * wxToolBarBase_AddTool(wxToolBarBase *self,int id,const wxBitmap & bitmap,const wxBitmap & pushedBitmap,int isToggle,PyObject * clientData,const wxString & shortHelpString,const wxString & longHelpString) {
wxPyUserData* udata = NULL;
if (clientData)
PyObject * _obj6 = 0;
PyObject * _obj7 = 0;
char *_kwnames[] = { "self","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OiOOO:wxToolBarBase_AddTool",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_obj5,&_obj6,&_obj7))
_result = (wxToolBarToolBase *)wxToolBarBase_AddTool(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,*_arg6,*_arg7);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj6)
delete _arg6;
PyObject * _obj3 = 0;
PyObject * _obj4 = 0;
char *_kwnames[] = { "self","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOi:wxToolBarBase_AddSimpleTool",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5))
_result = (wxToolBarToolBase *)wxToolBarBase_AddSimpleTool(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj3)
delete _arg3;
PyObject * _obj7 = 0;
PyObject * _obj8 = 0;
char *_kwnames[] = { "self","pos","id","bitmap","pushedBitmap","isToggle","clientData","shortHelpString","longHelpString", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OiOOO:wxToolBarBase_InsertTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_argo4,&_arg5,&_obj6,&_obj7,&_obj8))
_result = (wxToolBarToolBase *)wxToolBarBase_InsertTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,*_arg7,*_arg8);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj7)
delete _arg7;
PyObject * _obj4 = 0;
PyObject * _obj5 = 0;
char *_kwnames[] = { "self","pos","id","bitmap","shortHelpString","longHelpString","isToggle", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|OOi:wxToolBarBase_InsertSimpleTool",_kwnames,&_argo0,&_arg1,&_arg2,&_argo3,&_obj4,&_obj5,&_arg6))
_result = (wxToolBarToolBase *)wxToolBarBase_InsertSimpleTool(_arg0,_arg1,_arg2,*_arg3,*_arg4,*_arg5,_arg6);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj4)
delete _arg4;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "self","control", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolBarBase_AddControl",_kwnames,&_argo0,&_argo1))
_result = (wxToolBarToolBase *)wxToolBarBase_AddControl(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo0 = 0;
PyObject * _argo2 = 0;
char *_kwnames[] = { "self","pos","control", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxToolBarBase_InsertControl",_kwnames,&_argo0,&_arg1,&_argo2))
_result = (wxToolBarToolBase *)wxToolBarBase_InsertControl(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxToolBarBase * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolBarBase_AddSeparator",_kwnames,&_argo0))
_result = (wxToolBarToolBase *)wxToolBarBase_AddSeparator(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
size_t _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","pos", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_InsertSeparator",_kwnames,&_argo0,&_arg1))
_result = (wxToolBarToolBase *)wxToolBarBase_InsertSeparator(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","id", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxToolBarBase_RemoveTool",_kwnames,&_argo0,&_arg1))
_result = (wxToolBarToolBase *)wxToolBarBase_RemoveTool(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxToolBarTowxObject(void *ptr) {
+ wxToolBar *src;
+ wxObject *dest;
+ src = (wxToolBar *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxCoord _arg2;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","x","y", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBar_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
_result = (wxToolBarToolBase *)wxToolBar_FindToolForPosition(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxToolBarSimpleTowxObject(void *ptr) {
+ wxToolBarSimple *src;
+ wxObject *dest;
+ src = (wxToolBarSimple *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxToolBarSimple(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxToolBarSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxCoord _arg2;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","x","y", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxToolBarSimple_FindToolForPosition",_kwnames,&_argo0,&_arg1,&_arg2))
_result = (wxToolBarToolBase *)wxToolBarSimple_FindToolForPosition(_arg0,_arg1,_arg2);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolBarToolBase_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
+ { "_class_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
+ { "_class_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject},
+ { "_class_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
+ { "_class_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject},
+ { "_class_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
+ { "_class_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
+ { "_class_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
+ { "_class_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject},
+ { "_class_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
+ { "_wxObject","_wxToolBarSimple",SwigwxToolBarSimpleTowxObject},
+ { "_wxObject","_class_wxToolBar",SwigwxToolBarTowxObject},
+ { "_wxObject","_wxToolBar",SwigwxToolBarTowxObject},
+ { "_wxObject","_class_wxToolBarBase",SwigwxToolBarBaseTowxObject},
+ { "_wxObject","_wxToolBarBase",SwigwxToolBarBaseTowxObject},
+ { "_wxObject","_class_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
+ { "_wxObject","_wxToolBarToolBase",SwigwxToolBarToolBaseTowxObject},
+ { "_wxObject","_class_wxStatusBar",SwigwxStatusBarTowxObject},
+ { "_wxObject","_wxStatusBar",SwigwxStatusBarTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
-class wxToolBarToolBasePtr :
+class wxToolBarToolBasePtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetControl(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarToolBase_GetControl,(self,) + _args, _kwargs)
- if val: val = wxControlPtr(val)
return val
def GetToolBar(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarToolBase_GetToolBar,(self,) + _args, _kwargs)
- if val: val = wxToolBarBasePtr(val)
return val
def IsButton(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarToolBase_IsButton,(self,) + _args, _kwargs)
self.thisown = 0
def AddTool(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_AddTool,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def AddSimpleTool(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_AddSimpleTool,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def InsertTool(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_InsertTool,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def InsertSimpleTool(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_InsertSimpleTool,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def AddControl(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def InsertControl(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_InsertControl,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def AddSeparator(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_AddSeparator,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def InsertSeparator(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_InsertSeparator,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def RemoveTool(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_RemoveTool,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def DeleteToolByPos(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarBase_DeleteToolByPos,(self,) + _args, _kwargs)
self.thisown = 0
def FindToolForPosition(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBar_FindToolForPosition,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def __repr__(self):
return "<C wxToolBar instance at %s>" % (self.this,)
self.thisown = 0
def FindToolForPosition(self, *_args, **_kwargs):
val = apply(stattoolc.wxToolBarSimple_FindToolForPosition,(self,) + _args, _kwargs)
- if val: val = wxToolBarToolBasePtr(val)
return val
def __repr__(self):
return "<C wxToolBarSimple instance at %s>" % (self.this,)
PyObject * _arg0;
PyObject * _obj0 = 0;
char *_kwnames[] = { "p", NULL };
+ char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxInputStream",_kwnames,&_obj0))
{
_result = (wxPyInputStream *)new_wxPyInputStream(_arg0);
-}{
- char _ptemp[128];
- if (_result) {
+} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyInputStream_p");
_resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
}
- else
- _resultobj=0;
-}
return _resultobj;
}
SWIG_globals = SWIG_newvarlink();
m = Py_InitModule("streamsc", streamscMethods);
d = PyModule_GetDict(m);
+
+ wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
{
int i;
for (i = 0; _swig_mapping[i].n1; i++)
#include "helpers.h"
#include <wx/menuitem.h>
+#include <wx/tooltip.h>
static PyObject* l_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
static wxString wxPyEmptyStr("");
- bool wxValidator_IsSilent() {
- return wxValidator::IsSilent();
- }
-
- void wxValidator_SetBellOnError(int doIt = TRUE) {
- wxValidator::SetBellOnError(doIt);
- }
-
class wxPyValidator : public wxValidator {
DECLARE_DYNAMIC_CLASS(wxPyValidator);
public:
wxPyValidator() {
}
-// wxPyValidator(const wxPyValidator& other);
~wxPyValidator() {
}
return ptr;
}
+
DEC_PYCALLBACK_BOOL_WXWIN(Validate);
DEC_PYCALLBACK_BOOL_(TransferToWindow);
DEC_PYCALLBACK_BOOL_(TransferFromWindow);
PYPRIVATE;
-// PyObject* m_data;
};
IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
#ifdef __cplusplus
extern "C" {
#endif
-static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- bool _result;
- char *_kwnames[] = { NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxValidator_IsSilent();
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("i",_result);
- return _resultobj;
-}
-
-static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- int _arg0 = (int ) TRUE;
- char *_kwnames[] = { "doIt", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
- return NULL;
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxValidator_SetBellOnError(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxWindow * _result;
char *_kwnames[] = { NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames))
_result = (wxWindow *)wxWindow_FindFocus();
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxEvtHandlerTowxObject(void *ptr) {
+ wxEvtHandler *src;
+ wxObject *dest;
+ src = (wxEvtHandler *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxEvtHandler() (new wxEvtHandler())
static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxEvtHandler * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0))
_result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxEvtHandler * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0))
_result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
-static const char * wxEvtHandler_GetClassName(wxEvtHandler *self) {
- return self->GetClassInfo()->GetClassName();
- }
-static PyObject *_wrap_wxEvtHandler_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- char * _result;
- wxEvtHandler * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetClassName",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetClassName. Expected _wxEvtHandler_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (char *)wxEvtHandler_GetClassName(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} _resultobj = Py_BuildValue("s", _result);
- return _resultobj;
-}
-
static void *SwigwxValidatorTowxEvtHandler(void *ptr) {
wxValidator *src;
wxEvtHandler *dest;
return (void *) dest;
}
+static void *SwigwxValidatorTowxObject(void *ptr) {
+ wxValidator *src;
+ wxObject *dest;
+ src = (wxValidator *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxValidator() (new wxValidator())
static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxValidator * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0))
_result = (wxValidator *)wxValidator_Clone(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxValidator * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxValidator_GetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ char *_kwnames[] = { NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxValidator::IsSilent();
+
+ wxPy_END_ALLOW_THREADS;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _arg0 = (int ) TRUE;
+ char *_kwnames[] = { "doIt", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxValidator::SetBellOnError(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void *SwigwxPyValidatorTowxValidator(void *ptr) {
wxPyValidator *src;
wxValidator *dest;
return (void *) dest;
}
+static void *SwigwxPyValidatorTowxObject(void *ptr) {
+ wxPyValidator *src;
+ wxObject *dest;
+ src = (wxPyValidator *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPyValidator() (new wxPyValidator())
static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
-static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; }
-static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
- PyObject * _resultobj;
- wxPyValidator * _arg0;
- PyObject * _argo0 = 0;
- char *_kwnames[] = { "self", NULL };
-
- self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0))
- return NULL;
- if (_argo0) {
- if (_argo0 == Py_None) { _arg0 = NULL; }
- else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) {
- PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p.");
- return NULL;
- }
- }
-{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyValidator_Destroy(_arg0);
-
- wxPy_END_ALLOW_THREADS;
-} Py_INCREF(Py_None);
- _resultobj = Py_None;
- return _resultobj;
-}
-
#define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setSelf(_swigarg0,_swigarg1,_swigarg2))
static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxWindowTowxObject(void *ptr) {
+ wxWindow *src;
+ wxObject *dest;
+ src = (wxWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
long _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","id", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1))
_result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo0 = 0;
PyObject * _obj1 = 0;
char *_kwnames[] = { "self","name", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1))
_result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj1)
delete _arg1;
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0))
_result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0))
_result = (wxWindow *)wxWindow_GetGrandParent(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0))
_result = (wxWindow *)wxWindow_GetParent(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo0 = 0;
int tempbool1 = (int) FALSE;
char *_kwnames[] = { "self","deleteHandler", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1))
_result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0))
_result = (wxToolTip *)wxWindow_GetToolTip(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0))
_result = (wxSizer *)wxWindow_GetSizer(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0))
_result = (wxValidator *)wxWindow_GetValidator(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxPanelTowxObject(void *ptr) {
+ wxPanel *src;
+ wxObject *dest;
+ src = (wxPanel *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPanel * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0))
_result = (wxButton *)wxPanel_GetDefaultItem(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxDialogTowxObject(void *ptr) {
+ wxDialog *src;
+ wxObject *dest;
+ src = (wxDialog *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
PyObject * _argo0 = 0;
PyObject * _obj1 = 0;
char *_kwnames[] = { "self","message", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_CreateTextSizer",_kwnames,&_argo0,&_obj1))
_result = (wxSizer *)wxDialog_CreateTextSizer(_arg0,*_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj1)
delete _arg1;
long _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","flags", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDialog_CreateButtonSizer",_kwnames,&_argo0,&_arg1))
_result = (wxSizer *)wxDialog_CreateButtonSizer(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxSizer_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxScrolledWindowTowxObject(void *ptr) {
+ wxScrolledWindow *src;
+ wxObject *dest;
+ src = (wxScrolledWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxScrolledWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxMenuTowxObject(void *ptr) {
+ wxMenu *src;
+ wxObject *dest;
+ src = (wxMenu *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1))
static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","id", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1))
_result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","id", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1))
_result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
char *_kwnames[] = { "self","item", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1))
_result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMenu * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0))
_result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMenu * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMenu * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0))
_result = (wxMenu *)wxMenu_GetParent(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxMenuBarTowxObject(void *ptr) {
+ wxMenuBar *src;
+ wxObject *dest;
+ src = (wxMenuBar *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0))
static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
size_t _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","pos", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1))
_result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
PyObject * _argo2 = 0;
PyObject * _obj3 = 0;
char *_kwnames[] = { "self","pos","menu","title", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3))
_result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
{
if (_obj3)
delete _arg3;
size_t _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","pos", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1))
_result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","id", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1))
_result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return _resultobj;
}
+static void *SwigwxMenuItemTowxObject(void *ptr) {
+ wxMenuItem *src;
+ wxObject *dest;
+ src = (wxMenuItem *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxMenuItem * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0))
_result = (wxMenu *)wxMenuItem_GetMenu(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxMenuItem * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0))
_result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
{ "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
{ "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS },
{ "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS },
- { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS },
+ { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
+ { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
{ "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS },
{ "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS },
{ "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS },
{ "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS },
- { "wxEvtHandler_GetClassName", (PyCFunction) _wrap_wxEvtHandler_GetClassName, METH_VARARGS | METH_KEYWORDS },
{ "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
{ "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
{ "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
{ "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS },
{ "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS },
{ "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS },
- { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
- { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS },
{ NULL, NULL }
};
#ifdef __cplusplus
{ "_wxDataObjectSimple","_class_wxDataObjectSimple",0},
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject},
+ { "_class_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
+ { "_class_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject},
+ { "_class_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
+ { "_class_wxObject","_class_wxMenu",SwigwxMenuTowxObject},
+ { "_class_wxObject","_wxMenu",SwigwxMenuTowxObject},
+ { "_class_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
+ { "_class_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
+ { "_class_wxObject","_class_wxDialog",SwigwxDialogTowxObject},
+ { "_class_wxObject","_wxDialog",SwigwxDialogTowxObject},
+ { "_class_wxObject","_class_wxPanel",SwigwxPanelTowxObject},
+ { "_class_wxObject","_wxPanel",SwigwxPanelTowxObject},
+ { "_class_wxObject","_class_wxWindow",SwigwxWindowTowxObject},
+ { "_class_wxObject","_wxWindow",SwigwxWindowTowxObject},
+ { "_class_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject},
+ { "_class_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
+ { "_class_wxObject","_class_wxValidator",SwigwxValidatorTowxObject},
+ { "_class_wxObject","_wxValidator",SwigwxValidatorTowxObject},
+ { "_class_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject},
+ { "_class_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_size_t","_time_t",0},
{ "_wxFontList","_class_wxFontList",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
+ { "_wxObject","_class_wxMenuItem",SwigwxMenuItemTowxObject},
+ { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject},
+ { "_wxObject","_class_wxMenuBar",SwigwxMenuBarTowxObject},
+ { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject},
+ { "_wxObject","_class_wxMenu",SwigwxMenuTowxObject},
+ { "_wxObject","_wxMenu",SwigwxMenuTowxObject},
+ { "_wxObject","_class_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
+ { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject},
+ { "_wxObject","_class_wxDialog",SwigwxDialogTowxObject},
+ { "_wxObject","_wxDialog",SwigwxDialogTowxObject},
+ { "_wxObject","_class_wxPanel",SwigwxPanelTowxObject},
+ { "_wxObject","_wxPanel",SwigwxPanelTowxObject},
+ { "_wxObject","_class_wxWindow",SwigwxWindowTowxObject},
+ { "_wxObject","_wxWindow",SwigwxWindowTowxObject},
+ { "_wxObject","_class_wxPyValidator",SwigwxPyValidatorTowxObject},
+ { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject},
+ { "_wxObject","_class_wxValidator",SwigwxValidatorTowxObject},
+ { "_wxObject","_wxValidator",SwigwxValidatorTowxObject},
+ { "_wxObject","_class_wxEvtHandler",SwigwxEvtHandlerTowxObject},
+ { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_signed_short","_WXTYPE",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
{ "_int","_time_t",0},
else:
return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
-class wxEvtHandlerPtr :
+class wxEvtHandlerPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
return val
def GetNextHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def GetPreviousHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def SetNextHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs)
def Disconnect(self, *_args, **_kwargs):
val = apply(windowsc.wxEvtHandler_Disconnect,(self,) + _args, _kwargs)
return val
- def GetClassName(self, *_args, **_kwargs):
- val = apply(windowsc.wxEvtHandler_GetClassName,(self,) + _args, _kwargs)
- return val
def __repr__(self):
return "<C wxEvtHandler instance at %s>" % (self.this,)
class wxEvtHandler(wxEvtHandlerPtr):
self.thisown = 0
def Clone(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs)
- if val: val = wxValidatorPtr(val)
return val
def GetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs)
def __init__(self,this):
self.this = this
self.thisown = 0
- def Destroy(self, *_args, **_kwargs):
- val = apply(windowsc.wxPyValidator_Destroy,(self,) + _args, _kwargs)
- return val
def _setSelf(self, *_args, **_kwargs):
val = apply(windowsc.wxPyValidator__setSelf,(self,) + _args, _kwargs)
return val
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs)
self.thisown = 1
- self._setSelf(self, wxPyValidator, 0)
+ self._setSelf(self, wxPyValidator, 1)
return val
def FindWindowById(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def FindWindowByName(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def Fit(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
return val
def GetEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def GetFont(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
return val
def GetGrandParent(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetHandle(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs)
return val
def GetParent(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetPositionTuple(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
return val
def PopEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def PushEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
return val
def GetToolTip(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
- if val: val = wxToolTipPtr(val)
return val
def SetSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
return val
def GetSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def GetValidator(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
- if val: val = wxValidatorPtr(val)
return val
def SetValidator(self, *_args, **_kwargs):
val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxWindow instance at %s>" % (self.this,)
- # replaces broken shadow methods
+ # replaces broken shadow method
def GetCaret(self, *_args, **_kwargs):
from misc2 import wxCaretPtr
val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
if val: val = wxCaretPtr(val)
return val
-
- def GetSizer(self, *_args, **_kwargs):
- from sizers import wxSizerPtr
- val = apply(windowsc.wxWindow_GetSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
- return val
-
- def GetToolTip(self, *_args, **_kwargs):
- from misc2 import wxToolTipPtr
- val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
- if val: val = wxToolTipPtr(val)
- return val
class wxWindow(wxWindowPtr):
def __init__(self,*_args,**_kwargs):
return val
def GetDefaultItem(self, *_args, **_kwargs):
val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
- if val: val = wxButtonPtr(val)
return val
def SetDefaultItem(self, *_args, **_kwargs):
val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
return val
def __repr__(self):
return "<C wxPanel instance at %s>" % (self.this,)
-
- def GetDefaultItem(self):
- import controls
- val = windowsc.wxPanel_GetDefaultItem(self.this)
- val = controls.wxButtonPtr(val)
- return val
-
class wxPanel(wxPanelPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
return val
def CreateTextSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def CreateButtonSizer(self, *_args, **_kwargs):
val = apply(windowsc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
- if val: val = wxSizerPtr(val)
return val
def __repr__(self):
return "<C wxDialog instance at %s>" % (self.this,)
-
- # replace swig generated shadow methods to resolve import issues
- def CreateTextSizer(self, *_args, **_kwargs):
- import sizers
- val = apply(windowsc.wxDialog_CreateTextSizer,(self,) + _args, _kwargs)
- if val: val = sizers.wxSizerPtr(val)
- return val
- def CreateButtonSizer(self, *_args, **_kwargs):
- import sizers
- val = apply(windowsc.wxDialog_CreateButtonSizer,(self,) + _args, _kwargs)
- if val: val = sizers.wxSizerPtr(val)
- return val
-
class wxDialog(wxDialogPtr):
def __init__(self,*_args,**_kwargs):
self.this = apply(windowsc.new_wxDialog,_args,_kwargs)
return val
def GetTargetWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetVirtualSize(self, *_args, **_kwargs):
val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
return val
def FindItemById(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_FindItemById,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def GetTitle(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
return val
def Remove(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_Remove,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def RemoveItem(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_RemoveItem,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def Destroy(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
return val
def GetEventHandler(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetEventHandler,(self,) + _args, _kwargs)
- if val: val = wxEvtHandlerPtr(val)
return val
def SetInvokingWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_SetInvokingWindow,(self,) + _args, _kwargs)
return val
def GetInvokingWindow(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetInvokingWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetStyle(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetStyle,(self,) + _args, _kwargs)
return val
def GetParent(self, *_args, **_kwargs):
val = apply(windowsc.wxMenu_GetParent,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def __repr__(self):
return "<C wxMenu instance at %s>" % (self.this,)
return val
def GetMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Replace(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Remove(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def EnableTop(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
return val
def FindItemById(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_FindItemById,(self,) + _args, _kwargs)
- if val: val = wxMenuItemPtr(val)
return val
def Enable(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
-class wxMenuItemPtr :
+class wxMenuItemPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def GetMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def SetId(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs)
return val
def GetSubMenu(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
- if val: val = wxMenuPtr(val)
return val
def Enable(self, *_args, **_kwargs):
val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
#-------------- FUNCTION WRAPPERS ------------------
-wxValidator_IsSilent = windowsc.wxValidator_IsSilent
-
-wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
-
def wxWindow_FindFocus(*_args, **_kwargs):
val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs)
- if val: val = wxWindowPtr(val)
return val
wxWindow_NewControlId = windowsc.wxWindow_NewControlId
wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
+wxValidator_IsSilent = windowsc.wxValidator_IsSilent
+
+wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
+
wxMenuItem_GetLabelFromText = windowsc.wxMenuItem_GetLabelFromText
#endif
#include <wx/notebook.h>
#include <wx/splitter.h>
+#include <wx/imaglist.h>
#ifdef __WXMSW__
#include <wx/msw/taskbar.h>
#endif
return (void *) dest;
}
+static void *SwigwxNotebookEventTowxObject(void *ptr) {
+ wxNotebookEvent *src;
+ wxObject *dest;
+ src = (wxNotebookEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxNotebookEvent_GetSelection(_swigobj) (_swigobj->GetSelection())
static PyObject *_wrap_wxNotebookEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxNotebookTowxObject(void *ptr) {
+ wxNotebook *src;
+ wxObject *dest;
+ src = (wxNotebook *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxNotebook(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxNotebook(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxNotebook * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNotebook_GetImageList",_kwnames,&_argo0))
_result = (wxImageList *)wxNotebook_GetImageList(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
int _arg1;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self","nPage", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxNotebook_GetPage",_kwnames,&_argo0,&_arg1))
_result = (wxWindow *)wxNotebook_GetPage(_arg0,_arg1);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxSplitterEventTowxObject(void *ptr) {
+ wxSplitterEvent *src;
+ wxObject *dest;
+ src = (wxSplitterEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxSplitterEvent_GetSashPosition(_swigobj) (_swigobj->GetSashPosition())
static PyObject *_wrap_wxSplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxSplitterEvent * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterEvent_GetWindowBeingRemoved",_kwnames,&_argo0))
_result = (wxWindow *)wxSplitterEvent_GetWindowBeingRemoved(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
return (void *) dest;
}
+static void *SwigwxSplitterWindowTowxObject(void *ptr) {
+ wxSplitterWindow *src;
+ wxObject *dest;
+ src = (wxSplitterWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSplitterWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxSplitterWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow1",_kwnames,&_argo0))
_result = (wxWindow *)wxSplitterWindow_GetWindow1(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
wxSplitterWindow * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSplitterWindow_GetWindow2",_kwnames,&_argo0))
_result = (wxWindow *)wxSplitterWindow_GetWindow2(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
{ "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
+ { "_class_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
+ { "_class_wxObject","_class_wxSplitterEvent",SwigwxSplitterEventTowxObject},
+ { "_class_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject},
+ { "_class_wxObject","_class_wxNotebook",SwigwxNotebookTowxObject},
+ { "_class_wxObject","_wxNotebook",SwigwxNotebookTowxObject},
+ { "_class_wxObject","_class_wxNotebookEvent",SwigwxNotebookEventTowxObject},
+ { "_class_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
+ { "_wxObject","_wxSplitterWindow",SwigwxSplitterWindowTowxObject},
+ { "_wxObject","_class_wxSplitterEvent",SwigwxSplitterEventTowxObject},
+ { "_wxObject","_wxSplitterEvent",SwigwxSplitterEventTowxObject},
+ { "_wxObject","_class_wxNotebook",SwigwxNotebookTowxObject},
+ { "_wxObject","_wxNotebook",SwigwxNotebookTowxObject},
+ { "_wxObject","_class_wxNotebookEvent",SwigwxNotebookEventTowxObject},
+ { "_wxObject","_wxNotebookEvent",SwigwxNotebookEventTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
return val
def GetImageList(self, *_args, **_kwargs):
val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs)
- if val: val = wxImageListPtr(val)
return val
def GetPageImage(self, *_args, **_kwargs):
val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs)
return val
def GetPage(self, *_args, **_kwargs):
val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def ResizeChildren(self, *_args, **_kwargs):
val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs)
return val
def GetWindowBeingRemoved(self, *_args, **_kwargs):
val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def SetSashPosition(self, *_args, **_kwargs):
val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs)
return val
def GetWindow1(self, *_args, **_kwargs):
val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetWindow2(self, *_args, **_kwargs):
val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def Initialize(self, *_args, **_kwargs):
val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs)
return (void *) dest;
}
+static void *SwigwxSashEventTowxObject(void *ptr) {
+ wxSashEvent *src;
+ wxObject *dest;
+ src = (wxSashEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxSashEvent_SetEdge(_swigobj,_swigarg0) (_swigobj->SetEdge(_swigarg0))
static PyObject *_wrap_wxSashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSashWindowTowxObject(void *ptr) {
+ wxSashWindow *src;
+ wxObject *dest;
+ src = (wxSashWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxQueryLayoutInfoEventTowxObject(void *ptr) {
+ wxQueryLayoutInfoEvent *src;
+ wxObject *dest;
+ src = (wxQueryLayoutInfoEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxQueryLayoutInfoEvent_SetRequestedLength(_swigobj,_swigarg0) (_swigobj->SetRequestedLength(_swigarg0))
static PyObject *_wrap_wxQueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxCalculateLayoutEventTowxObject(void *ptr) {
+ wxCalculateLayoutEvent *src;
+ wxObject *dest;
+ src = (wxCalculateLayoutEvent *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define wxCalculateLayoutEvent_SetFlags(_swigobj,_swigarg0) (_swigobj->SetFlags(_swigarg0))
static PyObject *_wrap_wxCalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return (void *) dest;
}
+static void *SwigwxSashLayoutWindowTowxObject(void *ptr) {
+ wxSashLayoutWindow *src;
+ wxObject *dest;
+ src = (wxSashLayoutWindow *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxSashLayoutWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
static PyObject *_wrap_new_wxSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
return _resultobj;
}
+static void *SwigwxLayoutAlgorithmTowxObject(void *ptr) {
+ wxLayoutAlgorithm *src;
+ wxObject *dest;
+ src = (wxLayoutAlgorithm *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
#define new_wxLayoutAlgorithm() (new wxLayoutAlgorithm())
static PyObject *_wrap_new_wxLayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
{ "_class_wxSashEvent","_wxSashEvent",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
+ { "_class_wxObject","_class_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject},
+ { "_class_wxObject","_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject},
+ { "_class_wxObject","_class_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject},
+ { "_class_wxObject","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject},
+ { "_class_wxObject","_class_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject},
+ { "_class_wxObject","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject},
+ { "_class_wxObject","_class_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject},
+ { "_class_wxObject","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject},
+ { "_class_wxObject","_class_wxSashWindow",SwigwxSashWindowTowxObject},
+ { "_class_wxObject","_wxSashWindow",SwigwxSashWindowTowxObject},
+ { "_class_wxObject","_class_wxSashEvent",SwigwxSashEventTowxObject},
+ { "_class_wxObject","_wxSashEvent",SwigwxSashEventTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
{ "_size_t","_wxCoord",0},
{ "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0},
{ "_wxClientDC","_class_wxClientDC",0},
{ "_wxMouseEvent","_class_wxMouseEvent",0},
+ { "_wxObject","_class_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject},
+ { "_wxObject","_wxLayoutAlgorithm",SwigwxLayoutAlgorithmTowxObject},
+ { "_wxObject","_class_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject},
+ { "_wxObject","_wxSashLayoutWindow",SwigwxSashLayoutWindowTowxObject},
+ { "_wxObject","_class_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject},
+ { "_wxObject","_wxCalculateLayoutEvent",SwigwxCalculateLayoutEventTowxObject},
+ { "_wxObject","_class_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject},
+ { "_wxObject","_wxQueryLayoutInfoEvent",SwigwxQueryLayoutInfoEventTowxObject},
+ { "_wxObject","_class_wxSashWindow",SwigwxSashWindowTowxObject},
+ { "_wxObject","_wxSashWindow",SwigwxSashWindowTowxObject},
+ { "_wxObject","_class_wxSashEvent",SwigwxSashEventTowxObject},
+ { "_wxObject","_wxSashEvent",SwigwxSashEventTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_class_wxRadioBox","_wxRadioBox",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_int","_wxCoord",0},
{ "_int","_wxPrintQuality",0},
-class wxLayoutAlgorithmPtr :
+class wxLayoutAlgorithmPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
wxPyCBH_callCallback,
wxPyCBH_callCallbackObj,
wxPyCBH_delete,
+
+ wxPyClassExists,
+ wxPyMake_wxObject,
+ wxPyPtrTypeMap_Add,
};
+
#ifdef __cplusplus
extern "C" {
#endif
return (void *) dest;
}
+static void *SwigwxPyAppTowxObject(void *ptr) {
+ wxPyApp *src;
+ wxObject *dest;
+ src = (wxPyApp *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
static wxPyApp *new_wxPyApp() {
wxPythonApp = new wxPyApp();
return wxPythonApp;
wxPyApp * _arg0;
PyObject * _argo0 = 0;
char *_kwnames[] = { "self", NULL };
- char _ptemp[128];
self = self;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyApp_GetTopWindow",_kwnames,&_argo0))
_result = (wxWindow *)wxPyApp_GetTopWindow(_arg0);
wxPy_END_ALLOW_THREADS;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
{ "_class_wxClipboard","_wxClipboard",0},
{ "_class_wxGauge","_wxGauge",0},
{ "_class_wxSashEvent","_wxSashEvent",0},
+ { "_wxGDIObject","_class_wxGDIObject",0},
{ "_wxDC","_class_wxDC",0},
{ "_wxSizerItem","_class_wxSizerItem",0},
{ "_class_wxBitmapDataObject","_wxBitmapDataObject",0},
{ "_class_wxBMPHandler","_wxBMPHandler",0},
{ "_wxPrintPreview","_class_wxPrintPreview",0},
{ "_class_wxFlexGridSizer","_wxFlexGridSizer",0},
+ { "_class_wxObject","_class_wxPyApp",SwigwxPyAppTowxObject},
+ { "_class_wxObject","_wxPyApp",SwigwxPyAppTowxObject},
+ { "_class_wxObject","_wxObject",0},
{ "_wxSpinEvent","_class_wxSpinEvent",0},
{ "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0},
{ "_size_t","_wxCoord",0},
{ "_class_wxGenericDragImage","_wxGenericDragImage",0},
{ "_wxListCtrl","_class_wxListCtrl",0},
{ "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0},
+ { "_wxObject","_class_wxPyApp",SwigwxPyAppTowxObject},
+ { "_wxObject","_wxPyApp",SwigwxPyAppTowxObject},
+ { "_wxObject","_class_wxObject",0},
{ "_class_wxPoint","_wxPoint",0},
{ "_class_wxPyInputStream","_wxPyInputStream",0},
{ "_wxRealPoint","_class_wxRealPoint",0},
{ "_wxWindowID","_int",0},
{ "_wxWindowID","_signed_int",0},
{ "_wxWindowID","_unsigned_int",0},
+ { "_class_wxGDIObject","_wxGDIObject",0},
{ "_class_wxScrollWinEvent","_wxScrollWinEvent",0},
{ "_class_wxSizerItem","_wxSizerItem",0},
{ "_int","_wxCoord",0},
PyDict_SetItemString(d,"wxEVT_MEASURE_ITEM", PyInt_FromLong((long) wxEVT_MEASURE_ITEM));
PyDict_SetItemString(d,"wxEVT_COMPARE_ITEM", PyInt_FromLong((long) wxEVT_COMPARE_ITEM));
PyDict_SetItemString(d,"wxEVT_INIT_DIALOG", PyInt_FromLong((long) wxEVT_INIT_DIALOG));
+ PyDict_SetItemString(d,"wxEVT_HELP", PyInt_FromLong((long) wxEVT_HELP));
+ PyDict_SetItemString(d,"wxEVT_DETAILED_HELP", PyInt_FromLong((long) wxEVT_DETAILED_HELP));
PyDict_SetItemString(d,"wxEVT_IDLE", PyInt_FromLong((long) wxEVT_IDLE));
PyDict_SetItemString(d,"wxEVT_UPDATE_UI", PyInt_FromLong((long) wxEVT_UPDATE_UI));
PyDict_SetItemString(d,"wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LEFT_CLICK));
return val
def GetTopWindow(self, *_args, **_kwargs):
val = apply(wxc.wxPyApp_GetTopWindow,(self,) + _args, _kwargs)
- if val: val = wxWindowPtr(val)
return val
def GetVendorName(self, *_args, **_kwargs):
val = apply(wxc.wxPyApp_GetVendorName,(self,) + _args, _kwargs)
wxEVT_MEASURE_ITEM = wxc.wxEVT_MEASURE_ITEM
wxEVT_COMPARE_ITEM = wxc.wxEVT_COMPARE_ITEM
wxEVT_INIT_DIALOG = wxc.wxEVT_INIT_DIALOG
+wxEVT_HELP = wxc.wxEVT_HELP
+wxEVT_DETAILED_HELP = wxc.wxEVT_DETAILED_HELP
wxEVT_IDLE = wxc.wxEVT_IDLE
wxEVT_UPDATE_UI = wxc.wxEVT_UPDATE_UI
wxEVT_COMMAND_LEFT_CLICK = wxc.wxEVT_COMMAND_LEFT_CLICK
def wxPyTypeCast(obj, typeStr):
if obj is None:
return None
+ theClass = globals()[typeStr+"Ptr"]
+ typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
if hasattr(obj, "this"):
+ if obj.__class__ is theClass: # if already the right type then just return it
+ return obj
newPtr = ptrcast(obj.this, typeStr+"_p")
else:
newPtr = ptrcast(obj, typeStr+"_p")
- theClass = globals()[typeStr+"Ptr"]
theObj = theClass(newPtr)
if hasattr(obj, "this"):
theObj.thisown = obj.thisown
self.cleanup()
__cleanMeUp = __wxPyCleanup()
+
+#----------------------------------------------------------------------------
#----------------------------------------------------------------------------