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