1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of MORE window classes
7 // Created: 22-Dec-1998
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
17 #include <wx/sashwin.h>
18 #include <wx/laywin.h>
21 //----------------------------------------------------------------------
24 %include my_typemaps.i
26 // Import some definitions of other classes, etc.
35 %pragma(python) code = "import wx"
37 //---------------------------------------------------------------------------
39 enum wxSashEdgePosition {
58 wxSASH_STATUS_OUT_OF_RANGE
62 class wxSashEvent : public wxCommandEvent {
64 void SetEdge(wxSashEdgePosition edge);
65 wxSashEdgePosition GetEdge();
66 void SetDragRect(const wxRect& rect);
68 void SetDragStatus(wxSashDragStatus status);
69 wxSashDragStatus GetDragStatus();
74 class wxSashWindow: public wxWindow {
76 wxSashWindow(wxWindow* parent, wxWindowID id,
77 const wxPoint& pos = wxDefaultPosition,
78 const wxSize& size = wxDefaultSize,
79 long style = wxCLIP_CHILDREN | wxSW_3D,
80 const char* name = "sashWindow");
82 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
84 bool GetSashVisible(wxSashEdgePosition edge);
85 int GetDefaultBorderSize();
86 int GetEdgeMargin(wxSashEdgePosition edge);
87 int GetExtraBorderSize();
88 int GetMaximumSizeX();
89 int GetMaximumSizeY();
90 int GetMinimumSizeX();
91 int GetMinimumSizeY();
92 bool HasBorder(wxSashEdgePosition edge);
93 void SetDefaultBorderSize(int width);
94 void SetExtraBorderSize(int width);
95 void SetMaximumSizeX(int min);
96 void SetMaximumSizeY(int min);
97 void SetMinimumSizeX(int min);
98 void SetMinimumSizeY(int min);
99 void SetSashVisible(wxSashEdgePosition edge, bool visible);
100 void SetSashBorder(wxSashEdgePosition edge, bool hasBorder);
105 //---------------------------------------------------------------------------
107 enum wxLayoutOrientation {
112 enum wxLayoutAlignment {
122 wxEVT_QUERY_LAYOUT_INFO,
123 wxEVT_CALCULATE_LAYOUT,
127 class wxQueryLayoutInfoEvent: public wxEvent {
130 void SetRequestedLength(int length);
131 int GetRequestedLength();
132 void SetFlags(int flags);
134 void SetSize(const wxSize& size);
136 void SetOrientation(wxLayoutOrientation orient);
137 wxLayoutOrientation GetOrientation();
138 void SetAlignment(wxLayoutAlignment align);
139 wxLayoutAlignment GetAlignment();
144 class wxCalculateLayoutEvent: public wxEvent {
146 void SetFlags(int flags);
148 void SetRect(const wxRect& rect);
153 class wxSashLayoutWindow: public wxSashWindow {
155 wxSashLayoutWindow(wxWindow* parent, wxWindowID id,
156 const wxPoint& pos = wxDefaultPosition,
157 const wxSize& size = wxDefaultSize,
158 long style = wxCLIP_CHILDREN | wxSW_3D,
159 const char* name = "layoutWindow");
161 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
162 %pragma(python) addtomethod = "__init__:#wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)"
163 %pragma(python) addtomethod = "__init__:#wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)"
166 wxLayoutAlignment GetAlignment();
167 wxLayoutOrientation GetOrientation();
168 void SetAlignment(wxLayoutAlignment alignment);
169 void SetDefaultSize(const wxSize& size);
170 void SetOrientation(wxLayoutOrientation orientation);
173 //---------------------------------------------------------------------------
175 class wxLayoutAlgorithm {
178 ~wxLayoutAlgorithm();
180 bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
181 bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
182 bool LayoutWindow(wxWindow* parent, wxWindow* mainWindow = NULL);
186 //---------------------------------------------------------------------------
190 //---------------------------------------------------------------------------