]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc.py
Merged wxPython 2.2.2 over to the main branch
[wxWidgets.git] / wxPython / src / msw / 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 def __str__(self): return str(self.asTuple())
61 def __repr__(self): return str(self.asTuple())
62 class wxSize(wxSizePtr):
63 def __init__(self,*_args,**_kwargs):
64 self.this = apply(miscc.new_wxSize,_args,_kwargs)
65 self.thisown = 1
66
67
68
69
70 class wxRealPointPtr :
71 def __init__(self,this):
72 self.this = this
73 self.thisown = 0
74 def __del__(self,miscc=miscc):
75 if self.thisown == 1 :
76 miscc.delete_wxRealPoint(self)
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
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
94 def __setattr__(self,name,value):
95 if name == "x" :
96 miscc.wxRealPoint_x_set(self,value)
97 return
98 if name == "y" :
99 miscc.wxRealPoint_y_set(self,value)
100 return
101 self.__dict__[name] = value
102 def __getattr__(self,name):
103 if name == "x" :
104 return miscc.wxRealPoint_x_get(self)
105 if name == "y" :
106 return miscc.wxRealPoint_y_get(self)
107 raise AttributeError,name
108 def __repr__(self):
109 return "<C wxRealPoint instance at %s>" % (self.this,)
110 def __str__(self): return str(self.asTuple())
111 def __repr__(self): return str(self.asTuple())
112 class wxRealPoint(wxRealPointPtr):
113 def __init__(self,*_args,**_kwargs):
114 self.this = apply(miscc.new_wxRealPoint,_args,_kwargs)
115 self.thisown = 1
116
117
118
119
120 class wxPointPtr :
121 def __init__(self,this):
122 self.this = this
123 self.thisown = 0
124 def __del__(self,miscc=miscc):
125 if self.thisown == 1 :
126 miscc.delete_wxPoint(self)
127 def Set(self, *_args, **_kwargs):
128 val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs)
129 return val
130 def asTuple(self, *_args, **_kwargs):
131 val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs)
132 return val
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
144 def __setattr__(self,name,value):
145 if name == "x" :
146 miscc.wxPoint_x_set(self,value)
147 return
148 if name == "y" :
149 miscc.wxPoint_y_set(self,value)
150 return
151 self.__dict__[name] = value
152 def __getattr__(self,name):
153 if name == "x" :
154 return miscc.wxPoint_x_get(self)
155 if name == "y" :
156 return miscc.wxPoint_y_get(self)
157 raise AttributeError,name
158 def __repr__(self):
159 return "<C wxPoint instance at %s>" % (self.this,)
160 def __str__(self): return str(self.asTuple())
161 def __repr__(self): return str(self.asTuple())
162 class wxPoint(wxPointPtr):
163 def __init__(self,*_args,**_kwargs):
164 self.this = apply(miscc.new_wxPoint,_args,_kwargs)
165 self.thisown = 1
166
167
168
169
170 class wxRectPtr :
171 def __init__(self,this):
172 self.this = this
173 self.thisown = 0
174 def __del__(self,miscc=miscc):
175 if self.thisown == 1 :
176 miscc.delete_wxRect(self)
177 def GetX(self, *_args, **_kwargs):
178 val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs)
179 return val
180 def SetX(self, *_args, **_kwargs):
181 val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs)
182 return val
183 def GetY(self, *_args, **_kwargs):
184 val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs)
185 return val
186 def SetY(self, *_args, **_kwargs):
187 val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs)
188 return val
189 def GetWidth(self, *_args, **_kwargs):
190 val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs)
191 return val
192 def SetWidth(self, *_args, **_kwargs):
193 val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs)
194 return val
195 def GetHeight(self, *_args, **_kwargs):
196 val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs)
197 return val
198 def SetHeight(self, *_args, **_kwargs):
199 val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs)
200 return val
201 def GetPosition(self, *_args, **_kwargs):
202 val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs)
203 if val: val = wxPointPtr(val) ; val.thisown = 1
204 return val
205 def GetSize(self, *_args, **_kwargs):
206 val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs)
207 if val: val = wxSizePtr(val) ; val.thisown = 1
208 return val
209 def GetLeft(self, *_args, **_kwargs):
210 val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs)
211 return val
212 def GetTop(self, *_args, **_kwargs):
213 val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs)
214 return val
215 def GetBottom(self, *_args, **_kwargs):
216 val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs)
217 return val
218 def GetRight(self, *_args, **_kwargs):
219 val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs)
220 return val
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
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
239 def asTuple(self, *_args, **_kwargs):
240 val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs)
241 return val
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
249 def __setattr__(self,name,value):
250 if name == "x" :
251 miscc.wxRect_x_set(self,value)
252 return
253 if name == "y" :
254 miscc.wxRect_y_set(self,value)
255 return
256 if name == "width" :
257 miscc.wxRect_width_set(self,value)
258 return
259 if name == "height" :
260 miscc.wxRect_height_set(self,value)
261 return
262 self.__dict__[name] = value
263 def __getattr__(self,name):
264 if name == "x" :
265 return miscc.wxRect_x_get(self)
266 if name == "y" :
267 return miscc.wxRect_y_get(self)
268 if name == "width" :
269 return miscc.wxRect_width_get(self)
270 if name == "height" :
271 return miscc.wxRect_height_get(self)
272 raise AttributeError,name
273 def __repr__(self):
274 return "<C wxRect instance at %s>" % (self.this,)
275 def __str__(self): return str(self.asTuple())
276 def __repr__(self): return str(self.asTuple())
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
315 class wxRect(wxRectPtr):
316 def __init__(self,*_args,**_kwargs):
317 self.this = apply(miscc.new_wxRect,_args,_kwargs)
318 self.thisown = 1
319
320
321
322
323 class wxIndividualLayoutConstraintPtr :
324 def __init__(self,this):
325 self.this = this
326 self.thisown = 0
327 def Above(self, *_args, **_kwargs):
328 val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs)
329 return val
330 def Absolute(self, *_args, **_kwargs):
331 val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs)
332 return val
333 def AsIs(self, *_args, **_kwargs):
334 val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs)
335 return val
336 def Below(self, *_args, **_kwargs):
337 val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs)
338 return val
339 def Unconstrained(self, *_args, **_kwargs):
340 val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs)
341 return val
342 def LeftOf(self, *_args, **_kwargs):
343 val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs)
344 return val
345 def PercentOf(self, *_args, **_kwargs):
346 val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs)
347 return val
348 def RightOf(self, *_args, **_kwargs):
349 val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs)
350 return val
351 def SameAs(self, *_args, **_kwargs):
352 val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs)
353 return val
354 def Set(self, *_args, **_kwargs):
355 val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs)
356 return val
357 def __repr__(self):
358 return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,)
359 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
360 def __init__(self,this):
361 self.this = this
362
363
364
365
366 class wxLayoutConstraintsPtr :
367 def __init__(self,this):
368 self.this = this
369 self.thisown = 0
370 def __setattr__(self,name,value):
371 if name == "bottom" :
372 miscc.wxLayoutConstraints_bottom_set(self,value.this)
373 return
374 if name == "centreX" :
375 miscc.wxLayoutConstraints_centreX_set(self,value.this)
376 return
377 if name == "centreY" :
378 miscc.wxLayoutConstraints_centreY_set(self,value.this)
379 return
380 if name == "height" :
381 miscc.wxLayoutConstraints_height_set(self,value.this)
382 return
383 if name == "left" :
384 miscc.wxLayoutConstraints_left_set(self,value.this)
385 return
386 if name == "right" :
387 miscc.wxLayoutConstraints_right_set(self,value.this)
388 return
389 if name == "top" :
390 miscc.wxLayoutConstraints_top_set(self,value.this)
391 return
392 if name == "width" :
393 miscc.wxLayoutConstraints_width_set(self,value.this)
394 return
395 self.__dict__[name] = value
396 def __getattr__(self,name):
397 if name == "bottom" :
398 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
399 if name == "centreX" :
400 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
401 if name == "centreY" :
402 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
403 if name == "height" :
404 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
405 if name == "left" :
406 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
407 if name == "right" :
408 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
409 if name == "top" :
410 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
411 if name == "width" :
412 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
413 raise AttributeError,name
414 def __repr__(self):
415 return "<C wxLayoutConstraints instance at %s>" % (self.this,)
416 class wxLayoutConstraints(wxLayoutConstraintsPtr):
417 def __init__(self,*_args,**_kwargs):
418 self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs)
419 self.thisown = 1
420
421
422
423
424 class wxRegionPtr :
425 def __init__(self,this):
426 self.this = this
427 self.thisown = 0
428 def __del__(self,miscc=miscc):
429 if self.thisown == 1 :
430 miscc.delete_wxRegion(self)
431 def Clear(self, *_args, **_kwargs):
432 val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs)
433 return val
434 def Contains(self, *_args, **_kwargs):
435 val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs)
436 return val
437 def ContainsPoint(self, *_args, **_kwargs):
438 val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
439 return val
440 def ContainsRect(self, *_args, **_kwargs):
441 val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs)
442 return val
443 def ContainsRectDim(self, *_args, **_kwargs):
444 val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
445 return val
446 def GetBox(self, *_args, **_kwargs):
447 val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs)
448 if val: val = wxRectPtr(val) ; val.thisown = 1
449 return val
450 def Intersect(self, *_args, **_kwargs):
451 val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs)
452 return val
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
459 def IsEmpty(self, *_args, **_kwargs):
460 val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs)
461 return val
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
471 def Subtract(self, *_args, **_kwargs):
472 val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs)
473 return val
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)
479 return val
480 def Xor(self, *_args, **_kwargs):
481 val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs)
482 return val
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
489 def __repr__(self):
490 return "<C wxRegion instance at %s>" % (self.this,)
491 class wxRegion(wxRegionPtr):
492 def __init__(self,*_args,**_kwargs):
493 self.this = apply(miscc.new_wxRegion,_args,_kwargs)
494 self.thisown = 1
495
496
497
498
499 class wxRegionIteratorPtr :
500 def __init__(self,this):
501 self.this = this
502 self.thisown = 0
503 def __del__(self,miscc=miscc):
504 if self.thisown == 1 :
505 miscc.delete_wxRegionIterator(self)
506 def GetX(self, *_args, **_kwargs):
507 val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs)
508 return val
509 def GetY(self, *_args, **_kwargs):
510 val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs)
511 return val
512 def GetW(self, *_args, **_kwargs):
513 val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs)
514 return val
515 def GetWidth(self, *_args, **_kwargs):
516 val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
517 return val
518 def GetH(self, *_args, **_kwargs):
519 val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs)
520 return val
521 def GetHeight(self, *_args, **_kwargs):
522 val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
523 return val
524 def GetRect(self, *_args, **_kwargs):
525 val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
526 if val: val = wxRectPtr(val) ; val.thisown = 1
527 return val
528 def HaveRects(self, *_args, **_kwargs):
529 val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
530 return val
531 def Reset(self, *_args, **_kwargs):
532 val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs)
533 return val
534 def Next(self, *_args, **_kwargs):
535 val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs)
536 return val
537 def __repr__(self):
538 return "<C wxRegionIterator instance at %s>" % (self.this,)
539 class wxRegionIterator(wxRegionIteratorPtr):
540 def __init__(self,*_args,**_kwargs):
541 self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs)
542 self.thisown = 1
543
544
545
546
547 class wxAcceleratorEntryPtr :
548 def __init__(self,this):
549 self.this = this
550 self.thisown = 0
551 def __del__(self,miscc=miscc):
552 if self.thisown == 1 :
553 miscc.delete_wxAcceleratorEntry(self)
554 def Set(self, *_args, **_kwargs):
555 val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs)
556 return val
557 def GetFlags(self, *_args, **_kwargs):
558 val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs)
559 return val
560 def GetKeyCode(self, *_args, **_kwargs):
561 val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs)
562 return val
563 def GetCommand(self, *_args, **_kwargs):
564 val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs)
565 return val
566 def __repr__(self):
567 return "<C wxAcceleratorEntry instance at %s>" % (self.this,)
568 class wxAcceleratorEntry(wxAcceleratorEntryPtr):
569 def __init__(self,*_args,**_kwargs):
570 self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs)
571 self.thisown = 1
572
573
574
575
576 class wxAcceleratorTablePtr :
577 def __init__(self,this):
578 self.this = this
579 self.thisown = 0
580 def __del__(self,miscc=miscc):
581 if self.thisown == 1 :
582 miscc.delete_wxAcceleratorTable(self)
583 def __repr__(self):
584 return "<C wxAcceleratorTable instance at %s>" % (self.this,)
585 class wxAcceleratorTable(wxAcceleratorTablePtr):
586 def __init__(self,*_args,**_kwargs):
587 self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs)
588 self.thisown = 1
589
590
591
592
593 class 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,)
602 class 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
610
611
612 #-------------- FUNCTION WRAPPERS ------------------
613
614 wxIntersectRect = miscc.wxIntersectRect
615
616 wxNewId = miscc.wxNewId
617
618 wxRegisterId = miscc.wxRegisterId
619
620 NewId = miscc.NewId
621
622 RegisterId = miscc.RegisterId
623
624 wxBell = miscc.wxBell
625
626 wxDisplaySize = miscc.wxDisplaySize
627
628 wxEndBusyCursor = miscc.wxEndBusyCursor
629
630 wxGetElapsedTime = miscc.wxGetElapsedTime
631
632 wxGetFreeMemory = miscc.wxGetFreeMemory
633
634 wxGetMousePosition = miscc.wxGetMousePosition
635
636 wxIsBusy = miscc.wxIsBusy
637
638 wxNow = miscc.wxNow
639
640 wxShell = miscc.wxShell
641
642 wxStartTimer = miscc.wxStartTimer
643
644 wxGetOsVersion = miscc.wxGetOsVersion
645
646 wxGetOsDescription = miscc.wxGetOsDescription
647
648 wxSleep = miscc.wxSleep
649
650 wxUsleep = miscc.wxUsleep
651
652 wxYield = miscc.wxYield
653
654 wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
655
656 wxGetResource = miscc.wxGetResource
657
658 wxStripMenuCodes = miscc.wxStripMenuCodes
659
660 wxGetEmailAddress = miscc.wxGetEmailAddress
661
662 wxGetHostName = miscc.wxGetHostName
663
664 wxGetFullHostName = miscc.wxGetFullHostName
665
666 wxGetUserId = miscc.wxGetUserId
667
668 wxGetUserName = miscc.wxGetUserName
669
670 wxGetHomeDir = miscc.wxGetHomeDir
671
672 def wxGetAccelFromString(*_args, **_kwargs):
673 val = apply(miscc.wxGetAccelFromString,_args,_kwargs)
674 if val: val = wxAcceleratorEntryPtr(val)
675 return val
676
677
678
679 #-------------- VARIABLE WRAPPERS ------------------
680
681 wxLeft = miscc.wxLeft
682 wxTop = miscc.wxTop
683 wxRight = miscc.wxRight
684 wxBottom = miscc.wxBottom
685 wxWidth = miscc.wxWidth
686 wxHeight = miscc.wxHeight
687 wxCentre = miscc.wxCentre
688 wxCenter = miscc.wxCenter
689 wxCentreX = miscc.wxCentreX
690 wxCentreY = miscc.wxCentreY
691 wxUnconstrained = miscc.wxUnconstrained
692 wxAsIs = miscc.wxAsIs
693 wxPercentOf = miscc.wxPercentOf
694 wxAbove = miscc.wxAbove
695 wxBelow = miscc.wxBelow
696 wxLeftOf = miscc.wxLeftOf
697 wxRightOf = miscc.wxRightOf
698 wxSameAs = miscc.wxSameAs
699 wxAbsolute = miscc.wxAbsolute
700 wxOutRegion = miscc.wxOutRegion
701 wxPartRegion = miscc.wxPartRegion
702 wxInRegion = miscc.wxInRegion
703 cvar = miscc.cvar
704 wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)