1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
9 miscc
.delete_wxSize(self
.this
)
10 def Set(self
,arg0
,arg1
):
11 val
= miscc
.wxSize_Set(self
.this
,arg0
,arg1
)
14 val
= miscc
.wxSize_GetWidth(self
.this
)
17 val
= miscc
.wxSize_GetHeight(self
.this
)
20 val
= miscc
.wxSize___str__(self
.this
)
22 def __setattr__(self
,name
,value
):
24 miscc
.wxSize_width_set(self
.this
,value
)
27 miscc
.wxSize_height_set(self
.this
,value
)
29 self
.__dict
__[name
] = value
30 def __getattr__(self
,name
):
32 return miscc
.wxSize_width_get(self
.this
)
34 return miscc
.wxSize_height_get(self
.this
)
35 raise AttributeError,name
37 return "<C wxSize instance>"
38 class wxSize(wxSizePtr
):
39 def __init__(self
,*args
) :
40 self
.this
= apply(miscc
.new_wxSize
,()+args
)
46 class wxRealPointPtr
:
47 def __init__(self
,this
):
51 if self
.thisown
== 1 :
52 miscc
.delete_wxRealPoint(self
.this
)
53 def __setattr__(self
,name
,value
):
55 miscc
.wxRealPoint_x_set(self
.this
,value
)
58 miscc
.wxRealPoint_y_set(self
.this
,value
)
60 self
.__dict
__[name
] = value
61 def __getattr__(self
,name
):
63 return miscc
.wxRealPoint_x_get(self
.this
)
65 return miscc
.wxRealPoint_y_get(self
.this
)
66 raise AttributeError,name
68 return "<C wxRealPoint instance>"
69 class wxRealPoint(wxRealPointPtr
):
70 def __init__(self
,*args
) :
71 self
.this
= apply(miscc
.new_wxRealPoint
,()+args
)
78 def __init__(self
,this
):
82 if self
.thisown
== 1 :
83 miscc
.delete_wxPoint(self
.this
)
84 def Set(self
,arg0
,arg1
):
85 val
= miscc
.wxPoint_Set(self
.this
,arg0
,arg1
)
88 val
= miscc
.wxPoint___str__(self
.this
)
90 def __setattr__(self
,name
,value
):
92 miscc
.wxPoint_x_set(self
.this
,value
)
95 miscc
.wxPoint_y_set(self
.this
,value
)
97 self
.__dict
__[name
] = value
98 def __getattr__(self
,name
):
100 return miscc
.wxPoint_x_get(self
.this
)
102 return miscc
.wxPoint_y_get(self
.this
)
103 raise AttributeError,name
105 return "<C wxPoint instance>"
106 class wxPoint(wxPointPtr
):
107 def __init__(self
,*args
) :
108 self
.this
= apply(miscc
.new_wxPoint
,()+args
)
115 def __init__(self
,this
):
119 if self
.thisown
== 1 :
120 miscc
.delete_wxRect(self
.this
)
122 val
= miscc
.wxRect_GetX(self
.this
)
125 val
= miscc
.wxRect_SetX(self
.this
,arg0
)
128 val
= miscc
.wxRect_GetY(self
.this
)
131 val
= miscc
.wxRect_SetY(self
.this
,arg0
)
134 val
= miscc
.wxRect_GetWidth(self
.this
)
136 def SetWidth(self
,arg0
):
137 val
= miscc
.wxRect_SetWidth(self
.this
,arg0
)
140 val
= miscc
.wxRect_GetHeight(self
.this
)
142 def SetHeight(self
,arg0
):
143 val
= miscc
.wxRect_SetHeight(self
.this
,arg0
)
145 def GetPosition(self
):
146 val
= miscc
.wxRect_GetPosition(self
.this
)
147 val
= wxPointPtr(val
)
151 val
= miscc
.wxRect_GetSize(self
.this
)
156 val
= miscc
.wxRect_GetLeft(self
.this
)
159 val
= miscc
.wxRect_GetTop(self
.this
)
162 val
= miscc
.wxRect_GetBottom(self
.this
)
165 val
= miscc
.wxRect_GetRight(self
.this
)
167 def __setattr__(self
,name
,value
):
169 miscc
.wxRect_x_set(self
.this
,value
)
172 miscc
.wxRect_y_set(self
.this
,value
)
175 miscc
.wxRect_width_set(self
.this
,value
)
177 if name
== "height" :
178 miscc
.wxRect_height_set(self
.this
,value
)
180 self
.__dict
__[name
] = value
181 def __getattr__(self
,name
):
183 return miscc
.wxRect_x_get(self
.this
)
185 return miscc
.wxRect_y_get(self
.this
)
187 return miscc
.wxRect_width_get(self
.this
)
188 if name
== "height" :
189 return miscc
.wxRect_height_get(self
.this
)
190 raise AttributeError,name
192 return "<C wxRect instance>"
193 class wxRect(wxRectPtr
):
194 def __init__(self
,*args
) :
195 self
.this
= apply(miscc
.new_wxRect
,()+args
)
202 def __init__(self
,this
):
206 if self
.thisown
== 1 :
207 miscc
.delete_wxPyTimer(self
.this
)
209 val
= miscc
.wxPyTimer_Interval(self
.this
)
211 def Start(self
,*args
):
212 val
= apply(miscc
.wxPyTimer_Start
,(self
.this
,)+args
)
215 val
= miscc
.wxPyTimer_Stop(self
.this
)
218 return "<C wxPyTimer instance>"
219 class wxPyTimer(wxPyTimerPtr
):
220 def __init__(self
,arg0
) :
221 self
.this
= miscc
.new_wxPyTimer(arg0
)
227 class wxIndividualLayoutConstraintPtr
:
228 def __init__(self
,this
):
231 def Above(self
,arg0
,*args
):
232 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
.this
,arg0
.this
,)+args
)
234 def Absolute(self
,arg0
):
235 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
.this
,arg0
)
238 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
.this
)
240 def Below(self
,arg0
,*args
):
241 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
.this
,arg0
.this
,)+args
)
243 def Unconstrained(self
):
244 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
.this
)
246 def LeftOf(self
,arg0
,*args
):
247 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
.this
,arg0
.this
,)+args
)
249 def PercentOf(self
,arg0
,arg1
,arg2
):
250 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
.this
,arg0
.this
,arg1
,arg2
)
252 def RightOf(self
,arg0
,*args
):
253 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
.this
,arg0
.this
,)+args
)
255 def SameAs(self
,arg0
,arg1
,*args
):
256 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
.this
,arg0
.this
,arg1
,)+args
)
258 def Set(self
,arg0
,arg1
,arg2
,*args
):
259 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
.this
,arg0
,arg1
.this
,arg2
,)+args
)
262 return "<C wxIndividualLayoutConstraint instance>"
263 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
264 def __init__(self
,this
):
270 class wxLayoutConstraintsPtr
:
271 def __init__(self
,this
):
274 def __setattr__(self
,name
,value
):
275 if name
== "bottom" :
276 miscc
.wxLayoutConstraints_bottom_set(self
.this
,value
.this
)
278 if name
== "centreX" :
279 miscc
.wxLayoutConstraints_centreX_set(self
.this
,value
.this
)
281 if name
== "centreY" :
282 miscc
.wxLayoutConstraints_centreY_set(self
.this
,value
.this
)
284 if name
== "height" :
285 miscc
.wxLayoutConstraints_height_set(self
.this
,value
.this
)
288 miscc
.wxLayoutConstraints_left_set(self
.this
,value
.this
)
291 miscc
.wxLayoutConstraints_right_set(self
.this
,value
.this
)
294 miscc
.wxLayoutConstraints_top_set(self
.this
,value
.this
)
297 miscc
.wxLayoutConstraints_width_set(self
.this
,value
.this
)
299 self
.__dict
__[name
] = value
300 def __getattr__(self
,name
):
301 if name
== "bottom" :
302 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
.this
))
303 if name
== "centreX" :
304 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
.this
))
305 if name
== "centreY" :
306 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
.this
))
307 if name
== "height" :
308 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
.this
))
310 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
.this
))
312 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
.this
))
314 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
.this
))
316 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
.this
))
317 raise AttributeError,name
319 return "<C wxLayoutConstraints instance>"
320 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
322 self
.this
= miscc
.new_wxLayoutConstraints()
329 def __init__(self
,this
):
333 if self
.thisown
== 1 :
334 miscc
.delete_wxRegion(self
.this
)
336 val
= miscc
.wxRegion_Clear(self
.this
)
338 def Contains(self
,arg0
,arg1
):
339 val
= miscc
.wxRegion_Contains(self
.this
,arg0
,arg1
)
341 def ContainsPoint(self
,arg0
):
342 val
= miscc
.wxRegion_ContainsPoint(self
.this
,arg0
.this
)
344 def ContainsRect(self
,arg0
):
345 val
= miscc
.wxRegion_ContainsRect(self
.this
,arg0
.this
)
348 val
= miscc
.wxRegion_GetBox(self
.this
)
352 def Intersect(self
,arg0
):
353 val
= miscc
.wxRegion_Intersect(self
.this
,arg0
.this
)
355 def Subtract(self
,arg0
):
356 val
= miscc
.wxRegion_Subtract(self
.this
,arg0
.this
)
358 def Union(self
,arg0
):
359 val
= miscc
.wxRegion_Union(self
.this
,arg0
.this
)
362 val
= miscc
.wxRegion_Xor(self
.this
,arg0
.this
)
365 return "<C wxRegion instance>"
366 class wxRegion(wxRegionPtr
):
368 self
.this
= miscc
.new_wxRegion()
374 class wxRegionIteratorPtr
:
375 def __init__(self
,this
):
379 if self
.thisown
== 1 :
380 miscc
.delete_wxRegionIterator(self
.this
)
382 val
= miscc
.wxRegionIterator_GetX(self
.this
)
385 val
= miscc
.wxRegionIterator_GetY(self
.this
)
388 val
= miscc
.wxRegionIterator_GetW(self
.this
)
391 val
= miscc
.wxRegionIterator_GetWidth(self
.this
)
394 val
= miscc
.wxRegionIterator_GetH(self
.this
)
397 val
= miscc
.wxRegionIterator_GetHeight(self
.this
)
400 val
= miscc
.wxRegionIterator_GetRect(self
.this
)
405 val
= miscc
.wxRegionIterator_HaveRects(self
.this
)
408 val
= miscc
.wxRegionIterator_Reset(self
.this
)
411 val
= miscc
.wxRegionIterator_Next(self
.this
)
414 return "<C wxRegionIterator instance>"
415 class wxRegionIterator(wxRegionIteratorPtr
):
416 def __init__(self
,arg0
) :
417 self
.this
= miscc
.new_wxRegionIterator(arg0
.this
)
423 class wxAcceleratorEntryPtr
:
424 def __init__(self
,this
):
427 def Set(self
,arg0
,arg1
,arg2
):
428 val
= miscc
.wxAcceleratorEntry_Set(self
.this
,arg0
,arg1
,arg2
)
431 val
= miscc
.wxAcceleratorEntry_GetFlags(self
.this
)
433 def GetKeyCode(self
):
434 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
.this
)
436 def GetCommand(self
):
437 val
= miscc
.wxAcceleratorEntry_GetCommand(self
.this
)
440 return "<C wxAcceleratorEntry instance>"
441 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
442 def __init__(self
,*args
) :
443 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,()+args
)
449 class wxAcceleratorTablePtr
:
450 def __init__(self
,this
):
454 return "<C wxAcceleratorTable instance>"
455 class wxAcceleratorTable(wxAcceleratorTablePtr
):
456 def __init__(self
,arg0
) :
457 self
.this
= miscc
.new_wxAcceleratorTable(arg0
.this
)
465 #-------------- FUNCTION WRAPPERS ------------------
467 def wxFileSelector(arg0
,*args
):
468 argl
= map(None,args
)
469 try: argl
[5] = argl
[5].this
472 val
= apply(miscc
.wxFileSelector
,(arg0
,)+args
)
475 def wxGetTextFromUser(arg0
,*args
):
476 argl
= map(None,args
)
477 try: argl
[2] = argl
[2].this
480 val
= apply(miscc
.wxGetTextFromUser
,(arg0
,)+args
)
483 def wxGetSingleChoice(arg0
,arg1
,arg2
,*args
):
484 argl
= map(None,args
)
485 try: argl
[0] = argl
[0].this
488 val
= apply(miscc
.wxGetSingleChoice
,(arg0
,arg1
,arg2
,)+args
)
491 def wxGetSingleChoiceIndex(arg0
,arg1
,arg2
,*args
):
492 argl
= map(None,args
)
493 try: argl
[0] = argl
[0].this
496 val
= apply(miscc
.wxGetSingleChoiceIndex
,(arg0
,arg1
,arg2
,)+args
)
499 def wxMessageBox(arg0
,*args
):
500 argl
= map(None,args
)
501 try: argl
[2] = argl
[2].this
504 val
= apply(miscc
.wxMessageBox
,(arg0
,)+args
)
507 wxColourDisplay
= miscc
.wxColourDisplay
509 wxDisplayDepth
= miscc
.wxDisplayDepth
511 def wxSetCursor(arg0
):
512 val
= miscc
.wxSetCursor(arg0
.this
)
517 RegisterId
= miscc
.RegisterId
519 def wxBeginBusyCursor(*args
):
520 argl
= map(None,args
)
521 try: argl
[0] = argl
[0].this
524 val
= apply(miscc
.wxBeginBusyCursor
,()+args
)
527 wxBell
= miscc
.wxBell
529 wxDisplaySize
= miscc
.wxDisplaySize
531 wxEndBusyCursor
= miscc
.wxEndBusyCursor
533 wxExecute
= miscc
.wxExecute
535 def wxFindWindowByLabel(arg0
,*args
):
536 argl
= map(None,args
)
537 try: argl
[0] = argl
[0].this
540 val
= apply(miscc
.wxFindWindowByLabel
,(arg0
,)+args
)
541 val
= wxWindowPtr(val
)
544 def wxFindWindowByName(arg0
,*args
):
545 argl
= map(None,args
)
546 try: argl
[0] = argl
[0].this
549 val
= apply(miscc
.wxFindWindowByName
,(arg0
,)+args
)
550 val
= wxWindowPtr(val
)
553 wxGetMousePosition
= miscc
.wxGetMousePosition
555 wxIsBusy
= miscc
.wxIsBusy
559 wxYield
= miscc
.wxYield
561 wxGetResource
= miscc
.wxGetResource
563 wxResourceAddIdentifier
= miscc
.wxResourceAddIdentifier
565 wxResourceClear
= miscc
.wxResourceClear
567 def wxResourceCreateBitmap(arg0
):
568 val
= miscc
.wxResourceCreateBitmap(arg0
)
569 val
= wxBitmapPtr(val
)
573 def wxResourceCreateIcon(arg0
):
574 val
= miscc
.wxResourceCreateIcon(arg0
)
579 def wxResourceCreateMenuBar(arg0
):
580 val
= miscc
.wxResourceCreateMenuBar(arg0
)
581 val
= wxMenuBarPtr(val
)
584 wxResourceGetIdentifier
= miscc
.wxResourceGetIdentifier
586 wxResourceParseData
= miscc
.wxResourceParseData
588 wxResourceParseFile
= miscc
.wxResourceParseFile
590 wxResourceParseString
= miscc
.wxResourceParseString
594 #-------------- VARIABLE WRAPPERS ------------------
596 wxLeft
= miscc
.wxLeft
598 wxRight
= miscc
.wxRight
599 wxBottom
= miscc
.wxBottom
600 wxWidth
= miscc
.wxWidth
601 wxHeight
= miscc
.wxHeight
602 wxCentre
= miscc
.wxCentre
603 wxCenter
= miscc
.wxCenter
604 wxCentreX
= miscc
.wxCentreX
605 wxCentreY
= miscc
.wxCentreY
606 wxUnconstrained
= miscc
.wxUnconstrained
607 wxAsIs
= miscc
.wxAsIs
608 wxPercentOf
= miscc
.wxPercentOf
609 wxAbove
= miscc
.wxAbove
610 wxBelow
= miscc
.wxBelow
611 wxLeftOf
= miscc
.wxLeftOf
612 wxRightOf
= miscc
.wxRightOf
613 wxSameAs
= miscc
.wxSameAs
614 wxAbsolute
= miscc
.wxAbsolute
615 wxOutRegion
= miscc
.wxOutRegion
616 wxPartRegion
= miscc
.wxPartRegion
617 wxInRegion
= miscc
.wxInRegion