const char* name = "calendar");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreCalendarCtrl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreCalendarCtrl:val._setOORInfo(val)"
// set/get the current date
// ------------------------
int style = 0);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreFindReplaceDialog:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreFindReplaceDialog:val._setOORInfo(val)"
const wxFindReplaceData *GetData();
void SetData(wxFindReplaceData *data);
const char* name="control");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreControl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreControl:val._setOORInfo(val)"
void Command(wxCommandEvent& event);
wxString GetLabel();
char* name = "button");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreButton:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreButton:val._setOORInfo(val)"
void SetDefault();
void SetBackgroundColour(const wxColour& colour);
char* name = "button");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreBitmapButton:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreBitmapButton:val._setOORInfo(val)"
wxBitmap& GetBitmapLabel();
wxBitmap& GetBitmapDisabled();
char* name = "checkBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreCheckBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreCheckBox:val._setOORInfo(val)"
bool GetValue();
void SetValue(const bool state);
char* name = "choice");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreChoice:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreChoice:val._setOORInfo(val)"
void Clear();
char* name = "comboBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreComboBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreComboBox:val._setOORInfo(val)"
void Copy();
void Cut();
char* name = "gauge");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreGauge:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreGauge:val._setOORInfo(val)"
int GetBezelFace();
int GetRange();
char* name = "staticBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreStaticBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreStaticBox:val._setOORInfo(val)"
};
const char* name = "staticLine" );
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreStaticLine:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreStaticLine:val._setOORInfo(val)"
};
char* name = "staticText");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreStaticText:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreStaticText:val._setOORInfo(val)"
wxString GetLabel();
void SetLabel(const wxString& label);
char* name = "listBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreListBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreListBox:val._setOORInfo(val)"
void Clear();
void Deselect(int n);
char* name = "listBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreCheckListBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreCheckListBox:val._setOORInfo(val)"
bool IsChecked(int uiIndex);
void Check(int uiIndex, int bCheck = TRUE);
char* name = "text");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreTextCtrl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreTextCtrl:val._setOORInfo(val)"
void Clear();
void Copy();
char* name = "scrollBar");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreScrollBar:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreScrollBar:val._setOORInfo(val)"
int GetRange();
int GetPageSize();
char* name = "spinButton");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSpinButton:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSpinButton:val._setOORInfo(val)"
int GetMax();
int GetMin();
char* name = "staticBitmap");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreStaticBitmap:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreStaticBitmap:val._setOORInfo(val)"
const wxBitmap& GetBitmap();
void SetBitmap(const wxBitmap& bitmap);
char* name = "radioBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreRadioBox:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreRadioBox:val._setOORInfo(val)"
void Enable(bool enable);
%name(EnableItem)void Enable(int n, bool enable);
char* name = "radioButton");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreRadioButton:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreRadioButton:val._setOORInfo(val)"
bool GetValue();
void SetValue(bool value);
char* name = "slider");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSlider:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSlider:val._setOORInfo(val)"
void ClearSel();
void ClearTicks();
const char* name = "wxSpinCtrl");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSpinCtrl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSpinCtrl:val._setOORInfo(val)"
int GetMax();
int GetMin();
const char* name = "toggle");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreToggleButton:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreToggleButton:val._setOORInfo(val)"
void SetValue(bool value);
bool GetValue() const ;
%pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxListCtrl)"
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreListCtrl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreListCtrl:val._setOORInfo(val)"
// Set the control colours
bool SetForegroundColour(const wxColour& col);
const wxString &name = "listctrl" );
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreListView:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreListView:val._setOORInfo(val)"
// [de]select an item
void Select(long n, bool on = TRUE);
%pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxTreeCtrl)"
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreTreeCtrl:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreTreeCtrl:val._setOORInfo(val)"
size_t GetCount();
unsigned int GetIndent();
const char* name = "frame");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreTopLevelWindowXXX:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreTopLevelWindow:val._setOORInfo(val)"
// maximize = TRUE => maximize, otherwise - restore
virtual void Maximize(bool maximize = TRUE);
char* name = "frame");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreFrame:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreFrame:val._setOORInfo(val)"
wxPoint GetClientAreaOrigin();
const char* name = "dialogBox");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreDialog:val._setOORInfo(val)"
void Centre(int direction = wxBOTH);
void EndModal(int retCode);
char* name = "frame");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreMiniFrame:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreMiniFrame:val._setOORInfo(val)"
};
%{
#include "helpers.h"
-#include <wx/metafile.h>
#include <wx/imaglist.h>
#ifndef __WXMSW__
#include <wx/dcps.h>
%addmethods {
// NOTE: These methods are VERY SIMILAR in implentation. It would be
- // nice to factor out code and or turn them into a set of
+ // nice to factor out common code and or turn them into a set of
// template-like macros.
// Draw a point for every set of coordinants in pyPoints, optionally
#ifdef __WXMSW__
+
+%{
+#include <wx/metafile.h>
+%}
+
+class wxMetaFile : public wxObject {
+public:
+ wxMetaFile(const wxString& filename = wxPyEmptyStr);
+ ~wxMetaFile();
+
+ bool Ok();
+ bool SetClipboard(int width = 0, int height = 0);
+
+ wxSize GetSize();
+ int GetWidth();
+ int GetHeight();
+
+ const wxString& GetFileName() const { return m_filename; }
+
+};
+
+// bool wxMakeMetaFilePlaceable(const wxString& filename,
+// int minX, int minY, int maxX, int maxY, float scale=1.0);
+
+
class wxMetaFileDC : public wxDC {
public:
- wxMetaFileDC(const wxString& filename = wxPyEmptyStr);
+ wxMetaFileDC(const wxString& filename = wxPyEmptyStr,
+ int width = 0, int height = 0,
+ const wxString& description = wxPyEmptyStr);
wxMetaFile* Close();
};
+
#endif
//---------------------------------------------------------------------------
def wxPreCalendarCtrl(*_args,**_kwargs):
val = wxCalendarCtrlPtr(apply(calendarc.new_wxPreCalendarCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
return _resultobj;
}
+static void *SwigwxURLDataObjectTowxDataObjectComposite(void *ptr) {
+ wxURLDataObject *src;
+ wxDataObjectComposite *dest;
+ src = (wxURLDataObject *) ptr;
+ dest = (wxDataObjectComposite *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxURLDataObjectTowxDataObject(void *ptr) {
+ wxURLDataObject *src;
+ wxDataObject *dest;
+ src = (wxURLDataObject *) ptr;
+ dest = (wxDataObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxURLDataObject() (new wxURLDataObject())
+static PyObject *_wrap_new_wxURLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxURLDataObject * _result;
+ char *_kwnames[] = { NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxURLDataObject",_kwnames))
+ return NULL;
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxURLDataObject *)new_wxURLDataObject();
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxURLDataObject_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define wxURLDataObject_GetURL(_swigobj) (_swigobj->GetURL())
+static PyObject *_wrap_wxURLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxURLDataObject * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxURLDataObject_GetURL",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_GetURL. Expected _wxURLDataObject_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxString (wxURLDataObject_GetURL(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+{
+ delete _result;
+}
+ return _resultobj;
+}
+
+#define wxURLDataObject_SetURL(_swigobj,_swigarg0) (_swigobj->SetURL(_swigarg0))
+static PyObject *_wrap_wxURLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxURLDataObject * _arg0;
+ wxString * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","url", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxURLDataObject_SetURL",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxURLDataObject_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxURLDataObject_SetURL. Expected _wxURLDataObject_p.");
+ return NULL;
+ }
+ }
+{
+#if PYTHON_API_VERSION >= 1009
+ char* tmpPtr; int tmpSize;
+ if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ return NULL;
+ _arg1 = new wxString(tmpPtr, tmpSize);
+#else
+ if (!PyString_Check(_obj1)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
+#endif
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxURLDataObject_SetURL(_arg0,*_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+{
+ if (_obj1)
+ delete _arg1;
+}
+ return _resultobj;
+}
+
static void *SwigwxClipboardTowxObject(void *ptr) {
wxClipboard *src;
wxObject *dest;
{ "wxClipboard_Close", (PyCFunction) _wrap_wxClipboard_Close, METH_VARARGS | METH_KEYWORDS },
{ "wxClipboard_Open", (PyCFunction) _wrap_wxClipboard_Open, METH_VARARGS | METH_KEYWORDS },
{ "new_wxClipboard", (PyCFunction) _wrap_new_wxClipboard, METH_VARARGS | METH_KEYWORDS },
+ { "wxURLDataObject_SetURL", (PyCFunction) _wrap_wxURLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
+ { "wxURLDataObject_GetURL", (PyCFunction) _wrap_wxURLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxURLDataObject", (PyCFunction) _wrap_new_wxURLDataObject, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_GetData", (PyCFunction) _wrap_wxCustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_GetSize", (PyCFunction) _wrap_wxCustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
{ "wxCustomDataObject_SetData", (PyCFunction) _wrap_wxCustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
{ "_wxPrintQuality","_size_t",0},
{ "_wxPrintQuality","_time_t",0},
{ "_byte","_unsigned_char",0},
+ { "_wxDataObject","_wxURLDataObject",SwigwxURLDataObjectTowxDataObject},
{ "_wxDataObject","_wxCustomDataObject",SwigwxCustomDataObjectTowxDataObject},
{ "_wxDataObject","_wxFileDataObject",SwigwxFileDataObjectTowxDataObject},
{ "_wxDataObject","_wxPyBitmapDataObject",SwigwxPyBitmapDataObjectTowxDataObject},
{ "_wxCoord","_size_t",0},
{ "_wxCoord","_time_t",0},
{ "_wxCoord","_wxPrintQuality",0},
+ { "_wxDataObjectComposite","_wxURLDataObject",SwigwxURLDataObjectTowxDataObjectComposite},
{ "_wxPyDropTarget","_wxPyFileDropTarget",SwigwxPyFileDropTargetTowxPyDropTarget},
{ "_wxPyDropTarget","_wxPyTextDropTarget",SwigwxPyTextDropTargetTowxPyDropTarget},
{0,0,0}};
PyDict_SetItemString(d,"wxDragNone", PyInt_FromLong((long) wxDragNone));
PyDict_SetItemString(d,"wxDragCopy", PyInt_FromLong((long) wxDragCopy));
PyDict_SetItemString(d,"wxDragMove", PyInt_FromLong((long) wxDragMove));
+ PyDict_SetItemString(d,"wxDragLink", PyInt_FromLong((long) wxDragLink));
PyDict_SetItemString(d,"wxDragCancel", PyInt_FromLong((long) wxDragCancel));
+class wxURLDataObjectPtr(wxDataObjectCompositePtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def GetURL(self, *_args, **_kwargs):
+ val = apply(clip_dndc.wxURLDataObject_GetURL,(self,) + _args, _kwargs)
+ return val
+ def SetURL(self, *_args, **_kwargs):
+ val = apply(clip_dndc.wxURLDataObject_SetURL,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxURLDataObject instance at %s>" % (self.this,)
+class wxURLDataObject(wxURLDataObjectPtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(clip_dndc.new_wxURLDataObject,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxClipboardPtr(wxObjectPtr):
def __init__(self,this):
self.this = this
wxDragNone = clip_dndc.wxDragNone
wxDragCopy = clip_dndc.wxDragCopy
wxDragMove = clip_dndc.wxDragMove
+wxDragLink = clip_dndc.wxDragLink
wxDragCancel = clip_dndc.wxDragCancel
def wxPreFindReplaceDialog(*_args,**_kwargs):
val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreControl(*_args,**_kwargs):
val = wxControlPtr(apply(controlsc.new_wxPreControl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreButton(*_args,**_kwargs):
val = wxButtonPtr(apply(controlsc.new_wxPreButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreBitmapButton(*_args,**_kwargs):
val = wxBitmapButtonPtr(apply(controlsc.new_wxPreBitmapButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreCheckBox(*_args,**_kwargs):
val = wxCheckBoxPtr(apply(controlsc.new_wxPreCheckBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreChoice(*_args,**_kwargs):
val = wxChoicePtr(apply(controlsc.new_wxPreChoice,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreComboBox(*_args,**_kwargs):
val = wxComboBoxPtr(apply(controlsc.new_wxPreComboBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreGauge(*_args,**_kwargs):
val = wxGaugePtr(apply(controlsc.new_wxPreGauge,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticBox(*_args,**_kwargs):
val = wxStaticBoxPtr(apply(controlsc.new_wxPreStaticBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticLine(*_args,**_kwargs):
val = wxStaticLinePtr(apply(controlsc.new_wxPreStaticLine,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticText(*_args,**_kwargs):
val = wxStaticTextPtr(apply(controlsc.new_wxPreStaticText,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListBox(*_args,**_kwargs):
val = wxListBoxPtr(apply(controlsc.new_wxPreListBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreCheckListBox(*_args,**_kwargs):
val = wxCheckListBoxPtr(apply(controlsc.new_wxPreCheckListBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTextCtrl(*_args,**_kwargs):
val = wxTextCtrlPtr(apply(controlsc.new_wxPreTextCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreScrollBar(*_args,**_kwargs):
val = wxScrollBarPtr(apply(controlsc.new_wxPreScrollBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSpinButton(*_args,**_kwargs):
val = wxSpinButtonPtr(apply(controlsc.new_wxPreSpinButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticBitmap(*_args,**_kwargs):
val = wxStaticBitmapPtr(apply(controlsc.new_wxPreStaticBitmap,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreRadioBox(*_args,**_kwargs):
val = wxRadioBoxPtr(apply(controlsc.new_wxPreRadioBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreRadioButton(*_args,**_kwargs):
val = wxRadioButtonPtr(apply(controlsc.new_wxPreRadioButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSlider(*_args,**_kwargs):
val = wxSliderPtr(apply(controlsc.new_wxPreSlider,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSpinCtrl(*_args,**_kwargs):
val = wxSpinCtrlPtr(apply(controlsc.new_wxPreSpinCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToggleButton(*_args,**_kwargs):
val = wxToggleButtonPtr(apply(controlsc.new_wxPreToggleButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListCtrl(*_args,**_kwargs):
val = wxListCtrlPtr(apply(controls2c.new_wxPreListCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListView(*_args,**_kwargs):
val = wxListViewPtr(apply(controls2c.new_wxPreListView,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTreeCtrl(*_args,**_kwargs):
val = wxTreeCtrlPtr(apply(controls2c.new_wxPreTreeCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTopLevelWindow(*_args,**_kwargs):
val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
val.thisown = 1
+ val._setOORInfo(val)
return val
def wxPreFrame(*_args,**_kwargs):
val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreDialog(*_args,**_kwargs):
val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMiniFrame(*_args,**_kwargs):
val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
#define SWIG_name "gdic"
#include "helpers.h"
-#include <wx/metafile.h>
#include <wx/imaglist.h>
#ifndef __WXMSW__
#include <wx/dcps.h>
def wxPreMDIParentFrame(*_args,**_kwargs):
val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMDIChildFrame(*_args,**_kwargs):
val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMDIClientWindow(*_args,**_kwargs):
val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
return (void *) dest;
}
+static void wxSizer__setOORInfo(wxSizer *self,PyObject * _self) {
+ self->SetClientObject(new wxPyClientData(_self));
+ }
+static PyObject *_wrap_wxSizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxSizer * _arg0;
+ PyObject * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _obj1 = 0;
+ char *_kwnames[] = { "self","_self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSizer__setOORInfo",_kwnames,&_argo0,&_obj1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSizer_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSizer__setOORInfo. Expected _wxSizer_p.");
+ return NULL;
+ }
+ }
+{
+ _arg1 = _obj1;
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ wxSizer__setOORInfo(_arg0,_arg1);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
static void wxSizer_Destroy(wxSizer *self) { delete self; }
static PyObject *_wrap_wxSizer_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "wxSizer_AddSizer", (PyCFunction) _wrap_wxSizer_AddSizer, METH_VARARGS | METH_KEYWORDS },
{ "wxSizer_AddWindow", (PyCFunction) _wrap_wxSizer_AddWindow, METH_VARARGS | METH_KEYWORDS },
{ "wxSizer_Destroy", (PyCFunction) _wrap_wxSizer_Destroy, METH_VARARGS | METH_KEYWORDS },
+ { "wxSizer__setOORInfo", (PyCFunction) _wrap_wxSizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
{ "wxSizerItem_GetUserData", (PyCFunction) _wrap_wxSizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
{ "wxSizerItem_SetBorder", (PyCFunction) _wrap_wxSizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
{ "wxSizerItem_SetFlag", (PyCFunction) _wrap_wxSizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
def __init__(self,this):
self.this = this
self.thisown = 0
+ def _setOORInfo(self, *_args, **_kwargs):
+ val = apply(sizersc.wxSizer__setOORInfo,(self,) + _args, _kwargs)
+ return val
def Destroy(self, *_args, **_kwargs):
val = apply(sizersc.wxSizer_Destroy,(self,) + _args, _kwargs)
return val
self.this = apply(sizersc.new_wxPySizer,_args,_kwargs)
self.thisown = 1
self._setCallbackInfo(self, wxPySizer)
+ self._setOORInfo(self)
def __init__(self,*_args,**_kwargs):
self.this = apply(sizersc.new_wxBoxSizer,_args,_kwargs)
self.thisown = 1
+ self._setOORInfo(self)
def __init__(self,*_args,**_kwargs):
self.this = apply(sizersc.new_wxStaticBoxSizer,_args,_kwargs)
self.thisown = 1
+ self._setOORInfo(self)
def __init__(self,*_args,**_kwargs):
self.this = apply(sizersc.new_wxNotebookSizer,_args,_kwargs)
self.thisown = 1
+ self._setOORInfo(self)
def __init__(self,*_args,**_kwargs):
self.this = apply(sizersc.new_wxGridSizer,_args,_kwargs)
self.thisown = 1
+ self._setOORInfo(self)
def __init__(self,*_args,**_kwargs):
self.this = apply(sizersc.new_wxFlexGridSizer,_args,_kwargs)
self.thisown = 1
+ self._setOORInfo(self)
def wxPreStatusBar(*_args,**_kwargs):
val = wxStatusBarPtr(apply(stattoolc.new_wxPreStatusBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToolBar(*_args,**_kwargs):
val = wxToolBarPtr(apply(stattoolc.new_wxPreToolBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToolBarSimple(*_args,**_kwargs):
val = wxToolBarSimplePtr(apply(stattoolc.new_wxPreToolBarSimple,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreWindow(*_args,**_kwargs):
val = wxWindowPtr(apply(windowsc.new_wxPreWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreScrolledWindow(*_args,**_kwargs):
val = wxScrolledWindowPtr(apply(windowsc.new_wxPreScrolledWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreNotebook(*_args,**_kwargs):
val = wxNotebookPtr(apply(windows2c.new_wxPreNotebook,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSplitterWindow(*_args,**_kwargs):
val = wxSplitterWindowPtr(apply(windows2c.new_wxPreSplitterWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSashWindow(*_args,**_kwargs):
val = wxSashWindowPtr(apply(windows3c.new_wxPreSashWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSashLayoutWindow(*_args,**_kwargs):
val = wxSashLayoutWindowPtr(apply(windows3c.new_wxPreSashLayoutWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPrePopupWindow(*_args,**_kwargs):
val = wxPopupWindowPtr(apply(windows3c.new_wxPrePopupWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPrePopupTransientWindow(*_args,**_kwargs):
val = wxPopupTransientWindowPtr(apply(windows3c.new_wxPrePopupTransientWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
const char* name = "frame");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)"
void ActivateNext();
void ActivatePrevious();
const char* name = "frame");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)"
void Activate();
void Maximize(bool maximize);
bool Create(wxMDIParentFrame* parent, long style = 0);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)"
};
//---------------------------------------------------------------------------
def wxPreCalendarCtrl(*_args,**_kwargs):
val = wxCalendarCtrlPtr(apply(calendarc.new_wxPreCalendarCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreFindReplaceDialog(*_args,**_kwargs):
val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreControl(*_args,**_kwargs):
val = wxControlPtr(apply(controlsc.new_wxPreControl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreButton(*_args,**_kwargs):
val = wxButtonPtr(apply(controlsc.new_wxPreButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreBitmapButton(*_args,**_kwargs):
val = wxBitmapButtonPtr(apply(controlsc.new_wxPreBitmapButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreCheckBox(*_args,**_kwargs):
val = wxCheckBoxPtr(apply(controlsc.new_wxPreCheckBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreChoice(*_args,**_kwargs):
val = wxChoicePtr(apply(controlsc.new_wxPreChoice,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreComboBox(*_args,**_kwargs):
val = wxComboBoxPtr(apply(controlsc.new_wxPreComboBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreGauge(*_args,**_kwargs):
val = wxGaugePtr(apply(controlsc.new_wxPreGauge,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticBox(*_args,**_kwargs):
val = wxStaticBoxPtr(apply(controlsc.new_wxPreStaticBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticLine(*_args,**_kwargs):
val = wxStaticLinePtr(apply(controlsc.new_wxPreStaticLine,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticText(*_args,**_kwargs):
val = wxStaticTextPtr(apply(controlsc.new_wxPreStaticText,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListBox(*_args,**_kwargs):
val = wxListBoxPtr(apply(controlsc.new_wxPreListBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreCheckListBox(*_args,**_kwargs):
val = wxCheckListBoxPtr(apply(controlsc.new_wxPreCheckListBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTextCtrl(*_args,**_kwargs):
val = wxTextCtrlPtr(apply(controlsc.new_wxPreTextCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreScrollBar(*_args,**_kwargs):
val = wxScrollBarPtr(apply(controlsc.new_wxPreScrollBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSpinButton(*_args,**_kwargs):
val = wxSpinButtonPtr(apply(controlsc.new_wxPreSpinButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStaticBitmap(*_args,**_kwargs):
val = wxStaticBitmapPtr(apply(controlsc.new_wxPreStaticBitmap,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreRadioBox(*_args,**_kwargs):
val = wxRadioBoxPtr(apply(controlsc.new_wxPreRadioBox,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreRadioButton(*_args,**_kwargs):
val = wxRadioButtonPtr(apply(controlsc.new_wxPreRadioButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSlider(*_args,**_kwargs):
val = wxSliderPtr(apply(controlsc.new_wxPreSlider,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSpinCtrl(*_args,**_kwargs):
val = wxSpinCtrlPtr(apply(controlsc.new_wxPreSpinCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToggleButton(*_args,**_kwargs):
val = wxToggleButtonPtr(apply(controlsc.new_wxPreToggleButton,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListCtrl(*_args,**_kwargs):
val = wxListCtrlPtr(apply(controls2c.new_wxPreListCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreListView(*_args,**_kwargs):
val = wxListViewPtr(apply(controls2c.new_wxPreListView,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTreeCtrl(*_args,**_kwargs):
val = wxTreeCtrlPtr(apply(controls2c.new_wxPreTreeCtrl,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreTopLevelWindow(*_args,**_kwargs):
val = wxTopLevelWindowPtr(apply(framesc.new_wxPreTopLevelWindow,_args,_kwargs))
val.thisown = 1
+ val._setOORInfo(val)
return val
def wxPreFrame(*_args,**_kwargs):
val = wxFramePtr(apply(framesc.new_wxPreFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreDialog(*_args,**_kwargs):
val = wxDialogPtr(apply(framesc.new_wxPreDialog,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMiniFrame(*_args,**_kwargs):
val = wxMiniFramePtr(apply(framesc.new_wxPreMiniFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
#define SWIG_name "gdic"
#include "helpers.h"
-#include <wx/metafile.h>
#include <wx/imaglist.h>
#ifndef __WXMSW__
#include <wx/dcps.h>
return new wxMemoryDC(oldDC);
}
+#include <wx/metafile.h>
+
#if 0
extern wxFont * wxNORMAL_FONT;
extern wxFont * wxSMALL_FONT;
return _resultobj;
}
+static void *SwigwxMetaFileTowxObject(void *ptr) {
+ wxMetaFile *src;
+ wxObject *dest;
+ src = (wxMetaFile *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
+static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxMetaFile * _result;
+ wxString * _arg0 = (wxString *) &wxPyEmptyStr;
+ PyObject * _obj0 = 0;
+ char *_kwnames[] = { "filename", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
+ return NULL;
+ if (_obj0)
+{
+#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
+}
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj0)
+ delete _arg0;
+}
+ return _resultobj;
+}
+
+#define delete_wxMetaFile(_swigobj) (delete _swigobj)
+static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ delete_wxMetaFile(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+#define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
+static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxMetaFile_Ok(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
+static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ bool _result;
+ wxMetaFile * _arg0;
+ int _arg1 = (int ) 0;
+ int _arg2 = (int ) 0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self","width","height", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
+static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxSize * _result;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = new wxSize (wxMetaFile_GetSize(_arg0));
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ return _resultobj;
+}
+
+#define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
+static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxMetaFile_GetWidth(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
+static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ _result = (int )wxMetaFile_GetHeight(_arg0);
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
+#define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
+static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxString * _result;
+ wxMetaFile * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
+ return NULL;
+ }
+ }
+{
+ wxPy_BEGIN_ALLOW_THREADS;
+ const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
+ _result = (wxString *) &_result_ref;
+
+ wxPy_END_ALLOW_THREADS;
+ if (PyErr_Occurred()) return NULL;
+}{
+ _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+}
+ return _resultobj;
+}
+
static void *SwigwxMetaFileDCTowxDC(void *ptr) {
wxMetaFileDC *src;
wxDC *dest;
return (void *) dest;
}
-#define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
+#define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxMetaFileDC * _result;
wxString * _arg0 = (wxString *) &wxPyEmptyStr;
+ int _arg1 = (int ) 0;
+ int _arg2 = (int ) 0;
+ wxString * _arg3 = (wxString *) &wxPyEmptyStr;
PyObject * _obj0 = 0;
- char *_kwnames[] = { "filename", NULL };
+ PyObject * _obj3 = 0;
+ char *_kwnames[] = { "filename","width","height","description", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFileDC",_kwnames,&_obj0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
return NULL;
if (_obj0)
{
}
_arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
#endif
+}
+ if (_obj3)
+{
+#if PYTHON_API_VERSION >= 1009
+ char* tmpPtr; int tmpSize;
+ if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
+ return NULL;
+ _arg3 = new wxString(tmpPtr, tmpSize);
+#else
+ if (!PyString_Check(_obj3)) {
+ PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ return NULL;
+ }
+ _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
+#endif
}
{
wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0);
+ _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
{
if (_obj0)
delete _arg0;
+}
+{
+ if (_obj3)
+ delete _arg3;
}
return _resultobj;
}
{ "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
{ "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
{ "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
+ { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
+ { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
{ "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
{ "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
{ "_wxObject","_wxImageList",SwigwxImageListTowxObject},
{ "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
{ "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
+ { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
{ "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
{ "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
{ "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
+class wxMetaFilePtr(wxObjectPtr):
+ def __init__(self,this):
+ self.this = this
+ self.thisown = 0
+ def __del__(self,gdic=gdic):
+ if self.thisown == 1 :
+ gdic.delete_wxMetaFile(self)
+ def Ok(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_Ok,(self,) + _args, _kwargs)
+ return val
+ def SetClipboard(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_SetClipboard,(self,) + _args, _kwargs)
+ return val
+ def GetSize(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_GetSize,(self,) + _args, _kwargs)
+ if val: val = wxSizePtr(val) ; val.thisown = 1
+ return val
+ def GetWidth(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_GetWidth,(self,) + _args, _kwargs)
+ return val
+ def GetHeight(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_GetHeight,(self,) + _args, _kwargs)
+ return val
+ def GetFileName(self, *_args, **_kwargs):
+ val = apply(gdic.wxMetaFile_GetFileName,(self,) + _args, _kwargs)
+ return val
+ def __repr__(self):
+ return "<C wxMetaFile instance at %s>" % (self.this,)
+class wxMetaFile(wxMetaFilePtr):
+ def __init__(self,*_args,**_kwargs):
+ self.this = apply(gdic.new_wxMetaFile,_args,_kwargs)
+ self.thisown = 1
+
+
+
+
class wxMetaFileDCPtr(wxDCPtr):
def __init__(self,this):
self.this = this
self.thisown = 0
def Close(self, *_args, **_kwargs):
val = apply(gdic.wxMetaFileDC_Close,(self,) + _args, _kwargs)
+ if val: val = wxMetaFilePtr(val)
return val
def __repr__(self):
return "<C wxMetaFileDC instance at %s>" % (self.this,)
def wxPreMDIParentFrame(*_args,**_kwargs):
val = wxMDIParentFramePtr(apply(mdic.new_wxPreMDIParentFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMDIChildFrame(*_args,**_kwargs):
val = wxMDIChildFramePtr(apply(mdic.new_wxPreMDIChildFrame,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreMDIClientWindow(*_args,**_kwargs):
val = wxMDIClientWindowPtr(apply(mdic.new_wxPreMDIClientWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreStatusBar(*_args,**_kwargs):
val = wxStatusBarPtr(apply(stattoolc.new_wxPreStatusBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToolBar(*_args,**_kwargs):
val = wxToolBarPtr(apply(stattoolc.new_wxPreToolBar,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreToolBarSimple(*_args,**_kwargs):
val = wxToolBarSimplePtr(apply(stattoolc.new_wxPreToolBarSimple,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreWindow(*_args,**_kwargs):
val = wxWindowPtr(apply(windowsc.new_wxPreWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreScrolledWindow(*_args,**_kwargs):
val = wxScrolledWindowPtr(apply(windowsc.new_wxPreScrolledWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreNotebook(*_args,**_kwargs):
val = wxNotebookPtr(apply(windows2c.new_wxPreNotebook,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSplitterWindow(*_args,**_kwargs):
val = wxSplitterWindowPtr(apply(windows2c.new_wxPreSplitterWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSashWindow(*_args,**_kwargs):
val = wxSashWindowPtr(apply(windows3c.new_wxPreSashWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPreSashLayoutWindow(*_args,**_kwargs):
val = wxSashLayoutWindowPtr(apply(windows3c.new_wxPreSashLayoutWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPrePopupWindow(*_args,**_kwargs):
val = wxPopupWindowPtr(apply(windows3c.new_wxPrePopupWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
def wxPrePopupTransientWindow(*_args,**_kwargs):
val = wxPopupTransientWindowPtr(apply(windows3c.new_wxPrePopupTransientWindow,_args,_kwargs))
val.thisown = 1
- val._setOORInfo(self)
+ val._setOORInfo(val)
return val
char* name = "statusBar");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreStatusBar:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreStatusBar:val._setOORInfo(val)"
%addmethods {
%new wxRect* GetFieldRect(long item) {
const char* name = wxToolBarNameStr);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreToolBar:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreToolBar:val._setOORInfo(val)"
wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y);
};
const char* name = wxToolBarNameStr);
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreToolBarSimple:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreToolBarSimple:val._setOORInfo(val)"
wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y);
};
char* name = "panel");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreWindow:val._setOORInfo(val)"
void CaptureMouse();
char* name = "scrolledWindow");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreScrolledWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreScrolledWindow:val._setOORInfo(val)"
void EnableScrolling(bool xScrolling, bool yScrolling);
int GetScrollPageSize(int orient);
char* name = "notebook");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreNotebook:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreNotebook:val._setOORInfo(val)"
int GetPageCount();
int SetSelection(int nPage);
char* name = "splitterWindow");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSplitterWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSplitterWindow:val._setOORInfo(val)"
// Gets the only or left/top pane
wxWindow *GetWindow1();
const char* name = "sashWindow");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSashWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSashWindow:val._setOORInfo(val)"
bool GetSashVisible(wxSashEdgePosition edge);
int GetDefaultBorderSize();
const char* name = "layoutWindow");
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPreSashLayoutWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPreSashLayoutWindow:val._setOORInfo(val)"
wxLayoutAlignment GetAlignment();
wxLayoutOrientation GetOrientation();
%name(wxPrePopupWindow)wxPopupWindow();
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPrePopupWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPrePopupWindow:val._setOORInfo(val)"
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
%pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPopupTransientWindow)"
%pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
- %pragma(python) addtomethod = "wxPrePopupTransientWindow:val._setOORInfo(self)"
+ %pragma(python) addtomethod = "wxPrePopupTransientWindow:val._setOORInfo(val)"
// popup the window (this will show it too) and keep focus at winFocus
// (or itself if it's NULL), dismiss the popup if we lose focus