]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc.py
some little fixes
[wxWidgets.git] / wxPython / src / gtk / misc.py
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
7 def __del__(self,miscc=miscc):
8 if self.thisown == 1 :
9 miscc.delete_wxSize(self)
10 def Set(self, *_args, **_kwargs):
11 val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs)
12 return val
13 def GetX(self, *_args, **_kwargs):
14 val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs)
15 return val
16 def GetY(self, *_args, **_kwargs):
17 val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs)
18 return val
19 def GetWidth(self, *_args, **_kwargs):
20 val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs)
21 return val
22 def GetHeight(self, *_args, **_kwargs):
23 val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs)
24 return val
25 def SetWidth(self, *_args, **_kwargs):
26 val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs)
27 return val
28 def SetHeight(self, *_args, **_kwargs):
29 val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs)
30 return val
31 def asTuple(self, *_args, **_kwargs):
32 val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs)
33 return val
34 def __setattr__(self,name,value):
35 if name == "x" :
36 miscc.wxSize_x_set(self,value)
37 return
38 if name == "y" :
39 miscc.wxSize_y_set(self,value)
40 return
41 if name == "width" :
42 miscc.wxSize_width_set(self,value)
43 return
44 if name == "height" :
45 miscc.wxSize_height_set(self,value)
46 return
47 self.__dict__[name] = value
48 def __getattr__(self,name):
49 if name == "x" :
50 return miscc.wxSize_x_get(self)
51 if name == "y" :
52 return miscc.wxSize_y_get(self)
53 if name == "width" :
54 return miscc.wxSize_width_get(self)
55 if name == "height" :
56 return miscc.wxSize_height_get(self)
57 raise AttributeError,name
58 def __repr__(self):
59 return "<C wxSize instance at %s>" % (self.this,)
60
61 def __str__(self): return str(self.asTuple())
62 def __repr__(self): return str(self.asTuple())
63 def __len__(self): return len(self.asTuple()
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
70 class wxSize(wxSizePtr):
71 def __init__(self,*_args,**_kwargs):
72 self.this = apply(miscc.new_wxSize,_args,_kwargs)
73 self.thisown = 1
74
75
76
77
78 class wxRealPointPtr :
79 def __init__(self,this):
80 self.this = this
81 self.thisown = 0
82 def __del__(self,miscc=miscc):
83 if self.thisown == 1 :
84 miscc.delete_wxRealPoint(self)
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
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
102 def __setattr__(self,name,value):
103 if name == "x" :
104 miscc.wxRealPoint_x_set(self,value)
105 return
106 if name == "y" :
107 miscc.wxRealPoint_y_set(self,value)
108 return
109 self.__dict__[name] = value
110 def __getattr__(self,name):
111 if name == "x" :
112 return miscc.wxRealPoint_x_get(self)
113 if name == "y" :
114 return miscc.wxRealPoint_y_get(self)
115 raise AttributeError,name
116 def __repr__(self):
117 return "<C wxRealPoint instance at %s>" % (self.this,)
118
119 def __str__(self): return str(self.asTuple())
120 def __repr__(self): return str(self.asTuple())
121 def __len__(self): return len(self.asTuple()
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
128 class wxRealPoint(wxRealPointPtr):
129 def __init__(self,*_args,**_kwargs):
130 self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
131 self.thisown = 1
132
133
134
135
136 class wxPointPtr :
137 def __init__(self,this):
138 self.this = this
139 self.thisown = 0
140 def __del__(self,miscc=miscc):
141 if self.thisown == 1 :
142 miscc.delete_wxPoint(self)
143 def Set(self, *_args, **_kwargs):
144 val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
145 return val
146 def asTuple(self, *_args, **_kwargs):
147 val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
148 return val
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
160 def __setattr__(self,name,value):
161 if name == "x" :
162 miscc.wxPoint_x_set(self,value)
163 return
164 if name == "y" :
165 miscc.wxPoint_y_set(self,value)
166 return
167 self.__dict__[name] = value
168 def __getattr__(self,name):
169 if name == "x" :
170 return miscc.wxPoint_x_get(self)
171 if name == "y" :
172 return miscc.wxPoint_y_get(self)
173 raise AttributeError,name
174 def __repr__(self):
175 return "<C wxPoint instance at %s>" % (self.this,)
176
177 def __str__(self): return str(self.asTuple())
178 def __repr__(self): return str(self.asTuple())
179 def __len__(self): return len(self.asTuple()
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
186 class wxPoint(wxPointPtr):
187 def __init__(self,*_args,**_kwargs):
188 self.this = apply(miscc.new_wxPoint,_args,_kwargs)
189 self.thisown = 1
190
191
192
193
194 class wxRectPtr :
195 def __init__(self,this):
196 self.this = this
197 self.thisown = 0
198 def __del__(self,miscc=miscc):
199 if self.thisown == 1 :
200 miscc.delete_wxRect(self)
201 def GetX(self, *_args, **_kwargs):
202 val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
203 return val
204 def SetX(self, *_args, **_kwargs):
205 val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
206 return val
207 def GetY(self, *_args, **_kwargs):
208 val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
209 return val
210 def SetY(self, *_args, **_kwargs):
211 val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
212 return val
213 def GetWidth(self, *_args, **_kwargs):
214 val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
215 return val
216 def SetWidth(self, *_args, **_kwargs):
217 val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
218 return val
219 def GetHeight(self, *_args, **_kwargs):
220 val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
221 return val
222 def SetHeight(self, *_args, **_kwargs):
223 val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
224 return val
225 def GetPosition(self, *_args, **_kwargs):
226 val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
227 if val: val = wxPointPtr(val) ; val.thisown = 1
228 return val
229 def GetSize(self, *_args, **_kwargs):
230 val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
231 if val: val = wxSizePtr(val) ; val.thisown = 1
232 return val
233 def GetLeft(self, *_args, **_kwargs):
234 val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
235 return val
236 def GetTop(self, *_args, **_kwargs):
237 val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
238 return val
239 def GetBottom(self, *_args, **_kwargs):
240 val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
241 return val
242 def GetRight(self, *_args, **_kwargs):
243 val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
244 return val
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
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
263 def asTuple(self, *_args, **_kwargs):
264 val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
265 return val
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
273 def __setattr__(self,name,value):
274 if name == "x" :
275 miscc.wxRect_x_set(self,value)
276 return
277 if name == "y" :
278 miscc.wxRect_y_set(self,value)
279 return
280 if name == "width" :
281 miscc.wxRect_width_set(self,value)
282 return
283 if name == "height" :
284 miscc.wxRect_height_set(self,value)
285 return
286 self.__dict__[name] = value
287 def __getattr__(self,name):
288 if name == "x" :
289 return miscc.wxRect_x_get(self)
290 if name == "y" :
291 return miscc.wxRect_y_get(self)
292 if name == "width" :
293 return miscc.wxRect_width_get(self)
294 if name == "height" :
295 return miscc.wxRect_height_get(self)
296 raise AttributeError,name
297 def __repr__(self):
298 return "<C wxRect instance at %s>" % (self.this,)
299
300 def __str__(self): return str(self.asTuple())
301 def __repr__(self): return str(self.asTuple())
302 def __len__(self): return len(self.asTuple()
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
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
348 class wxRect(wxRectPtr):
349 def __init__(self,*_args,**_kwargs):
350 self.this = apply(miscc.new_wxRect,_args,_kwargs)
351 self.thisown = 1
352
353
354
355
356 class wxIndividualLayoutConstraintPtr :
357 def __init__(self,this):
358 self.this = this
359 self.thisown = 0
360 def Above(self, *_args, **_kwargs):
361 val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
362 return val
363 def Absolute(self, *_args, **_kwargs):
364 val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
365 return val
366 def AsIs(self, *_args, **_kwargs):
367 val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
368 return val
369 def Below(self, *_args, **_kwargs):
370 val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
371 return val
372 def Unconstrained(self, *_args, **_kwargs):
373 val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
374 return val
375 def LeftOf(self, *_args, **_kwargs):
376 val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
377 return val
378 def PercentOf(self, *_args, **_kwargs):
379 val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
380 return val
381 def RightOf(self, *_args, **_kwargs):
382 val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
383 return val
384 def SameAs(self, *_args, **_kwargs):
385 val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
386 return val
387 def Set(self, *_args, **_kwargs):
388 val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
389 return val
390 def __repr__(self):
391 return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
392 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
393 def __init__(self,this):
394 self.this = this
395
396
397
398
399 class wxLayoutConstraintsPtr :
400 def __init__(self,this):
401 self.this = this
402 self.thisown = 0
403 def __setattr__(self,name,value):
404 if name == "bottom" :
405 miscc.wxLayoutConstraints_bottom_set(self,value.this)
406 return
407 if name == "centreX" :
408 miscc.wxLayoutConstraints_centreX_set(self,value.this)
409 return
410 if name == "centreY" :
411 miscc.wxLayoutConstraints_centreY_set(self,value.this)
412 return
413 if name == "height" :
414 miscc.wxLayoutConstraints_height_set(self,value.this)
415 return
416 if name == "left" :
417 miscc.wxLayoutConstraints_left_set(self,value.this)
418 return
419 if name == "right" :
420 miscc.wxLayoutConstraints_right_set(self,value.this)
421 return
422 if name == "top" :
423 miscc.wxLayoutConstraints_top_set(self,value.this)
424 return
425 if name == "width" :
426 miscc.wxLayoutConstraints_width_set(self,value.this)
427 return
428 self.__dict__[name] = value
429 def __getattr__(self,name):
430 if name == "bottom" :
431 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
432 if name == "centreX" :
433 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
434 if name == "centreY" :
435 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
436 if name == "height" :
437 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
438 if name == "left" :
439 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
440 if name == "right" :
441 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
442 if name == "top" :
443 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
444 if name == "width" :
445 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
446 raise AttributeError,name
447 def __repr__(self):
448 return "<C wxLayoutConstraints instance at %s>" % (self.this,)
449 class wxLayoutConstraints(wxLayoutConstraintsPtr):
450 def __init__(self,*_args,**_kwargs):
451 self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
452 self.thisown = 1
453
454
455
456
457 class wxRegionPtr :
458 def __init__(self,this):
459 self.this = this
460 self.thisown = 0
461 def __del__(self,miscc=miscc):
462 if self.thisown == 1 :
463 miscc.delete_wxRegion(self)
464 def Clear(self, *_args, **_kwargs):
465 val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
466 return val
467 def Contains(self, *_args, **_kwargs):
468 val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
469 return val
470 def ContainsPoint(self, *_args, **_kwargs):
471 val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
472 return val
473 def ContainsRect(self, *_args, **_kwargs):
474 val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
475 return val
476 def ContainsRectDim(self, *_args, **_kwargs):
477 val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
478 return val
479 def GetBox(self, *_args, **_kwargs):
480 val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
481 if val: val = wxRectPtr(val) ; val.thisown = 1
482 return val
483 def Intersect(self, *_args, **_kwargs):
484 val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
485 return val
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
492 def IsEmpty(self, *_args, **_kwargs):
493 val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
494 return val
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
504 def Subtract(self, *_args, **_kwargs):
505 val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
506 return val
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)
512 return val
513 def Xor(self, *_args, **_kwargs):
514 val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
515 return val
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
522 def __repr__(self):
523 return "<C wxRegion instance at %s>" % (self.this,)
524 class wxRegion(wxRegionPtr):
525 def __init__(self,*_args,**_kwargs):
526 self.this = apply(miscc.new_wxRegion,_args,_kwargs)
527 self.thisown = 1
528
529
530
531
532 class wxRegionIteratorPtr :
533 def __init__(self,this):
534 self.this = this
535 self.thisown = 0
536 def __del__(self,miscc=miscc):
537 if self.thisown == 1 :
538 miscc.delete_wxRegionIterator(self)
539 def GetX(self, *_args, **_kwargs):
540 val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
541 return val
542 def GetY(self, *_args, **_kwargs):
543 val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
544 return val
545 def GetW(self, *_args, **_kwargs):
546 val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
547 return val
548 def GetWidth(self, *_args, **_kwargs):
549 val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
550 return val
551 def GetH(self, *_args, **_kwargs):
552 val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
553 return val
554 def GetHeight(self, *_args, **_kwargs):
555 val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
556 return val
557 def GetRect(self, *_args, **_kwargs):
558 val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
559 if val: val = wxRectPtr(val) ; val.thisown = 1
560 return val
561 def HaveRects(self, *_args, **_kwargs):
562 val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
563 return val
564 def Reset(self, *_args, **_kwargs):
565 val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
566 return val
567 def Next(self, *_args, **_kwargs):
568 val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
569 return val
570 def __repr__(self):
571 return "<C wxRegionIterator instance at %s>" % (self.this,)
572 class wxRegionIterator(wxRegionIteratorPtr):
573 def __init__(self,*_args,**_kwargs):
574 self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
575 self.thisown = 1
576
577
578
579
580 class wxAcceleratorEntryPtr :
581 def __init__(self,this):
582 self.this = this
583 self.thisown = 0
584 def __del__(self,miscc=miscc):
585 if self.thisown == 1 :
586 miscc.delete_wxAcceleratorEntry(self)
587 def Set(self, *_args, **_kwargs):
588 val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
589 return val
590 def GetFlags(self, *_args, **_kwargs):
591 val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
592 return val
593 def GetKeyCode(self, *_args, **_kwargs):
594 val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
595 return val
596 def GetCommand(self, *_args, **_kwargs):
597 val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
598 return val
599 def __repr__(self):
600 return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
601 class wxAcceleratorEntry(wxAcceleratorEntryPtr):
602 def __init__(self,*_args,**_kwargs):
603 self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
604 self.thisown = 1
605
606
607
608
609 class wxAcceleratorTablePtr :
610 def __init__(self,this):
611 self.this = this
612 self.thisown = 0
613 def __del__(self,miscc=miscc):
614 if self.thisown == 1 :
615 miscc.delete_wxAcceleratorTable(self)
616 def __repr__(self):
617 return "<C wxAcceleratorTable instance at %s>" % (self.this,)
618 class wxAcceleratorTable(wxAcceleratorTablePtr):
619 def __init__(self,*_args,**_kwargs):
620 self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
621 self.thisown = 1
622
623
624
625
626 class 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,)
635 class 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
643
644
645 #-------------- FUNCTION WRAPPERS ------------------
646
647 wxIntersectRect = miscc.wxIntersectRect
648
649 wxNewId = miscc.wxNewId
650
651 wxRegisterId = miscc.wxRegisterId
652
653 NewId = miscc.NewId
654
655 RegisterId = miscc.RegisterId
656
657 wxBell = miscc.wxBell
658
659 wxDisplaySize = miscc.wxDisplaySize
660
661 wxEndBusyCursor = miscc.wxEndBusyCursor
662
663 wxGetElapsedTime = miscc.wxGetElapsedTime
664
665 wxGetMousePosition = miscc.wxGetMousePosition
666
667 wxIsBusy = miscc.wxIsBusy
668
669 wxNow = miscc.wxNow
670
671 wxShell = miscc.wxShell
672
673 wxStartTimer = miscc.wxStartTimer
674
675 wxGetOsVersion = miscc.wxGetOsVersion
676
677 wxGetOsDescription = miscc.wxGetOsDescription
678
679 wxSleep = miscc.wxSleep
680
681 wxUsleep = miscc.wxUsleep
682
683 wxYield = miscc.wxYield
684
685 wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
686
687 wxGetResource = miscc.wxGetResource
688
689 wxStripMenuCodes = miscc.wxStripMenuCodes
690
691 wxGetEmailAddress = miscc.wxGetEmailAddress
692
693 wxGetHostName = miscc.wxGetHostName
694
695 wxGetFullHostName = miscc.wxGetFullHostName
696
697 wxGetUserId = miscc.wxGetUserId
698
699 wxGetUserName = miscc.wxGetUserName
700
701 wxGetHomeDir = miscc.wxGetHomeDir
702
703 def wxGetAccelFromString(*_args, **_kwargs):
704 val = apply(miscc.wxGetAccelFromString,_args,_kwargs)
705 if val: val = wxAcceleratorEntryPtr(val)
706 return val
707
708
709
710 #-------------- VARIABLE WRAPPERS ------------------
711
712 wxLeft = miscc.wxLeft
713 wxTop = miscc.wxTop
714 wxRight = miscc.wxRight
715 wxBottom = miscc.wxBottom
716 wxWidth = miscc.wxWidth
717 wxHeight = miscc.wxHeight
718 wxCentre = miscc.wxCentre
719 wxCenter = miscc.wxCenter
720 wxCentreX = miscc.wxCentreX
721 wxCentreY = miscc.wxCentreY
722 wxUnconstrained = miscc.wxUnconstrained
723 wxAsIs = miscc.wxAsIs
724 wxPercentOf = miscc.wxPercentOf
725 wxAbove = miscc.wxAbove
726 wxBelow = miscc.wxBelow
727 wxLeftOf = miscc.wxLeftOf
728 wxRightOf = miscc.wxRightOf
729 wxSameAs = miscc.wxSameAs
730 wxAbsolute = miscc.wxAbsolute
731 wxOutRegion = miscc.wxOutRegion
732 wxPartRegion = miscc.wxPartRegion
733 wxInRegion = miscc.wxInRegion
734 cvar = miscc.cvar
735 wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)