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