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_GetX(self
.this
)
17 val
= miscc
.wxSize_GetY(self
.this
)
20 val
= miscc
.wxSize_GetWidth(self
.this
)
23 val
= miscc
.wxSize_GetHeight(self
.this
)
25 def SetWidth(self
,arg0
):
26 val
= miscc
.wxSize_SetWidth(self
.this
,arg0
)
28 def SetHeight(self
,arg0
):
29 val
= miscc
.wxSize_SetHeight(self
.this
,arg0
)
32 val
= miscc
.wxSize_asTuple(self
.this
)
34 def __setattr__(self
,name
,value
):
36 miscc
.wxSize_x_set(self
.this
,value
)
39 miscc
.wxSize_y_set(self
.this
,value
)
42 miscc
.wxSize_width_set(self
.this
,value
)
45 miscc
.wxSize_height_set(self
.this
,value
)
47 self
.__dict
__[name
] = value
48 def __getattr__(self
,name
):
50 return miscc
.wxSize_x_get(self
.this
)
52 return miscc
.wxSize_y_get(self
.this
)
54 return miscc
.wxSize_width_get(self
.this
)
56 return miscc
.wxSize_height_get(self
.this
)
57 raise AttributeError,name
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
)
70 class wxRealPointPtr
:
71 def __init__(self
,this
):
75 if self
.thisown
== 1 :
76 miscc
.delete_wxRealPoint(self
.this
)
77 def __setattr__(self
,name
,value
):
79 miscc
.wxRealPoint_x_set(self
.this
,value
)
82 miscc
.wxRealPoint_y_set(self
.this
,value
)
84 self
.__dict
__[name
] = value
85 def __getattr__(self
,name
):
87 return miscc
.wxRealPoint_x_get(self
.this
)
89 return miscc
.wxRealPoint_y_get(self
.this
)
90 raise AttributeError,name
92 return "<C wxRealPoint instance>"
93 class wxRealPoint(wxRealPointPtr
):
94 def __init__(self
,*args
) :
95 self
.this
= apply(miscc
.new_wxRealPoint
,()+args
)
102 def __init__(self
,this
):
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
)
112 val
= miscc
.wxPoint_asTuple(self
.this
)
114 def __setattr__(self
,name
,value
):
116 miscc
.wxPoint_x_set(self
.this
,value
)
119 miscc
.wxPoint_y_set(self
.this
,value
)
121 self
.__dict
__[name
] = value
122 def __getattr__(self
,name
):
124 return miscc
.wxPoint_x_get(self
.this
)
126 return miscc
.wxPoint_y_get(self
.this
)
127 raise AttributeError,name
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
)
141 def __init__(self
,this
):
145 if self
.thisown
== 1 :
146 miscc
.delete_wxRect(self
.this
)
148 val
= miscc
.wxRect_GetX(self
.this
)
151 val
= miscc
.wxRect_SetX(self
.this
,arg0
)
154 val
= miscc
.wxRect_GetY(self
.this
)
157 val
= miscc
.wxRect_SetY(self
.this
,arg0
)
160 val
= miscc
.wxRect_GetWidth(self
.this
)
162 def SetWidth(self
,arg0
):
163 val
= miscc
.wxRect_SetWidth(self
.this
,arg0
)
166 val
= miscc
.wxRect_GetHeight(self
.this
)
168 def SetHeight(self
,arg0
):
169 val
= miscc
.wxRect_SetHeight(self
.this
,arg0
)
171 def GetPosition(self
):
172 val
= miscc
.wxRect_GetPosition(self
.this
)
173 val
= wxPointPtr(val
)
177 val
= miscc
.wxRect_GetSize(self
.this
)
182 val
= miscc
.wxRect_GetLeft(self
.this
)
185 val
= miscc
.wxRect_GetTop(self
.this
)
188 val
= miscc
.wxRect_GetBottom(self
.this
)
191 val
= miscc
.wxRect_GetRight(self
.this
)
194 val
= miscc
.wxRect_asTuple(self
.this
)
196 def __setattr__(self
,name
,value
):
198 miscc
.wxRect_x_set(self
.this
,value
)
201 miscc
.wxRect_y_set(self
.this
,value
)
204 miscc
.wxRect_width_set(self
.this
,value
)
206 if name
== "height" :
207 miscc
.wxRect_height_set(self
.this
,value
)
209 self
.__dict
__[name
] = value
210 def __getattr__(self
,name
):
212 return miscc
.wxRect_x_get(self
.this
)
214 return miscc
.wxRect_y_get(self
.this
)
216 return miscc
.wxRect_width_get(self
.this
)
217 if name
== "height" :
218 return miscc
.wxRect_height_get(self
.this
)
219 raise AttributeError,name
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
)
233 def __init__(self
,this
):
237 if self
.thisown
== 1 :
238 miscc
.delete_wxPyTimer(self
.this
)
240 val
= miscc
.wxPyTimer_Interval(self
.this
)
242 def Start(self
,*args
):
243 val
= apply(miscc
.wxPyTimer_Start
,(self
.this
,)+args
)
246 val
= miscc
.wxPyTimer_Stop(self
.this
)
249 return "<C wxPyTimer instance>"
250 class wxPyTimer(wxPyTimerPtr
):
251 def __init__(self
,arg0
) :
252 self
.this
= miscc
.new_wxPyTimer(arg0
)
258 class wxIndividualLayoutConstraintPtr
:
259 def __init__(self
,this
):
262 def Above(self
,arg0
,*args
):
263 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
.this
,arg0
.this
,)+args
)
265 def Absolute(self
,arg0
):
266 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
.this
,arg0
)
269 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
.this
)
271 def Below(self
,arg0
,*args
):
272 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
.this
,arg0
.this
,)+args
)
274 def Unconstrained(self
):
275 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
.this
)
277 def LeftOf(self
,arg0
,*args
):
278 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
.this
,arg0
.this
,)+args
)
280 def PercentOf(self
,arg0
,arg1
,arg2
):
281 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
.this
,arg0
.this
,arg1
,arg2
)
283 def RightOf(self
,arg0
,*args
):
284 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
.this
,arg0
.this
,)+args
)
286 def SameAs(self
,arg0
,arg1
,*args
):
287 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
.this
,arg0
.this
,arg1
,)+args
)
289 def Set(self
,arg0
,arg1
,arg2
,*args
):
290 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
.this
,arg0
,arg1
.this
,arg2
,)+args
)
293 return "<C wxIndividualLayoutConstraint instance>"
294 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
295 def __init__(self
,this
):
301 class wxLayoutConstraintsPtr
:
302 def __init__(self
,this
):
305 def __setattr__(self
,name
,value
):
306 if name
== "bottom" :
307 miscc
.wxLayoutConstraints_bottom_set(self
.this
,value
.this
)
309 if name
== "centreX" :
310 miscc
.wxLayoutConstraints_centreX_set(self
.this
,value
.this
)
312 if name
== "centreY" :
313 miscc
.wxLayoutConstraints_centreY_set(self
.this
,value
.this
)
315 if name
== "height" :
316 miscc
.wxLayoutConstraints_height_set(self
.this
,value
.this
)
319 miscc
.wxLayoutConstraints_left_set(self
.this
,value
.this
)
322 miscc
.wxLayoutConstraints_right_set(self
.this
,value
.this
)
325 miscc
.wxLayoutConstraints_top_set(self
.this
,value
.this
)
328 miscc
.wxLayoutConstraints_width_set(self
.this
,value
.this
)
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
))
341 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
.this
))
343 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
.this
))
345 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
.this
))
347 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
.this
))
348 raise AttributeError,name
350 return "<C wxLayoutConstraints instance>"
351 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
353 self
.this
= miscc
.new_wxLayoutConstraints()
360 def __init__(self
,this
):
364 if self
.thisown
== 1 :
365 miscc
.delete_wxRegion(self
.this
)
367 val
= miscc
.wxRegion_Clear(self
.this
)
369 def Contains(self
,arg0
,arg1
):
370 val
= miscc
.wxRegion_Contains(self
.this
,arg0
,arg1
)
372 def ContainsPoint(self
,arg0
):
373 val
= miscc
.wxRegion_ContainsPoint(self
.this
,arg0
.this
)
375 def ContainsRect(self
,arg0
):
376 val
= miscc
.wxRegion_ContainsRect(self
.this
,arg0
.this
)
379 val
= miscc
.wxRegion_GetBox(self
.this
)
383 def Intersect(self
,arg0
):
384 val
= miscc
.wxRegion_Intersect(self
.this
,arg0
.this
)
387 val
= miscc
.wxRegion_IsEmpty(self
.this
)
389 def Subtract(self
,arg0
):
390 val
= miscc
.wxRegion_Subtract(self
.this
,arg0
.this
)
392 def Union(self
,arg0
):
393 val
= miscc
.wxRegion_Union(self
.this
,arg0
.this
)
396 val
= miscc
.wxRegion_Xor(self
.this
,arg0
.this
)
399 return "<C wxRegion instance>"
400 class wxRegion(wxRegionPtr
):
402 self
.this
= miscc
.new_wxRegion()
408 class wxRegionIteratorPtr
:
409 def __init__(self
,this
):
413 if self
.thisown
== 1 :
414 miscc
.delete_wxRegionIterator(self
.this
)
416 val
= miscc
.wxRegionIterator_GetX(self
.this
)
419 val
= miscc
.wxRegionIterator_GetY(self
.this
)
422 val
= miscc
.wxRegionIterator_GetW(self
.this
)
425 val
= miscc
.wxRegionIterator_GetWidth(self
.this
)
428 val
= miscc
.wxRegionIterator_GetH(self
.this
)
431 val
= miscc
.wxRegionIterator_GetHeight(self
.this
)
434 val
= miscc
.wxRegionIterator_GetRect(self
.this
)
439 val
= miscc
.wxRegionIterator_HaveRects(self
.this
)
442 val
= miscc
.wxRegionIterator_Reset(self
.this
)
445 val
= miscc
.wxRegionIterator_Next(self
.this
)
448 return "<C wxRegionIterator instance>"
449 class wxRegionIterator(wxRegionIteratorPtr
):
450 def __init__(self
,arg0
) :
451 self
.this
= miscc
.new_wxRegionIterator(arg0
.this
)
457 class wxAcceleratorEntryPtr
:
458 def __init__(self
,this
):
461 def Set(self
,arg0
,arg1
,arg2
):
462 val
= miscc
.wxAcceleratorEntry_Set(self
.this
,arg0
,arg1
,arg2
)
465 val
= miscc
.wxAcceleratorEntry_GetFlags(self
.this
)
467 def GetKeyCode(self
):
468 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
.this
)
470 def GetCommand(self
):
471 val
= miscc
.wxAcceleratorEntry_GetCommand(self
.this
)
474 return "<C wxAcceleratorEntry instance>"
475 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
476 def __init__(self
,*args
) :
477 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,()+args
)
483 class wxAcceleratorTablePtr
:
484 def __init__(self
,this
):
488 return "<C wxAcceleratorTable instance>"
489 class wxAcceleratorTable(wxAcceleratorTablePtr
):
490 def __init__(self
,arg0
) :
491 self
.this
= miscc
.new_wxAcceleratorTable(arg0
.this
)
499 #-------------- FUNCTION WRAPPERS ------------------
501 def wxFileSelector(arg0
,*args
):
502 argl
= map(None,args
)
503 try: argl
[5] = argl
[5].this
506 val
= apply(miscc
.wxFileSelector
,(arg0
,)+args
)
509 def wxGetTextFromUser(arg0
,*args
):
510 argl
= map(None,args
)
511 try: argl
[2] = argl
[2].this
514 val
= apply(miscc
.wxGetTextFromUser
,(arg0
,)+args
)
517 def wxGetSingleChoice(arg0
,arg1
,arg2
,*args
):
518 argl
= map(None,args
)
519 try: argl
[0] = argl
[0].this
522 val
= apply(miscc
.wxGetSingleChoice
,(arg0
,arg1
,arg2
,)+args
)
525 def wxGetSingleChoiceIndex(arg0
,arg1
,arg2
,*args
):
526 argl
= map(None,args
)
527 try: argl
[0] = argl
[0].this
530 val
= apply(miscc
.wxGetSingleChoiceIndex
,(arg0
,arg1
,arg2
,)+args
)
533 def wxMessageBox(arg0
,*args
):
534 argl
= map(None,args
)
535 try: argl
[2] = argl
[2].this
538 val
= apply(miscc
.wxMessageBox
,(arg0
,)+args
)
541 wxColourDisplay
= miscc
.wxColourDisplay
543 wxDisplayDepth
= miscc
.wxDisplayDepth
545 def wxSetCursor(arg0
):
546 val
= miscc
.wxSetCursor(arg0
.this
)
549 wxNewId
= miscc
.wxNewId
551 wxRegisterId
= miscc
.wxRegisterId
555 RegisterId
= miscc
.RegisterId
557 def wxBeginBusyCursor(*args
):
558 argl
= map(None,args
)
559 try: argl
[0] = argl
[0].this
562 val
= apply(miscc
.wxBeginBusyCursor
,()+args
)
565 wxBell
= miscc
.wxBell
567 wxDisplaySize
= miscc
.wxDisplaySize
569 wxEndBusyCursor
= miscc
.wxEndBusyCursor
571 wxExecute
= miscc
.wxExecute
573 def wxGetActiveWindow():
574 val
= miscc
.wxGetActiveWindow()
575 val
= wxWindowPtr(val
)
578 wxGetElapsedTime
= miscc
.wxGetElapsedTime
580 wxGetFreeMemory
= miscc
.wxGetFreeMemory
582 wxGetMousePosition
= miscc
.wxGetMousePosition
584 wxIsBusy
= miscc
.wxIsBusy
588 wxShell
= miscc
.wxShell
590 wxStartTimer
= miscc
.wxStartTimer
592 wxGetOsVersion
= miscc
.wxGetOsVersion
594 wxSleep
= miscc
.wxSleep
596 wxYield
= miscc
.wxYield
598 wxSafeYield
= miscc
.wxSafeYield
600 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
602 wxGetResource
= miscc
.wxGetResource
604 wxResourceAddIdentifier
= miscc
.wxResourceAddIdentifier
606 wxResourceClear
= miscc
.wxResourceClear
608 def wxResourceCreateBitmap(arg0
):
609 val
= miscc
.wxResourceCreateBitmap(arg0
)
610 val
= wxBitmapPtr(val
)
614 def wxResourceCreateIcon(arg0
):
615 val
= miscc
.wxResourceCreateIcon(arg0
)
620 def wxResourceCreateMenuBar(arg0
):
621 val
= miscc
.wxResourceCreateMenuBar(arg0
)
622 val
= wxMenuBarPtr(val
)
625 wxResourceGetIdentifier
= miscc
.wxResourceGetIdentifier
627 wxResourceParseData
= miscc
.wxResourceParseData
629 wxResourceParseFile
= miscc
.wxResourceParseFile
631 wxResourceParseString
= miscc
.wxResourceParseString
635 #-------------- VARIABLE WRAPPERS ------------------
637 wxLeft
= miscc
.wxLeft
639 wxRight
= miscc
.wxRight
640 wxBottom
= miscc
.wxBottom
641 wxWidth
= miscc
.wxWidth
642 wxHeight
= miscc
.wxHeight
643 wxCentre
= miscc
.wxCentre
644 wxCenter
= miscc
.wxCenter
645 wxCentreX
= miscc
.wxCentreX
646 wxCentreY
= miscc
.wxCentreY
647 wxUnconstrained
= miscc
.wxUnconstrained
648 wxAsIs
= miscc
.wxAsIs
649 wxPercentOf
= miscc
.wxPercentOf
650 wxAbove
= miscc
.wxAbove
651 wxBelow
= miscc
.wxBelow
652 wxLeftOf
= miscc
.wxLeftOf
653 wxRightOf
= miscc
.wxRightOf
654 wxSameAs
= miscc
.wxSameAs
655 wxAbsolute
= miscc
.wxAbsolute
656 wxOutRegion
= miscc
.wxOutRegion
657 wxPartRegion
= miscc
.wxPartRegion
658 wxInRegion
= miscc
.wxInRegion