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