%{
#include "helpers.h"
+
+#include <wx/notebook.h>
%}
//----------------------------------------------------------------------
//---------------------------------------------------------------------------
-class wxSizerItem {
+class wxSizerItem : public wxObject {
public:
// No need to ever create one directly in Python...
//wxSizerItem( wxWindow *window, int option, int flag, int border, wxObject* userData );
//wxSizerItem( wxSizer *sizer, int option, int flag, int border, wxObject* userData );
+ void DeleteWindows();
+
+ wxPoint GetPosition();
wxSize GetSize();
wxSize CalcMin();
void SetDimension( wxPoint pos, wxSize size );
//---------------------------------------------------------------------------
-class wxSizer {
+class wxSizer : public wxObject {
public:
// wxSizer(); **** abstract, can't instantiate
// ~wxSizer();
+ %addmethods {
+ void _setOORInfo(PyObject* _self) {
+ self->SetClientObject(new wxPyClientData(_self));
+ }
+ }
+
%addmethods {
void Destroy() { delete self; }
void Fit( wxWindow *window );
void SetSizeHints( wxWindow *window );
+ void Clear( bool delete_windows=FALSE );
+ void DeleteWindows();
+
+
// wxList& GetChildren();
%addmethods {
PyObject* GetChildren() {
class wxPySizer : public wxSizer {
public:
wxPySizer();
- void _setSelf(PyObject* self, PyObject* _class);
- %pragma(python) addtomethod = "__init__:self._setSelf(self, wxPySizer)"
+ void _setCallbackInfo(PyObject* self, PyObject* _class);
+ %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPySizer)"
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
};
class wxBoxSizer : public wxSizer {
public:
wxBoxSizer(int orient = wxHORIZONTAL);
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
int GetOrientation();
void RecalcSizes();
wxSize CalcMin();
class wxStaticBoxSizer : public wxBoxSizer {
public:
wxStaticBoxSizer(wxStaticBox *box, int orient = wxHORIZONTAL);
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
wxStaticBox *GetStaticBox();
void RecalcSizes();
wxSize CalcMin();
class wxNotebookSizer: public wxSizer {
public:
wxNotebookSizer( wxNotebook *nb );
-
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
void RecalcSizes();
wxSize CalcMin();
-
wxNotebook *GetNotebook();
};
{
public:
wxGridSizer( int rows=1, int cols=0, int vgap=0, int hgap=0 );
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
void RecalcSizes();
wxSize CalcMin();
{
public:
wxFlexGridSizer( int rows=1, int cols=0, int vgap=0, int hgap=0 );
+ %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
void RecalcSizes();
wxSize CalcMin();