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 {
55 wxSASH_STATUS_OUT_OF_RANGE
59 class wxSashEvent : public wxCommandEvent {
61 void SetEdge(wxSashEdgePosition edge);
62 wxSashEdgePosition GetEdge();
63 void SetDragRect(const wxRect& rect);
65 void SetDragStatus(wxSashDragStatus status);
66 wxSashDragStatus GetDragStatus();
71 class wxSashWindow: public wxWindow {
73 wxSashWindow(wxWindow* parent, wxWindowID id,
74 const wxPoint& pos = wxPyDefaultPosition,
75 const wxSize& size = wxPyDefaultSize,
76 long style = wxCLIP_CHILDREN | wxSW_3D,
77 const char* name = "sashWindow");
79 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
81 bool GetSashVisible(wxSashEdgePosition edge);
82 int GetDefaultBorderSize();
83 int GetEdgeMargin(wxSashEdgePosition edge);
84 int GetExtraBorderSize();
85 int GetMaximumSizeX();
86 int GetMaximumSizeY();
87 int GetMinimumSizeX();
88 int GetMinimumSizeY();
89 bool HasBorder(wxSashEdgePosition edge);
90 void SetDefaultBorderSize(int width);
91 void SetExtraBorderSize(int width);
92 void SetMaximumSizeX(int min);
93 void SetMaximumSizeY(int min);
94 void SetMinimumSizeX(int min);
95 void SetMinimumSizeY(int min);
96 void SetSashVisible(wxSashEdgePosition edge, bool visible);
97 void SetSashBorder(wxSashEdgePosition edge, bool hasBorder);
102 //---------------------------------------------------------------------------
104 enum wxLayoutOrientation {
109 enum wxLayoutAlignment {
119 wxEVT_QUERY_LAYOUT_INFO,
120 wxEVT_CALCULATE_LAYOUT,
124 class wxQueryLayoutInfoEvent: public wxEvent {
127 void SetRequestedLength(int length);
128 int GetRequestedLength();
129 void SetFlags(int flags);
131 void SetSize(const wxSize& size);
133 void SetOrientation(wxLayoutOrientation orient);
134 wxLayoutOrientation GetOrientation();
135 void SetAlignment(wxLayoutAlignment align);
136 wxLayoutAlignment GetAlignment();
141 class wxCalculateLayoutEvent: public wxEvent {
143 void SetFlags(int flags);
145 void SetRect(const wxRect& rect);
150 class wxSashLayoutWindow: public wxSashWindow {
152 wxSashLayoutWindow(wxWindow* parent, wxWindowID id,
153 const wxPoint& pos = wxPyDefaultPosition,
154 const wxSize& size = wxPyDefaultSize,
155 long style = wxCLIP_CHILDREN | wxSW_3D,
156 const char* name = "layoutWindow");
158 %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)"
159 %pragma(python) addtomethod = "__init__:#wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)"
160 %pragma(python) addtomethod = "__init__:#wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)"
163 wxLayoutAlignment GetAlignment();
164 wxLayoutOrientation GetOrientation();
165 void SetAlignment(wxLayoutAlignment alignment);
166 void SetDefaultSize(const wxSize& size);
167 void SetOrientation(wxLayoutOrientation orientation);
170 //---------------------------------------------------------------------------
172 class wxLayoutAlgorithm {
175 ~wxLayoutAlgorithm();
177 bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
178 bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
179 bool LayoutWindow(wxWindow* parent, wxWindow* mainWindow = NULL);
183 //---------------------------------------------------------------------------
187 //---------------------------------------------------------------------------