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