]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/windows3.py
rewrite to avoid unnecessary redraws
[wxWidgets.git] / wxPython / src / msw / windows3.py
CommitLineData
08127323
RD
1# This file was created automatically by SWIG.
2import windows3c
3
4from misc import *
5
6from gdi import *
7
8from windows import *
9
b1462dfa
RD
10from clip_dnd import *
11
08127323
RD
12from windows2 import *
13
14from controls import *
15
16from events import *
17
18from mdi import *
19
20from frames import *
21
22from stattool import *
23import wx
24class wxSashEventPtr(wxCommandEventPtr):
25 def __init__(self,this):
26 self.this = this
27 self.thisown = 0
1d99702e
RD
28 def SetEdge(self, *_args, **_kwargs):
29 val = apply(windows3c.wxSashEvent_SetEdge,(self,) + _args, _kwargs)
08127323 30 return val
1d99702e
RD
31 def GetEdge(self, *_args, **_kwargs):
32 val = apply(windows3c.wxSashEvent_GetEdge,(self,) + _args, _kwargs)
08127323 33 return val
1d99702e
RD
34 def SetDragRect(self, *_args, **_kwargs):
35 val = apply(windows3c.wxSashEvent_SetDragRect,(self,) + _args, _kwargs)
08127323 36 return val
1d99702e
RD
37 def GetDragRect(self, *_args, **_kwargs):
38 val = apply(windows3c.wxSashEvent_GetDragRect,(self,) + _args, _kwargs)
39 if val: val = wxRectPtr(val) ; val.thisown = 1
08127323 40 return val
1d99702e
RD
41 def SetDragStatus(self, *_args, **_kwargs):
42 val = apply(windows3c.wxSashEvent_SetDragStatus,(self,) + _args, _kwargs)
08127323 43 return val
1d99702e
RD
44 def GetDragStatus(self, *_args, **_kwargs):
45 val = apply(windows3c.wxSashEvent_GetDragStatus,(self,) + _args, _kwargs)
08127323
RD
46 return val
47 def __repr__(self):
1d99702e 48 return "<C wxSashEvent instance at %s>" % (self.this,)
08127323
RD
49class wxSashEvent(wxSashEventPtr):
50 def __init__(self,this):
51 self.this = this
52
53
54
55
56class wxSashWindowPtr(wxWindowPtr):
57 def __init__(self,this):
58 self.this = this
59 self.thisown = 0
1d99702e
RD
60 def GetSashVisible(self, *_args, **_kwargs):
61 val = apply(windows3c.wxSashWindow_GetSashVisible,(self,) + _args, _kwargs)
08127323 62 return val
1d99702e
RD
63 def GetDefaultBorderSize(self, *_args, **_kwargs):
64 val = apply(windows3c.wxSashWindow_GetDefaultBorderSize,(self,) + _args, _kwargs)
08127323 65 return val
1d99702e
RD
66 def GetEdgeMargin(self, *_args, **_kwargs):
67 val = apply(windows3c.wxSashWindow_GetEdgeMargin,(self,) + _args, _kwargs)
08127323 68 return val
1d99702e
RD
69 def GetExtraBorderSize(self, *_args, **_kwargs):
70 val = apply(windows3c.wxSashWindow_GetExtraBorderSize,(self,) + _args, _kwargs)
08127323 71 return val
1d99702e
RD
72 def GetMaximumSizeX(self, *_args, **_kwargs):
73 val = apply(windows3c.wxSashWindow_GetMaximumSizeX,(self,) + _args, _kwargs)
08127323 74 return val
1d99702e
RD
75 def GetMaximumSizeY(self, *_args, **_kwargs):
76 val = apply(windows3c.wxSashWindow_GetMaximumSizeY,(self,) + _args, _kwargs)
08127323 77 return val
1d99702e
RD
78 def GetMinimumSizeX(self, *_args, **_kwargs):
79 val = apply(windows3c.wxSashWindow_GetMinimumSizeX,(self,) + _args, _kwargs)
08127323 80 return val
1d99702e
RD
81 def GetMinimumSizeY(self, *_args, **_kwargs):
82 val = apply(windows3c.wxSashWindow_GetMinimumSizeY,(self,) + _args, _kwargs)
08127323 83 return val
1d99702e
RD
84 def HasBorder(self, *_args, **_kwargs):
85 val = apply(windows3c.wxSashWindow_HasBorder,(self,) + _args, _kwargs)
08127323 86 return val
1d99702e
RD
87 def SetDefaultBorderSize(self, *_args, **_kwargs):
88 val = apply(windows3c.wxSashWindow_SetDefaultBorderSize,(self,) + _args, _kwargs)
08127323 89 return val
1d99702e
RD
90 def SetExtraBorderSize(self, *_args, **_kwargs):
91 val = apply(windows3c.wxSashWindow_SetExtraBorderSize,(self,) + _args, _kwargs)
08127323 92 return val
1d99702e
RD
93 def SetMaximumSizeX(self, *_args, **_kwargs):
94 val = apply(windows3c.wxSashWindow_SetMaximumSizeX,(self,) + _args, _kwargs)
08127323 95 return val
1d99702e
RD
96 def SetMaximumSizeY(self, *_args, **_kwargs):
97 val = apply(windows3c.wxSashWindow_SetMaximumSizeY,(self,) + _args, _kwargs)
08127323 98 return val
1d99702e
RD
99 def SetMinimumSizeX(self, *_args, **_kwargs):
100 val = apply(windows3c.wxSashWindow_SetMinimumSizeX,(self,) + _args, _kwargs)
08127323 101 return val
1d99702e
RD
102 def SetMinimumSizeY(self, *_args, **_kwargs):
103 val = apply(windows3c.wxSashWindow_SetMinimumSizeY,(self,) + _args, _kwargs)
08127323 104 return val
1d99702e
RD
105 def SetSashVisible(self, *_args, **_kwargs):
106 val = apply(windows3c.wxSashWindow_SetSashVisible,(self,) + _args, _kwargs)
08127323 107 return val
1d99702e
RD
108 def SetSashBorder(self, *_args, **_kwargs):
109 val = apply(windows3c.wxSashWindow_SetSashBorder,(self,) + _args, _kwargs)
08127323
RD
110 return val
111 def __repr__(self):
1d99702e 112 return "<C wxSashWindow instance at %s>" % (self.this,)
08127323 113class wxSashWindow(wxSashWindowPtr):
1d99702e
RD
114 def __init__(self,*_args,**_kwargs):
115 self.this = apply(windows3c.new_wxSashWindow,_args,_kwargs)
08127323 116 self.thisown = 1
f6bcfd97 117 #wx._StdWindowCallbacks(self)
08127323
RD
118
119
120
121
122class wxQueryLayoutInfoEventPtr(wxEventPtr):
123 def __init__(self,this):
124 self.this = this
125 self.thisown = 0
1d99702e
RD
126 def SetRequestedLength(self, *_args, **_kwargs):
127 val = apply(windows3c.wxQueryLayoutInfoEvent_SetRequestedLength,(self,) + _args, _kwargs)
08127323 128 return val
1d99702e
RD
129 def GetRequestedLength(self, *_args, **_kwargs):
130 val = apply(windows3c.wxQueryLayoutInfoEvent_GetRequestedLength,(self,) + _args, _kwargs)
08127323 131 return val
1d99702e
RD
132 def SetFlags(self, *_args, **_kwargs):
133 val = apply(windows3c.wxQueryLayoutInfoEvent_SetFlags,(self,) + _args, _kwargs)
08127323 134 return val
1d99702e
RD
135 def GetFlags(self, *_args, **_kwargs):
136 val = apply(windows3c.wxQueryLayoutInfoEvent_GetFlags,(self,) + _args, _kwargs)
08127323 137 return val
1d99702e
RD
138 def SetSize(self, *_args, **_kwargs):
139 val = apply(windows3c.wxQueryLayoutInfoEvent_SetSize,(self,) + _args, _kwargs)
08127323 140 return val
1d99702e
RD
141 def GetSize(self, *_args, **_kwargs):
142 val = apply(windows3c.wxQueryLayoutInfoEvent_GetSize,(self,) + _args, _kwargs)
143 if val: val = wxSizePtr(val) ; val.thisown = 1
08127323 144 return val
1d99702e
RD
145 def SetOrientation(self, *_args, **_kwargs):
146 val = apply(windows3c.wxQueryLayoutInfoEvent_SetOrientation,(self,) + _args, _kwargs)
08127323 147 return val
1d99702e
RD
148 def GetOrientation(self, *_args, **_kwargs):
149 val = apply(windows3c.wxQueryLayoutInfoEvent_GetOrientation,(self,) + _args, _kwargs)
08127323 150 return val
1d99702e
RD
151 def SetAlignment(self, *_args, **_kwargs):
152 val = apply(windows3c.wxQueryLayoutInfoEvent_SetAlignment,(self,) + _args, _kwargs)
08127323 153 return val
1d99702e
RD
154 def GetAlignment(self, *_args, **_kwargs):
155 val = apply(windows3c.wxQueryLayoutInfoEvent_GetAlignment,(self,) + _args, _kwargs)
08127323
RD
156 return val
157 def __repr__(self):
1d99702e 158 return "<C wxQueryLayoutInfoEvent instance at %s>" % (self.this,)
08127323
RD
159class wxQueryLayoutInfoEvent(wxQueryLayoutInfoEventPtr):
160 def __init__(self,this):
161 self.this = this
162
163
164
165
166class wxCalculateLayoutEventPtr(wxEventPtr):
167 def __init__(self,this):
168 self.this = this
169 self.thisown = 0
1d99702e
RD
170 def SetFlags(self, *_args, **_kwargs):
171 val = apply(windows3c.wxCalculateLayoutEvent_SetFlags,(self,) + _args, _kwargs)
08127323 172 return val
1d99702e
RD
173 def GetFlags(self, *_args, **_kwargs):
174 val = apply(windows3c.wxCalculateLayoutEvent_GetFlags,(self,) + _args, _kwargs)
08127323 175 return val
1d99702e
RD
176 def SetRect(self, *_args, **_kwargs):
177 val = apply(windows3c.wxCalculateLayoutEvent_SetRect,(self,) + _args, _kwargs)
08127323 178 return val
1d99702e
RD
179 def GetRect(self, *_args, **_kwargs):
180 val = apply(windows3c.wxCalculateLayoutEvent_GetRect,(self,) + _args, _kwargs)
181 if val: val = wxRectPtr(val) ; val.thisown = 1
08127323
RD
182 return val
183 def __repr__(self):
1d99702e 184 return "<C wxCalculateLayoutEvent instance at %s>" % (self.this,)
08127323
RD
185class wxCalculateLayoutEvent(wxCalculateLayoutEventPtr):
186 def __init__(self,this):
187 self.this = this
188
189
190
191
192class wxSashLayoutWindowPtr(wxSashWindowPtr):
193 def __init__(self,this):
194 self.this = this
195 self.thisown = 0
1d99702e
RD
196 def GetAlignment(self, *_args, **_kwargs):
197 val = apply(windows3c.wxSashLayoutWindow_GetAlignment,(self,) + _args, _kwargs)
08127323 198 return val
1d99702e
RD
199 def GetOrientation(self, *_args, **_kwargs):
200 val = apply(windows3c.wxSashLayoutWindow_GetOrientation,(self,) + _args, _kwargs)
08127323 201 return val
1d99702e
RD
202 def SetAlignment(self, *_args, **_kwargs):
203 val = apply(windows3c.wxSashLayoutWindow_SetAlignment,(self,) + _args, _kwargs)
08127323 204 return val
1d99702e
RD
205 def SetDefaultSize(self, *_args, **_kwargs):
206 val = apply(windows3c.wxSashLayoutWindow_SetDefaultSize,(self,) + _args, _kwargs)
08127323 207 return val
1d99702e
RD
208 def SetOrientation(self, *_args, **_kwargs):
209 val = apply(windows3c.wxSashLayoutWindow_SetOrientation,(self,) + _args, _kwargs)
08127323
RD
210 return val
211 def __repr__(self):
1d99702e 212 return "<C wxSashLayoutWindow instance at %s>" % (self.this,)
08127323 213class wxSashLayoutWindow(wxSashLayoutWindowPtr):
1d99702e
RD
214 def __init__(self,*_args,**_kwargs):
215 self.this = apply(windows3c.new_wxSashLayoutWindow,_args,_kwargs)
08127323 216 self.thisown = 1
f6bcfd97
BP
217 #wx._StdWindowCallbacks(self)
218 #wx._checkForCallback(self, 'OnCalculateLayout', wxEVT_CALCULATE_LAYOUT)
219 #wx._checkForCallback(self, 'OnQueryLayoutInfo', wxEVT_QUERY_LAYOUT_INFO)
08127323
RD
220
221
222
223
9416aa89 224class wxLayoutAlgorithmPtr(wxObjectPtr):
08127323
RD
225 def __init__(self,this):
226 self.this = this
227 self.thisown = 0
1d99702e 228 def __del__(self,windows3c=windows3c):
08127323 229 if self.thisown == 1 :
1d99702e
RD
230 windows3c.delete_wxLayoutAlgorithm(self)
231 def LayoutMDIFrame(self, *_args, **_kwargs):
232 val = apply(windows3c.wxLayoutAlgorithm_LayoutMDIFrame,(self,) + _args, _kwargs)
233 return val
234 def LayoutFrame(self, *_args, **_kwargs):
235 val = apply(windows3c.wxLayoutAlgorithm_LayoutFrame,(self,) + _args, _kwargs)
236 return val
237 def LayoutWindow(self, *_args, **_kwargs):
238 val = apply(windows3c.wxLayoutAlgorithm_LayoutWindow,(self,) + _args, _kwargs)
cf694132 239 return val
08127323 240 def __repr__(self):
1d99702e 241 return "<C wxLayoutAlgorithm instance at %s>" % (self.this,)
08127323 242class wxLayoutAlgorithm(wxLayoutAlgorithmPtr):
1d99702e
RD
243 def __init__(self,*_args,**_kwargs):
244 self.this = apply(windows3c.new_wxLayoutAlgorithm,_args,_kwargs)
08127323
RD
245 self.thisown = 1
246
247
248
249
250
251
252#-------------- FUNCTION WRAPPERS ------------------
253
254
255
256#-------------- VARIABLE WRAPPERS ------------------
257
258wxSASH_TOP = windows3c.wxSASH_TOP
259wxSASH_RIGHT = windows3c.wxSASH_RIGHT
260wxSASH_BOTTOM = windows3c.wxSASH_BOTTOM
261wxSASH_LEFT = windows3c.wxSASH_LEFT
262wxSASH_NONE = windows3c.wxSASH_NONE
263wxEVT_SASH_DRAGGED = windows3c.wxEVT_SASH_DRAGGED
264wxSW_3D = windows3c.wxSW_3D
1b62f00d
RD
265wxSW_3DSASH = windows3c.wxSW_3DSASH
266wxSW_3DBORDER = windows3c.wxSW_3DBORDER
267wxSW_BORDER = windows3c.wxSW_BORDER
08127323
RD
268wxSASH_STATUS_OK = windows3c.wxSASH_STATUS_OK
269wxSASH_STATUS_OUT_OF_RANGE = windows3c.wxSASH_STATUS_OUT_OF_RANGE
270wxLAYOUT_HORIZONTAL = windows3c.wxLAYOUT_HORIZONTAL
271wxLAYOUT_VERTICAL = windows3c.wxLAYOUT_VERTICAL
272wxLAYOUT_NONE = windows3c.wxLAYOUT_NONE
273wxLAYOUT_TOP = windows3c.wxLAYOUT_TOP
274wxLAYOUT_LEFT = windows3c.wxLAYOUT_LEFT
275wxLAYOUT_RIGHT = windows3c.wxLAYOUT_RIGHT
276wxLAYOUT_BOTTOM = windows3c.wxLAYOUT_BOTTOM
277wxEVT_QUERY_LAYOUT_INFO = windows3c.wxEVT_QUERY_LAYOUT_INFO
278wxEVT_CALCULATE_LAYOUT = windows3c.wxEVT_CALCULATE_LAYOUT