1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
7 def __del__(self
,miscc
=miscc
):
9 miscc
.delete_wxSize(self
)
10 def Set(self
, *_args
, **_kwargs
):
11 val
= apply(miscc
.wxSize_Set
,(self
,) + _args
, _kwargs
)
13 def GetX(self
, *_args
, **_kwargs
):
14 val
= apply(miscc
.wxSize_GetX
,(self
,) + _args
, _kwargs
)
16 def GetY(self
, *_args
, **_kwargs
):
17 val
= apply(miscc
.wxSize_GetY
,(self
,) + _args
, _kwargs
)
19 def GetWidth(self
, *_args
, **_kwargs
):
20 val
= apply(miscc
.wxSize_GetWidth
,(self
,) + _args
, _kwargs
)
22 def GetHeight(self
, *_args
, **_kwargs
):
23 val
= apply(miscc
.wxSize_GetHeight
,(self
,) + _args
, _kwargs
)
25 def SetWidth(self
, *_args
, **_kwargs
):
26 val
= apply(miscc
.wxSize_SetWidth
,(self
,) + _args
, _kwargs
)
28 def SetHeight(self
, *_args
, **_kwargs
):
29 val
= apply(miscc
.wxSize_SetHeight
,(self
,) + _args
, _kwargs
)
31 def asTuple(self
, *_args
, **_kwargs
):
32 val
= apply(miscc
.wxSize_asTuple
,(self
,) + _args
, _kwargs
)
34 def __setattr__(self
,name
,value
):
36 miscc
.wxSize_x_set(self
,value
)
39 miscc
.wxSize_y_set(self
,value
)
42 miscc
.wxSize_width_set(self
,value
)
45 miscc
.wxSize_height_set(self
,value
)
47 self
.__dict
__[name
] = value
48 def __getattr__(self
,name
):
50 return miscc
.wxSize_x_get(self
)
52 return miscc
.wxSize_y_get(self
)
54 return miscc
.wxSize_width_get(self
)
56 return miscc
.wxSize_height_get(self
)
57 raise AttributeError,name
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
)
70 class wxRealPointPtr
:
71 def __init__(self
,this
):
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
)
80 def asTuple(self
, *_args
, **_kwargs
):
81 val
= apply(miscc
.wxRealPoint_asTuple
,(self
,) + _args
, _kwargs
)
83 def __setattr__(self
,name
,value
):
85 miscc
.wxRealPoint_x_set(self
,value
)
88 miscc
.wxRealPoint_y_set(self
,value
)
90 self
.__dict
__[name
] = value
91 def __getattr__(self
,name
):
93 return miscc
.wxRealPoint_x_get(self
)
95 return miscc
.wxRealPoint_y_get(self
)
96 raise AttributeError,name
98 return "<C wxRealPoint instance at %s>" % (self
.this
,)
99 def __str__(self
): return str(self
.asTuple())
100 def __repr__(self
): return str(self
.asTuple())
101 class wxRealPoint(wxRealPointPtr
):
102 def __init__(self
,*_args
,**_kwargs
):
103 self
.this
= apply(miscc
.new_wxRealPoint
,_args
,_kwargs
)
110 def __init__(self
,this
):
113 def __del__(self
,miscc
=miscc
):
114 if self
.thisown
== 1 :
115 miscc
.delete_wxPoint(self
)
116 def Set(self
, *_args
, **_kwargs
):
117 val
= apply(miscc
.wxPoint_Set
,(self
,) + _args
, _kwargs
)
119 def asTuple(self
, *_args
, **_kwargs
):
120 val
= apply(miscc
.wxPoint_asTuple
,(self
,) + _args
, _kwargs
)
122 def __setattr__(self
,name
,value
):
124 miscc
.wxPoint_x_set(self
,value
)
127 miscc
.wxPoint_y_set(self
,value
)
129 self
.__dict
__[name
] = value
130 def __getattr__(self
,name
):
132 return miscc
.wxPoint_x_get(self
)
134 return miscc
.wxPoint_y_get(self
)
135 raise AttributeError,name
137 return "<C wxPoint instance at %s>" % (self
.this
,)
138 def __str__(self
): return str(self
.asTuple())
139 def __repr__(self
): return str(self
.asTuple())
140 class wxPoint(wxPointPtr
):
141 def __init__(self
,*_args
,**_kwargs
):
142 self
.this
= apply(miscc
.new_wxPoint
,_args
,_kwargs
)
149 def __init__(self
,this
):
152 def __del__(self
,miscc
=miscc
):
153 if self
.thisown
== 1 :
154 miscc
.delete_wxRect(self
)
155 def GetX(self
, *_args
, **_kwargs
):
156 val
= apply(miscc
.wxRect_GetX
,(self
,) + _args
, _kwargs
)
158 def SetX(self
, *_args
, **_kwargs
):
159 val
= apply(miscc
.wxRect_SetX
,(self
,) + _args
, _kwargs
)
161 def GetY(self
, *_args
, **_kwargs
):
162 val
= apply(miscc
.wxRect_GetY
,(self
,) + _args
, _kwargs
)
164 def SetY(self
, *_args
, **_kwargs
):
165 val
= apply(miscc
.wxRect_SetY
,(self
,) + _args
, _kwargs
)
167 def GetWidth(self
, *_args
, **_kwargs
):
168 val
= apply(miscc
.wxRect_GetWidth
,(self
,) + _args
, _kwargs
)
170 def SetWidth(self
, *_args
, **_kwargs
):
171 val
= apply(miscc
.wxRect_SetWidth
,(self
,) + _args
, _kwargs
)
173 def GetHeight(self
, *_args
, **_kwargs
):
174 val
= apply(miscc
.wxRect_GetHeight
,(self
,) + _args
, _kwargs
)
176 def SetHeight(self
, *_args
, **_kwargs
):
177 val
= apply(miscc
.wxRect_SetHeight
,(self
,) + _args
, _kwargs
)
179 def GetPosition(self
, *_args
, **_kwargs
):
180 val
= apply(miscc
.wxRect_GetPosition
,(self
,) + _args
, _kwargs
)
181 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
183 def GetSize(self
, *_args
, **_kwargs
):
184 val
= apply(miscc
.wxRect_GetSize
,(self
,) + _args
, _kwargs
)
185 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
187 def GetLeft(self
, *_args
, **_kwargs
):
188 val
= apply(miscc
.wxRect_GetLeft
,(self
,) + _args
, _kwargs
)
190 def GetTop(self
, *_args
, **_kwargs
):
191 val
= apply(miscc
.wxRect_GetTop
,(self
,) + _args
, _kwargs
)
193 def GetBottom(self
, *_args
, **_kwargs
):
194 val
= apply(miscc
.wxRect_GetBottom
,(self
,) + _args
, _kwargs
)
196 def GetRight(self
, *_args
, **_kwargs
):
197 val
= apply(miscc
.wxRect_GetRight
,(self
,) + _args
, _kwargs
)
199 def asTuple(self
, *_args
, **_kwargs
):
200 val
= apply(miscc
.wxRect_asTuple
,(self
,) + _args
, _kwargs
)
202 def __setattr__(self
,name
,value
):
204 miscc
.wxRect_x_set(self
,value
)
207 miscc
.wxRect_y_set(self
,value
)
210 miscc
.wxRect_width_set(self
,value
)
212 if name
== "height" :
213 miscc
.wxRect_height_set(self
,value
)
215 self
.__dict
__[name
] = value
216 def __getattr__(self
,name
):
218 return miscc
.wxRect_x_get(self
)
220 return miscc
.wxRect_y_get(self
)
222 return miscc
.wxRect_width_get(self
)
223 if name
== "height" :
224 return miscc
.wxRect_height_get(self
)
225 raise AttributeError,name
227 return "<C wxRect instance at %s>" % (self
.this
,)
228 def __str__(self
): return str(self
.asTuple())
229 def __repr__(self
): return str(self
.asTuple())
230 class wxRect(wxRectPtr
):
231 def __init__(self
,*_args
,**_kwargs
):
232 self
.this
= apply(miscc
.new_wxRect
,_args
,_kwargs
)
239 def __init__(self
,this
):
242 def __del__(self
,miscc
=miscc
):
243 if self
.thisown
== 1 :
244 miscc
.delete_wxPyTimer(self
)
245 def Interval(self
, *_args
, **_kwargs
):
246 val
= apply(miscc
.wxPyTimer_Interval
,(self
,) + _args
, _kwargs
)
248 def Start(self
, *_args
, **_kwargs
):
249 val
= apply(miscc
.wxPyTimer_Start
,(self
,) + _args
, _kwargs
)
251 def Stop(self
, *_args
, **_kwargs
):
252 val
= apply(miscc
.wxPyTimer_Stop
,(self
,) + _args
, _kwargs
)
255 return "<C wxPyTimer instance at %s>" % (self
.this
,)
256 class wxPyTimer(wxPyTimerPtr
):
257 def __init__(self
,*_args
,**_kwargs
):
258 self
.this
= apply(miscc
.new_wxPyTimer
,_args
,_kwargs
)
264 class wxIndividualLayoutConstraintPtr
:
265 def __init__(self
,this
):
268 def Above(self
, *_args
, **_kwargs
):
269 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
,) + _args
, _kwargs
)
271 def Absolute(self
, *_args
, **_kwargs
):
272 val
= apply(miscc
.wxIndividualLayoutConstraint_Absolute
,(self
,) + _args
, _kwargs
)
274 def AsIs(self
, *_args
, **_kwargs
):
275 val
= apply(miscc
.wxIndividualLayoutConstraint_AsIs
,(self
,) + _args
, _kwargs
)
277 def Below(self
, *_args
, **_kwargs
):
278 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
,) + _args
, _kwargs
)
280 def Unconstrained(self
, *_args
, **_kwargs
):
281 val
= apply(miscc
.wxIndividualLayoutConstraint_Unconstrained
,(self
,) + _args
, _kwargs
)
283 def LeftOf(self
, *_args
, **_kwargs
):
284 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
,) + _args
, _kwargs
)
286 def PercentOf(self
, *_args
, **_kwargs
):
287 val
= apply(miscc
.wxIndividualLayoutConstraint_PercentOf
,(self
,) + _args
, _kwargs
)
289 def RightOf(self
, *_args
, **_kwargs
):
290 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
,) + _args
, _kwargs
)
292 def SameAs(self
, *_args
, **_kwargs
):
293 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
,) + _args
, _kwargs
)
295 def Set(self
, *_args
, **_kwargs
):
296 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
,) + _args
, _kwargs
)
299 return "<C wxIndividualLayoutConstraint instance at %s>" % (self
.this
,)
300 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
301 def __init__(self
,this
):
307 class wxLayoutConstraintsPtr
:
308 def __init__(self
,this
):
311 def __setattr__(self
,name
,value
):
312 if name
== "bottom" :
313 miscc
.wxLayoutConstraints_bottom_set(self
,value
.this
)
315 if name
== "centreX" :
316 miscc
.wxLayoutConstraints_centreX_set(self
,value
.this
)
318 if name
== "centreY" :
319 miscc
.wxLayoutConstraints_centreY_set(self
,value
.this
)
321 if name
== "height" :
322 miscc
.wxLayoutConstraints_height_set(self
,value
.this
)
325 miscc
.wxLayoutConstraints_left_set(self
,value
.this
)
328 miscc
.wxLayoutConstraints_right_set(self
,value
.this
)
331 miscc
.wxLayoutConstraints_top_set(self
,value
.this
)
334 miscc
.wxLayoutConstraints_width_set(self
,value
.this
)
336 self
.__dict
__[name
] = value
337 def __getattr__(self
,name
):
338 if name
== "bottom" :
339 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
))
340 if name
== "centreX" :
341 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
))
342 if name
== "centreY" :
343 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
))
344 if name
== "height" :
345 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
))
347 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
))
349 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
))
351 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
))
353 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
))
354 raise AttributeError,name
356 return "<C wxLayoutConstraints instance at %s>" % (self
.this
,)
357 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
358 def __init__(self
,*_args
,**_kwargs
):
359 self
.this
= apply(miscc
.new_wxLayoutConstraints
,_args
,_kwargs
)
366 def __init__(self
,this
):
369 def __del__(self
,miscc
=miscc
):
370 if self
.thisown
== 1 :
371 miscc
.delete_wxRegion(self
)
372 def Clear(self
, *_args
, **_kwargs
):
373 val
= apply(miscc
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
375 def Contains(self
, *_args
, **_kwargs
):
376 val
= apply(miscc
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
378 def ContainsPoint(self
, *_args
, **_kwargs
):
379 val
= apply(miscc
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
381 def ContainsRect(self
, *_args
, **_kwargs
):
382 val
= apply(miscc
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
384 def GetBox(self
, *_args
, **_kwargs
):
385 val
= apply(miscc
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
386 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
388 def Intersect(self
, *_args
, **_kwargs
):
389 val
= apply(miscc
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
391 def IsEmpty(self
, *_args
, **_kwargs
):
392 val
= apply(miscc
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
394 def Subtract(self
, *_args
, **_kwargs
):
395 val
= apply(miscc
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
397 def Union(self
, *_args
, **_kwargs
):
398 val
= apply(miscc
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
400 def Xor(self
, *_args
, **_kwargs
):
401 val
= apply(miscc
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
404 return "<C wxRegion instance at %s>" % (self
.this
,)
405 class wxRegion(wxRegionPtr
):
406 def __init__(self
,*_args
,**_kwargs
):
407 self
.this
= apply(miscc
.new_wxRegion
,_args
,_kwargs
)
413 class wxRegionIteratorPtr
:
414 def __init__(self
,this
):
417 def __del__(self
,miscc
=miscc
):
418 if self
.thisown
== 1 :
419 miscc
.delete_wxRegionIterator(self
)
420 def GetX(self
, *_args
, **_kwargs
):
421 val
= apply(miscc
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
423 def GetY(self
, *_args
, **_kwargs
):
424 val
= apply(miscc
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
426 def GetW(self
, *_args
, **_kwargs
):
427 val
= apply(miscc
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
429 def GetWidth(self
, *_args
, **_kwargs
):
430 val
= apply(miscc
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
432 def GetH(self
, *_args
, **_kwargs
):
433 val
= apply(miscc
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
435 def GetHeight(self
, *_args
, **_kwargs
):
436 val
= apply(miscc
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
438 def GetRect(self
, *_args
, **_kwargs
):
439 val
= apply(miscc
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
440 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
442 def HaveRects(self
, *_args
, **_kwargs
):
443 val
= apply(miscc
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
445 def Reset(self
, *_args
, **_kwargs
):
446 val
= apply(miscc
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
448 def Next(self
, *_args
, **_kwargs
):
449 val
= apply(miscc
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
452 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
453 class wxRegionIterator(wxRegionIteratorPtr
):
454 def __init__(self
,*_args
,**_kwargs
):
455 self
.this
= apply(miscc
.new_wxRegionIterator
,_args
,_kwargs
)
461 class wxAcceleratorEntryPtr
:
462 def __init__(self
,this
):
465 def __del__(self
,miscc
=miscc
):
466 if self
.thisown
== 1 :
467 miscc
.delete_wxAcceleratorEntry(self
)
468 def Set(self
, *_args
, **_kwargs
):
469 val
= apply(miscc
.wxAcceleratorEntry_Set
,(self
,) + _args
, _kwargs
)
471 def GetFlags(self
, *_args
, **_kwargs
):
472 val
= apply(miscc
.wxAcceleratorEntry_GetFlags
,(self
,) + _args
, _kwargs
)
474 def GetKeyCode(self
, *_args
, **_kwargs
):
475 val
= apply(miscc
.wxAcceleratorEntry_GetKeyCode
,(self
,) + _args
, _kwargs
)
477 def GetCommand(self
, *_args
, **_kwargs
):
478 val
= apply(miscc
.wxAcceleratorEntry_GetCommand
,(self
,) + _args
, _kwargs
)
481 return "<C wxAcceleratorEntry instance at %s>" % (self
.this
,)
482 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
483 def __init__(self
,*_args
,**_kwargs
):
484 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,_args
,_kwargs
)
490 class wxAcceleratorTablePtr
:
491 def __init__(self
,this
):
494 def __del__(self
,miscc
=miscc
):
495 if self
.thisown
== 1 :
496 miscc
.delete_wxAcceleratorTable(self
)
498 return "<C wxAcceleratorTable instance at %s>" % (self
.this
,)
499 class wxAcceleratorTable(wxAcceleratorTablePtr
):
500 def __init__(self
,*_args
,**_kwargs
):
501 self
.this
= apply(miscc
.new_wxAcceleratorTable
,_args
,_kwargs
)
507 class wxBusyInfoPtr
:
508 def __init__(self
,this
):
511 def __del__(self
,miscc
=miscc
):
512 if self
.thisown
== 1 :
513 miscc
.delete_wxBusyInfo(self
)
515 return "<C wxBusyInfo instance at %s>" % (self
.this
,)
516 class wxBusyInfo(wxBusyInfoPtr
):
517 def __init__(self
,*_args
,**_kwargs
):
518 self
.this
= apply(miscc
.new_wxBusyInfo
,_args
,_kwargs
)
526 #-------------- FUNCTION WRAPPERS ------------------
528 wxNewId
= miscc
.wxNewId
530 wxRegisterId
= miscc
.wxRegisterId
534 RegisterId
= miscc
.RegisterId
536 wxBell
= miscc
.wxBell
538 wxDisplaySize
= miscc
.wxDisplaySize
540 wxEndBusyCursor
= miscc
.wxEndBusyCursor
542 wxExecute
= miscc
.wxExecute
544 wxGetElapsedTime
= miscc
.wxGetElapsedTime
546 wxGetFreeMemory
= miscc
.wxGetFreeMemory
548 wxGetMousePosition
= miscc
.wxGetMousePosition
550 wxIsBusy
= miscc
.wxIsBusy
554 wxShell
= miscc
.wxShell
556 wxStartTimer
= miscc
.wxStartTimer
558 wxGetOsVersion
= miscc
.wxGetOsVersion
560 wxSleep
= miscc
.wxSleep
562 wxYield
= miscc
.wxYield
564 wxSafeYield
= miscc
.wxSafeYield
566 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
568 wxGetResource
= miscc
.wxGetResource
572 #-------------- VARIABLE WRAPPERS ------------------
574 wxLeft
= miscc
.wxLeft
576 wxRight
= miscc
.wxRight
577 wxBottom
= miscc
.wxBottom
578 wxWidth
= miscc
.wxWidth
579 wxHeight
= miscc
.wxHeight
580 wxCentre
= miscc
.wxCentre
581 wxCenter
= miscc
.wxCenter
582 wxCentreX
= miscc
.wxCentreX
583 wxCentreY
= miscc
.wxCentreY
584 wxUnconstrained
= miscc
.wxUnconstrained
585 wxAsIs
= miscc
.wxAsIs
586 wxPercentOf
= miscc
.wxPercentOf
587 wxAbove
= miscc
.wxAbove
588 wxBelow
= miscc
.wxBelow
589 wxLeftOf
= miscc
.wxLeftOf
590 wxRightOf
= miscc
.wxRightOf
591 wxSameAs
= miscc
.wxSameAs
592 wxAbsolute
= miscc
.wxAbsolute
593 wxOutRegion
= miscc
.wxOutRegion
594 wxPartRegion
= miscc
.wxPartRegion
595 wxInRegion
= miscc
.wxInRegion