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 wxSashEvent(int id = 0, wxSashEdgePosition edge = wxSASH_NONE);
66 void SetEdge(wxSashEdgePosition edge);
67 wxSashEdgePosition GetEdge();
68 void SetDragRect(const wxRect& rect);
70 void SetDragStatus(wxSashDragStatus status);
71 wxSashDragStatus GetDragStatus();
76 class wxSashWindow: public wxWindow {
78 wxSashWindow(wxWindow* parent, wxWindowID id,
79 const wxPoint& pos = wxDefaultPosition,
80 const wxSize& size = wxDefaultSize,
81 long style = wxCLIP_CHILDREN | wxSW_3D,
82 const char* name = "sashWindow");
83 %name(wxPreSashWindow)wxSashWindow();
85 bool Create(wxWindow* parent, wxWindowID id,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
88 long style = wxCLIP_CHILDREN | wxSW_3D,
89 const char* name = "sashWindow");
91 bool GetSashVisible(wxSashEdgePosition edge);
92 int GetDefaultBorderSize();
93 int GetEdgeMargin(wxSashEdgePosition edge);
94 int GetExtraBorderSize();
95 int GetMaximumSizeX();
96 int GetMaximumSizeY();
97 int GetMinimumSizeX();
98 int GetMinimumSizeY();
99 bool HasBorder(wxSashEdgePosition edge);
100 void SetDefaultBorderSize(int width);
101 void SetExtraBorderSize(int width);
102 void SetMaximumSizeX(int min);
103 void SetMaximumSizeY(int min);
104 void SetMinimumSizeX(int min);
105 void SetMinimumSizeY(int min);
106 void SetSashVisible(wxSashEdgePosition edge, bool visible);
107 void SetSashBorder(wxSashEdgePosition edge, bool hasBorder);
112 //---------------------------------------------------------------------------
114 enum wxLayoutOrientation {
119 enum wxLayoutAlignment {
129 wxEVT_QUERY_LAYOUT_INFO,
130 wxEVT_CALCULATE_LAYOUT,
134 class wxQueryLayoutInfoEvent: public wxEvent {
136 wxQueryLayoutInfoEvent(wxWindowID id = 0);
138 void SetRequestedLength(int length);
139 int GetRequestedLength();
140 void SetFlags(int flags);
142 void SetSize(const wxSize& size);
144 void SetOrientation(wxLayoutOrientation orient);
145 wxLayoutOrientation GetOrientation();
146 void SetAlignment(wxLayoutAlignment align);
147 wxLayoutAlignment GetAlignment();
152 class wxCalculateLayoutEvent: public wxEvent {
154 wxCalculateLayoutEvent(wxWindowID id = 0);
156 void SetFlags(int flags);
158 void SetRect(const wxRect& rect);
163 class wxSashLayoutWindow: public wxSashWindow {
165 wxSashLayoutWindow(wxWindow* parent, wxWindowID id,
166 const wxPoint& pos = wxDefaultPosition,
167 const wxSize& size = wxDefaultSize,
168 long style = wxCLIP_CHILDREN | wxSW_3D,
169 const char* name = "layoutWindow");
170 %name(wxPreSashLayoutWindow)wxSashLayoutWindow();
172 bool Create(wxWindow* parent, wxWindowID id,
173 const wxPoint& pos = wxDefaultPosition,
174 const wxSize& size = wxDefaultSize,
175 long style = wxCLIP_CHILDREN | wxSW_3D,
176 const char* name = "layoutWindow");
178 wxLayoutAlignment GetAlignment();
179 wxLayoutOrientation GetOrientation();
180 void SetAlignment(wxLayoutAlignment alignment);
181 void SetDefaultSize(const wxSize& size);
182 void SetOrientation(wxLayoutOrientation orientation);
185 //---------------------------------------------------------------------------
187 class wxLayoutAlgorithm : public wxObject {
190 ~wxLayoutAlgorithm();
192 bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
193 bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
194 bool LayoutWindow(wxWindow* parent, wxWindow* mainWindow = NULL);
198 //---------------------------------------------------------------------------