]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | # This file was created automatically by SWIG. |
2 | import miscc | |
3 | class wxSizePtr : | |
4 | def __init__(self,this): | |
5 | self.this = this | |
6 | self.thisown = 0 | |
2d091820 | 7 | def __del__(self,miscc=miscc): |
70551f47 | 8 | if self.thisown == 1 : |
2d091820 RD |
9 | miscc.delete_wxSize(self) |
10 | def Set(self, *_args, **_kwargs): | |
11 | val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs) | |
70551f47 | 12 | return val |
2d091820 RD |
13 | def GetX(self, *_args, **_kwargs): |
14 | val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs) | |
21f8d7ea | 15 | return val |
2d091820 RD |
16 | def GetY(self, *_args, **_kwargs): |
17 | val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs) | |
21f8d7ea | 18 | return val |
2d091820 RD |
19 | def GetWidth(self, *_args, **_kwargs): |
20 | val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs) | |
70551f47 | 21 | return val |
2d091820 RD |
22 | def GetHeight(self, *_args, **_kwargs): |
23 | val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs) | |
70551f47 | 24 | return val |
2d091820 RD |
25 | def SetWidth(self, *_args, **_kwargs): |
26 | val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs) | |
d24a34bb | 27 | return val |
2d091820 RD |
28 | def SetHeight(self, *_args, **_kwargs): |
29 | val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs) | |
d24a34bb | 30 | return val |
2d091820 RD |
31 | def asTuple(self, *_args, **_kwargs): |
32 | val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs) | |
70551f47 RD |
33 | return val |
34 | def __setattr__(self,name,value): | |
21f8d7ea | 35 | if name == "x" : |
2d091820 | 36 | miscc.wxSize_x_set(self,value) |
21f8d7ea RD |
37 | return |
38 | if name == "y" : | |
2d091820 | 39 | miscc.wxSize_y_set(self,value) |
21f8d7ea | 40 | return |
70551f47 | 41 | if name == "width" : |
2d091820 | 42 | miscc.wxSize_width_set(self,value) |
70551f47 RD |
43 | return |
44 | if name == "height" : | |
2d091820 | 45 | miscc.wxSize_height_set(self,value) |
70551f47 RD |
46 | return |
47 | self.__dict__[name] = value | |
48 | def __getattr__(self,name): | |
21f8d7ea | 49 | if name == "x" : |
2d091820 | 50 | return miscc.wxSize_x_get(self) |
21f8d7ea | 51 | if name == "y" : |
2d091820 | 52 | return miscc.wxSize_y_get(self) |
70551f47 | 53 | if name == "width" : |
2d091820 | 54 | return miscc.wxSize_width_get(self) |
70551f47 | 55 | if name == "height" : |
2d091820 | 56 | return miscc.wxSize_height_get(self) |
70551f47 RD |
57 | raise AttributeError,name |
58 | def __repr__(self): | |
2d091820 | 59 | return "<C wxSize instance at %s>" % (self.this,) |
21f8d7ea RD |
60 | def __str__(self): return str(self.asTuple()) |
61 | def __repr__(self): return str(self.asTuple()) | |
70551f47 | 62 | class wxSize(wxSizePtr): |
2d091820 RD |
63 | def __init__(self,*_args,**_kwargs): |
64 | self.this = apply(miscc.new_wxSize,_args,_kwargs) | |
70551f47 RD |
65 | self.thisown = 1 |
66 | ||
67 | ||
68 | ||
69 | ||
70 | class wxRealPointPtr : | |
71 | def __init__(self,this): | |
72 | self.this = this | |
73 | self.thisown = 0 | |
2d091820 | 74 | def __del__(self,miscc=miscc): |
70551f47 | 75 | if self.thisown == 1 : |
2d091820 | 76 | miscc.delete_wxRealPoint(self) |
107e4716 RD |
77 | def Set(self, *_args, **_kwargs): |
78 | val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs) | |
79 | return val | |
80 | def asTuple(self, *_args, **_kwargs): | |
81 | val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs) | |
82 | return val | |
70551f47 RD |
83 | def __setattr__(self,name,value): |
84 | if name == "x" : | |
2d091820 | 85 | miscc.wxRealPoint_x_set(self,value) |
70551f47 RD |
86 | return |
87 | if name == "y" : | |
2d091820 | 88 | miscc.wxRealPoint_y_set(self,value) |
70551f47 RD |
89 | return |
90 | self.__dict__[name] = value | |
91 | def __getattr__(self,name): | |
92 | if name == "x" : | |
2d091820 | 93 | return miscc.wxRealPoint_x_get(self) |
70551f47 | 94 | if name == "y" : |
2d091820 | 95 | return miscc.wxRealPoint_y_get(self) |
70551f47 RD |
96 | raise AttributeError,name |
97 | def __repr__(self): | |
2d091820 | 98 | return "<C wxRealPoint instance at %s>" % (self.this,) |
107e4716 RD |
99 | def __str__(self): return str(self.asTuple()) |
100 | def __repr__(self): return str(self.asTuple()) | |
70551f47 | 101 | class wxRealPoint(wxRealPointPtr): |
2d091820 RD |
102 | def __init__(self,*_args,**_kwargs): |
103 | self.this = apply(miscc.new_wxRealPoint,_args,_kwargs) | |
70551f47 RD |
104 | self.thisown = 1 |
105 | ||
106 | ||
107 | ||
108 | ||
109 | class wxPointPtr : | |
110 | def __init__(self,this): | |
111 | self.this = this | |
112 | self.thisown = 0 | |
2d091820 | 113 | def __del__(self,miscc=miscc): |
70551f47 | 114 | if self.thisown == 1 : |
2d091820 RD |
115 | miscc.delete_wxPoint(self) |
116 | def Set(self, *_args, **_kwargs): | |
117 | val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs) | |
70551f47 | 118 | return val |
2d091820 RD |
119 | def asTuple(self, *_args, **_kwargs): |
120 | val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs) | |
70551f47 RD |
121 | return val |
122 | def __setattr__(self,name,value): | |
123 | if name == "x" : | |
2d091820 | 124 | miscc.wxPoint_x_set(self,value) |
70551f47 RD |
125 | return |
126 | if name == "y" : | |
2d091820 | 127 | miscc.wxPoint_y_set(self,value) |
70551f47 RD |
128 | return |
129 | self.__dict__[name] = value | |
130 | def __getattr__(self,name): | |
131 | if name == "x" : | |
2d091820 | 132 | return miscc.wxPoint_x_get(self) |
70551f47 | 133 | if name == "y" : |
2d091820 | 134 | return miscc.wxPoint_y_get(self) |
70551f47 RD |
135 | raise AttributeError,name |
136 | def __repr__(self): | |
2d091820 | 137 | return "<C wxPoint instance at %s>" % (self.this,) |
21f8d7ea RD |
138 | def __str__(self): return str(self.asTuple()) |
139 | def __repr__(self): return str(self.asTuple()) | |
70551f47 | 140 | class wxPoint(wxPointPtr): |
2d091820 RD |
141 | def __init__(self,*_args,**_kwargs): |
142 | self.this = apply(miscc.new_wxPoint,_args,_kwargs) | |
70551f47 RD |
143 | self.thisown = 1 |
144 | ||
145 | ||
146 | ||
147 | ||
148 | class wxRectPtr : | |
149 | def __init__(self,this): | |
150 | self.this = this | |
151 | self.thisown = 0 | |
2d091820 | 152 | def __del__(self,miscc=miscc): |
70551f47 | 153 | if self.thisown == 1 : |
2d091820 RD |
154 | miscc.delete_wxRect(self) |
155 | def GetX(self, *_args, **_kwargs): | |
156 | val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs) | |
70551f47 | 157 | return val |
2d091820 RD |
158 | def SetX(self, *_args, **_kwargs): |
159 | val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs) | |
70551f47 | 160 | return val |
2d091820 RD |
161 | def GetY(self, *_args, **_kwargs): |
162 | val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs) | |
70551f47 | 163 | return val |
2d091820 RD |
164 | def SetY(self, *_args, **_kwargs): |
165 | val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs) | |
70551f47 | 166 | return val |
2d091820 RD |
167 | def GetWidth(self, *_args, **_kwargs): |
168 | val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs) | |
70551f47 | 169 | return val |
2d091820 RD |
170 | def SetWidth(self, *_args, **_kwargs): |
171 | val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs) | |
70551f47 | 172 | return val |
2d091820 RD |
173 | def GetHeight(self, *_args, **_kwargs): |
174 | val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs) | |
70551f47 | 175 | return val |
2d091820 RD |
176 | def SetHeight(self, *_args, **_kwargs): |
177 | val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs) | |
70551f47 | 178 | return val |
2d091820 RD |
179 | def GetPosition(self, *_args, **_kwargs): |
180 | val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs) | |
181 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
70551f47 | 182 | return val |
2d091820 RD |
183 | def GetSize(self, *_args, **_kwargs): |
184 | val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs) | |
185 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
70551f47 | 186 | return val |
2d091820 RD |
187 | def GetLeft(self, *_args, **_kwargs): |
188 | val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs) | |
70551f47 | 189 | return val |
2d091820 RD |
190 | def GetTop(self, *_args, **_kwargs): |
191 | val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs) | |
70551f47 | 192 | return val |
2d091820 RD |
193 | def GetBottom(self, *_args, **_kwargs): |
194 | val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs) | |
70551f47 | 195 | return val |
2d091820 RD |
196 | def GetRight(self, *_args, **_kwargs): |
197 | val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs) | |
70551f47 | 198 | return val |
56f5d962 RD |
199 | def SetLeft(self, *_args, **_kwargs): |
200 | val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs) | |
201 | return val | |
202 | def SetRight(self, *_args, **_kwargs): | |
203 | val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs) | |
204 | return val | |
205 | def SetTop(self, *_args, **_kwargs): | |
206 | val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs) | |
207 | return val | |
208 | def SetBottom(self, *_args, **_kwargs): | |
209 | val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs) | |
210 | return val | |
2d091820 RD |
211 | def asTuple(self, *_args, **_kwargs): |
212 | val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs) | |
21f8d7ea | 213 | return val |
70551f47 RD |
214 | def __setattr__(self,name,value): |
215 | if name == "x" : | |
2d091820 | 216 | miscc.wxRect_x_set(self,value) |
70551f47 RD |
217 | return |
218 | if name == "y" : | |
2d091820 | 219 | miscc.wxRect_y_set(self,value) |
70551f47 RD |
220 | return |
221 | if name == "width" : | |
2d091820 | 222 | miscc.wxRect_width_set(self,value) |
70551f47 RD |
223 | return |
224 | if name == "height" : | |
2d091820 | 225 | miscc.wxRect_height_set(self,value) |
70551f47 RD |
226 | return |
227 | self.__dict__[name] = value | |
228 | def __getattr__(self,name): | |
229 | if name == "x" : | |
2d091820 | 230 | return miscc.wxRect_x_get(self) |
70551f47 | 231 | if name == "y" : |
2d091820 | 232 | return miscc.wxRect_y_get(self) |
70551f47 | 233 | if name == "width" : |
2d091820 | 234 | return miscc.wxRect_width_get(self) |
70551f47 | 235 | if name == "height" : |
2d091820 | 236 | return miscc.wxRect_height_get(self) |
70551f47 RD |
237 | raise AttributeError,name |
238 | def __repr__(self): | |
2d091820 | 239 | return "<C wxRect instance at %s>" % (self.this,) |
21f8d7ea RD |
240 | def __str__(self): return str(self.asTuple()) |
241 | def __repr__(self): return str(self.asTuple()) | |
ab2208b5 RD |
242 | |
243 | # override the __getattr__ made by SWIG | |
244 | def __getattr__(self, name): | |
245 | d = { | |
246 | 'x' : miscc.wxRect_x_get, | |
247 | 'y' : miscc.wxRect_y_get, | |
248 | 'width' : miscc.wxRect_width_get, | |
249 | 'height' : miscc.wxRect_height_get, | |
250 | 'top' : miscc.wxRect_GetTop, | |
251 | 'bottom' : miscc.wxRect_GetBottom, | |
252 | 'left' : miscc.wxRect_GetLeft, | |
253 | 'right' : miscc.wxRect_GetRight, | |
254 | } | |
255 | try: | |
256 | func = d[name] | |
257 | except KeyError: | |
258 | raise AttributeError,name | |
259 | return func(self) | |
260 | ||
261 | # and also the __setattr__ | |
262 | def __setattr__(self, name, value): | |
263 | d = { | |
264 | 'x' : miscc.wxRect_x_set, | |
265 | 'y' : miscc.wxRect_y_set, | |
266 | 'width' : miscc.wxRect_width_set, | |
267 | 'height' : miscc.wxRect_height_set, | |
268 | 'top' : miscc.wxRect_SetTop, | |
269 | 'bottom' : miscc.wxRect_SetBottom, | |
270 | 'left' : miscc.wxRect_SetLeft, | |
271 | 'right' : miscc.wxRect_SetRight, | |
272 | } | |
273 | try: | |
274 | func = d[name] | |
275 | except KeyError: | |
276 | self.__dict__[name] = value | |
277 | return | |
278 | func(self, value) | |
279 | ||
70551f47 | 280 | class wxRect(wxRectPtr): |
2d091820 RD |
281 | def __init__(self,*_args,**_kwargs): |
282 | self.this = apply(miscc.new_wxRect,_args,_kwargs) | |
70551f47 RD |
283 | self.thisown = 1 |
284 | ||
285 | ||
286 | ||
287 | ||
288 | class wxPyTimerPtr : | |
289 | def __init__(self,this): | |
290 | self.this = this | |
291 | self.thisown = 0 | |
2d091820 | 292 | def __del__(self,miscc=miscc): |
70551f47 | 293 | if self.thisown == 1 : |
2d091820 | 294 | miscc.delete_wxPyTimer(self) |
d29aba2f RD |
295 | def GetInterval(self, *_args, **_kwargs): |
296 | val = apply(miscc.wxPyTimer_GetInterval,(self,) + _args, _kwargs) | |
297 | return val | |
298 | def IsOneShot(self, *_args, **_kwargs): | |
299 | val = apply(miscc.wxPyTimer_IsOneShot,(self,) + _args, _kwargs) | |
70551f47 | 300 | return val |
2d091820 RD |
301 | def Start(self, *_args, **_kwargs): |
302 | val = apply(miscc.wxPyTimer_Start,(self,) + _args, _kwargs) | |
70551f47 | 303 | return val |
2d091820 RD |
304 | def Stop(self, *_args, **_kwargs): |
305 | val = apply(miscc.wxPyTimer_Stop,(self,) + _args, _kwargs) | |
70551f47 RD |
306 | return val |
307 | def __repr__(self): | |
2d091820 | 308 | return "<C wxPyTimer instance at %s>" % (self.this,) |
70551f47 | 309 | class wxPyTimer(wxPyTimerPtr): |
2d091820 RD |
310 | def __init__(self,*_args,**_kwargs): |
311 | self.this = apply(miscc.new_wxPyTimer,_args,_kwargs) | |
70551f47 RD |
312 | self.thisown = 1 |
313 | ||
314 | ||
315 | ||
316 | ||
317 | class wxIndividualLayoutConstraintPtr : | |
318 | def __init__(self,this): | |
319 | self.this = this | |
320 | self.thisown = 0 | |
2d091820 RD |
321 | def Above(self, *_args, **_kwargs): |
322 | val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs) | |
70551f47 | 323 | return val |
2d091820 RD |
324 | def Absolute(self, *_args, **_kwargs): |
325 | val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs) | |
70551f47 | 326 | return val |
2d091820 RD |
327 | def AsIs(self, *_args, **_kwargs): |
328 | val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs) | |
70551f47 | 329 | return val |
2d091820 RD |
330 | def Below(self, *_args, **_kwargs): |
331 | val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs) | |
70551f47 | 332 | return val |
2d091820 RD |
333 | def Unconstrained(self, *_args, **_kwargs): |
334 | val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs) | |
70551f47 | 335 | return val |
2d091820 RD |
336 | def LeftOf(self, *_args, **_kwargs): |
337 | val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs) | |
70551f47 | 338 | return val |
2d091820 RD |
339 | def PercentOf(self, *_args, **_kwargs): |
340 | val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs) | |
70551f47 | 341 | return val |
2d091820 RD |
342 | def RightOf(self, *_args, **_kwargs): |
343 | val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs) | |
70551f47 | 344 | return val |
2d091820 RD |
345 | def SameAs(self, *_args, **_kwargs): |
346 | val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs) | |
70551f47 | 347 | return val |
2d091820 RD |
348 | def Set(self, *_args, **_kwargs): |
349 | val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs) | |
70551f47 RD |
350 | return val |
351 | def __repr__(self): | |
2d091820 | 352 | return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,) |
70551f47 RD |
353 | class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr): |
354 | def __init__(self,this): | |
355 | self.this = this | |
356 | ||
357 | ||
358 | ||
359 | ||
360 | class wxLayoutConstraintsPtr : | |
361 | def __init__(self,this): | |
362 | self.this = this | |
363 | self.thisown = 0 | |
364 | def __setattr__(self,name,value): | |
365 | if name == "bottom" : | |
2d091820 | 366 | miscc.wxLayoutConstraints_bottom_set(self,value.this) |
70551f47 RD |
367 | return |
368 | if name == "centreX" : | |
2d091820 | 369 | miscc.wxLayoutConstraints_centreX_set(self,value.this) |
70551f47 RD |
370 | return |
371 | if name == "centreY" : | |
2d091820 | 372 | miscc.wxLayoutConstraints_centreY_set(self,value.this) |
70551f47 RD |
373 | return |
374 | if name == "height" : | |
2d091820 | 375 | miscc.wxLayoutConstraints_height_set(self,value.this) |
70551f47 RD |
376 | return |
377 | if name == "left" : | |
2d091820 | 378 | miscc.wxLayoutConstraints_left_set(self,value.this) |
70551f47 RD |
379 | return |
380 | if name == "right" : | |
2d091820 | 381 | miscc.wxLayoutConstraints_right_set(self,value.this) |
70551f47 RD |
382 | return |
383 | if name == "top" : | |
2d091820 | 384 | miscc.wxLayoutConstraints_top_set(self,value.this) |
70551f47 RD |
385 | return |
386 | if name == "width" : | |
2d091820 | 387 | miscc.wxLayoutConstraints_width_set(self,value.this) |
70551f47 RD |
388 | return |
389 | self.__dict__[name] = value | |
390 | def __getattr__(self,name): | |
391 | if name == "bottom" : | |
2d091820 | 392 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self)) |
70551f47 | 393 | if name == "centreX" : |
2d091820 | 394 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self)) |
70551f47 | 395 | if name == "centreY" : |
2d091820 | 396 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self)) |
70551f47 | 397 | if name == "height" : |
2d091820 | 398 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self)) |
70551f47 | 399 | if name == "left" : |
2d091820 | 400 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self)) |
70551f47 | 401 | if name == "right" : |
2d091820 | 402 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self)) |
70551f47 | 403 | if name == "top" : |
2d091820 | 404 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self)) |
70551f47 | 405 | if name == "width" : |
2d091820 | 406 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self)) |
70551f47 RD |
407 | raise AttributeError,name |
408 | def __repr__(self): | |
2d091820 | 409 | return "<C wxLayoutConstraints instance at %s>" % (self.this,) |
70551f47 | 410 | class wxLayoutConstraints(wxLayoutConstraintsPtr): |
2d091820 RD |
411 | def __init__(self,*_args,**_kwargs): |
412 | self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs) | |
70551f47 RD |
413 | self.thisown = 1 |
414 | ||
415 | ||
416 | ||
417 | ||
105e45b9 RD |
418 | class wxRegionPtr : |
419 | def __init__(self,this): | |
420 | self.this = this | |
421 | self.thisown = 0 | |
2d091820 | 422 | def __del__(self,miscc=miscc): |
105e45b9 | 423 | if self.thisown == 1 : |
2d091820 RD |
424 | miscc.delete_wxRegion(self) |
425 | def Clear(self, *_args, **_kwargs): | |
426 | val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs) | |
105e45b9 | 427 | return val |
2d091820 RD |
428 | def Contains(self, *_args, **_kwargs): |
429 | val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs) | |
105e45b9 | 430 | return val |
2d091820 RD |
431 | def ContainsPoint(self, *_args, **_kwargs): |
432 | val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs) | |
105e45b9 | 433 | return val |
2d091820 RD |
434 | def ContainsRect(self, *_args, **_kwargs): |
435 | val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs) | |
105e45b9 | 436 | return val |
56f5d962 RD |
437 | def ContainsRectDim(self, *_args, **_kwargs): |
438 | val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs) | |
439 | return val | |
2d091820 RD |
440 | def GetBox(self, *_args, **_kwargs): |
441 | val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs) | |
442 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
105e45b9 | 443 | return val |
2d091820 RD |
444 | def Intersect(self, *_args, **_kwargs): |
445 | val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs) | |
105e45b9 | 446 | return val |
56f5d962 RD |
447 | def IntersectRect(self, *_args, **_kwargs): |
448 | val = apply(miscc.wxRegion_IntersectRect,(self,) + _args, _kwargs) | |
449 | return val | |
450 | def IntersectRegion(self, *_args, **_kwargs): | |
451 | val = apply(miscc.wxRegion_IntersectRegion,(self,) + _args, _kwargs) | |
452 | return val | |
bc29c5e0 RD |
453 | def IsEmpty(self, *_args, **_kwargs): |
454 | val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs) | |
455 | return val | |
56f5d962 RD |
456 | def Union(self, *_args, **_kwargs): |
457 | val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs) | |
458 | return val | |
459 | def UnionRect(self, *_args, **_kwargs): | |
460 | val = apply(miscc.wxRegion_UnionRect,(self,) + _args, _kwargs) | |
461 | return val | |
462 | def UnionRegion(self, *_args, **_kwargs): | |
463 | val = apply(miscc.wxRegion_UnionRegion,(self,) + _args, _kwargs) | |
464 | return val | |
2d091820 RD |
465 | def Subtract(self, *_args, **_kwargs): |
466 | val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs) | |
105e45b9 | 467 | return val |
56f5d962 RD |
468 | def SubtractRect(self, *_args, **_kwargs): |
469 | val = apply(miscc.wxRegion_SubtractRect,(self,) + _args, _kwargs) | |
470 | return val | |
471 | def SubtractRegion(self, *_args, **_kwargs): | |
472 | val = apply(miscc.wxRegion_SubtractRegion,(self,) + _args, _kwargs) | |
105e45b9 | 473 | return val |
2d091820 RD |
474 | def Xor(self, *_args, **_kwargs): |
475 | val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs) | |
105e45b9 | 476 | return val |
56f5d962 RD |
477 | def XorRect(self, *_args, **_kwargs): |
478 | val = apply(miscc.wxRegion_XorRect,(self,) + _args, _kwargs) | |
479 | return val | |
480 | def XorRegion(self, *_args, **_kwargs): | |
481 | val = apply(miscc.wxRegion_XorRegion,(self,) + _args, _kwargs) | |
482 | return val | |
105e45b9 | 483 | def __repr__(self): |
2d091820 | 484 | return "<C wxRegion instance at %s>" % (self.this,) |
105e45b9 | 485 | class wxRegion(wxRegionPtr): |
2d091820 RD |
486 | def __init__(self,*_args,**_kwargs): |
487 | self.this = apply(miscc.new_wxRegion,_args,_kwargs) | |
105e45b9 RD |
488 | self.thisown = 1 |
489 | ||
490 | ||
491 | ||
492 | ||
493 | class wxRegionIteratorPtr : | |
494 | def __init__(self,this): | |
495 | self.this = this | |
496 | self.thisown = 0 | |
2d091820 | 497 | def __del__(self,miscc=miscc): |
105e45b9 | 498 | if self.thisown == 1 : |
2d091820 RD |
499 | miscc.delete_wxRegionIterator(self) |
500 | def GetX(self, *_args, **_kwargs): | |
501 | val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs) | |
105e45b9 | 502 | return val |
2d091820 RD |
503 | def GetY(self, *_args, **_kwargs): |
504 | val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs) | |
105e45b9 | 505 | return val |
2d091820 RD |
506 | def GetW(self, *_args, **_kwargs): |
507 | val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs) | |
105e45b9 | 508 | return val |
2d091820 RD |
509 | def GetWidth(self, *_args, **_kwargs): |
510 | val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs) | |
105e45b9 | 511 | return val |
2d091820 RD |
512 | def GetH(self, *_args, **_kwargs): |
513 | val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs) | |
105e45b9 | 514 | return val |
2d091820 RD |
515 | def GetHeight(self, *_args, **_kwargs): |
516 | val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs) | |
105e45b9 | 517 | return val |
2d091820 RD |
518 | def GetRect(self, *_args, **_kwargs): |
519 | val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs) | |
520 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
105e45b9 | 521 | return val |
2d091820 RD |
522 | def HaveRects(self, *_args, **_kwargs): |
523 | val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs) | |
105e45b9 | 524 | return val |
2d091820 RD |
525 | def Reset(self, *_args, **_kwargs): |
526 | val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs) | |
105e45b9 | 527 | return val |
2d091820 RD |
528 | def Next(self, *_args, **_kwargs): |
529 | val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs) | |
105e45b9 RD |
530 | return val |
531 | def __repr__(self): | |
2d091820 | 532 | return "<C wxRegionIterator instance at %s>" % (self.this,) |
105e45b9 | 533 | class wxRegionIterator(wxRegionIteratorPtr): |
2d091820 RD |
534 | def __init__(self,*_args,**_kwargs): |
535 | self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs) | |
105e45b9 RD |
536 | self.thisown = 1 |
537 | ||
538 | ||
539 | ||
540 | ||
faf3cb35 RD |
541 | class wxAcceleratorEntryPtr : |
542 | def __init__(self,this): | |
543 | self.this = this | |
544 | self.thisown = 0 | |
37f6a977 RD |
545 | def __del__(self,miscc=miscc): |
546 | if self.thisown == 1 : | |
547 | miscc.delete_wxAcceleratorEntry(self) | |
2d091820 RD |
548 | def Set(self, *_args, **_kwargs): |
549 | val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs) | |
faf3cb35 | 550 | return val |
2d091820 RD |
551 | def GetFlags(self, *_args, **_kwargs): |
552 | val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs) | |
faf3cb35 | 553 | return val |
2d091820 RD |
554 | def GetKeyCode(self, *_args, **_kwargs): |
555 | val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs) | |
faf3cb35 | 556 | return val |
2d091820 RD |
557 | def GetCommand(self, *_args, **_kwargs): |
558 | val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs) | |
faf3cb35 RD |
559 | return val |
560 | def __repr__(self): | |
2d091820 | 561 | return "<C wxAcceleratorEntry instance at %s>" % (self.this,) |
faf3cb35 | 562 | class wxAcceleratorEntry(wxAcceleratorEntryPtr): |
2d091820 RD |
563 | def __init__(self,*_args,**_kwargs): |
564 | self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs) | |
faf3cb35 RD |
565 | self.thisown = 1 |
566 | ||
567 | ||
568 | ||
569 | ||
570 | class wxAcceleratorTablePtr : | |
571 | def __init__(self,this): | |
572 | self.this = this | |
573 | self.thisown = 0 | |
37f6a977 RD |
574 | def __del__(self,miscc=miscc): |
575 | if self.thisown == 1 : | |
576 | miscc.delete_wxAcceleratorTable(self) | |
faf3cb35 | 577 | def __repr__(self): |
2d091820 | 578 | return "<C wxAcceleratorTable instance at %s>" % (self.this,) |
faf3cb35 | 579 | class wxAcceleratorTable(wxAcceleratorTablePtr): |
2d091820 RD |
580 | def __init__(self,*_args,**_kwargs): |
581 | self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs) | |
faf3cb35 RD |
582 | self.thisown = 1 |
583 | ||
584 | ||
585 | ||
586 | ||
4120ef2b RD |
587 | class wxBusyInfoPtr : |
588 | def __init__(self,this): | |
589 | self.this = this | |
590 | self.thisown = 0 | |
591 | def __del__(self,miscc=miscc): | |
592 | if self.thisown == 1 : | |
593 | miscc.delete_wxBusyInfo(self) | |
594 | def __repr__(self): | |
595 | return "<C wxBusyInfo instance at %s>" % (self.this,) | |
596 | class wxBusyInfo(wxBusyInfoPtr): | |
597 | def __init__(self,*_args,**_kwargs): | |
598 | self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs) | |
599 | self.thisown = 1 | |
600 | ||
601 | ||
602 | ||
603 | ||
70551f47 RD |
604 | |
605 | ||
606 | #-------------- FUNCTION WRAPPERS ------------------ | |
607 | ||
56f5d962 RD |
608 | wxIntersectRect = miscc.wxIntersectRect |
609 | ||
ab9bc19b RD |
610 | wxNewId = miscc.wxNewId |
611 | ||
612 | wxRegisterId = miscc.wxRegisterId | |
613 | ||
70551f47 RD |
614 | NewId = miscc.NewId |
615 | ||
616 | RegisterId = miscc.RegisterId | |
617 | ||
70551f47 RD |
618 | wxBell = miscc.wxBell |
619 | ||
620 | wxDisplaySize = miscc.wxDisplaySize | |
621 | ||
622 | wxEndBusyCursor = miscc.wxEndBusyCursor | |
623 | ||
624 | wxExecute = miscc.wxExecute | |
625 | ||
bc29c5e0 RD |
626 | wxGetElapsedTime = miscc.wxGetElapsedTime |
627 | ||
70551f47 RD |
628 | wxGetMousePosition = miscc.wxGetMousePosition |
629 | ||
630 | wxIsBusy = miscc.wxIsBusy | |
631 | ||
632 | wxNow = miscc.wxNow | |
633 | ||
bc29c5e0 RD |
634 | wxShell = miscc.wxShell |
635 | ||
636 | wxStartTimer = miscc.wxStartTimer | |
637 | ||
638 | wxGetOsVersion = miscc.wxGetOsVersion | |
639 | ||
d24a34bb RD |
640 | wxSleep = miscc.wxSleep |
641 | ||
70551f47 RD |
642 | wxYield = miscc.wxYield |
643 | ||
ab9bc19b RD |
644 | wxSafeYield = miscc.wxSafeYield |
645 | ||
d24a34bb RD |
646 | wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows |
647 | ||
70551f47 RD |
648 | wxGetResource = miscc.wxGetResource |
649 | ||
d29aba2f RD |
650 | wxStripMenuCodes = miscc.wxStripMenuCodes |
651 | ||
70551f47 RD |
652 | |
653 | ||
654 | #-------------- VARIABLE WRAPPERS ------------------ | |
655 | ||
656 | wxLeft = miscc.wxLeft | |
657 | wxTop = miscc.wxTop | |
658 | wxRight = miscc.wxRight | |
659 | wxBottom = miscc.wxBottom | |
660 | wxWidth = miscc.wxWidth | |
661 | wxHeight = miscc.wxHeight | |
662 | wxCentre = miscc.wxCentre | |
663 | wxCenter = miscc.wxCenter | |
664 | wxCentreX = miscc.wxCentreX | |
665 | wxCentreY = miscc.wxCentreY | |
666 | wxUnconstrained = miscc.wxUnconstrained | |
667 | wxAsIs = miscc.wxAsIs | |
668 | wxPercentOf = miscc.wxPercentOf | |
669 | wxAbove = miscc.wxAbove | |
670 | wxBelow = miscc.wxBelow | |
671 | wxLeftOf = miscc.wxLeftOf | |
672 | wxRightOf = miscc.wxRightOf | |
673 | wxSameAs = miscc.wxSameAs | |
674 | wxAbsolute = miscc.wxAbsolute | |
105e45b9 RD |
675 | wxOutRegion = miscc.wxOutRegion |
676 | wxPartRegion = miscc.wxPartRegion | |
677 | wxInRegion = miscc.wxInRegion |