1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
7 def GetClassName(self
, *_args
, **_kwargs
):
8 val
= apply(miscc
.wxObject_GetClassName
,(self
,) + _args
, _kwargs
)
10 def Destroy(self
, *_args
, **_kwargs
):
11 val
= apply(miscc
.wxObject_Destroy
,(self
,) + _args
, _kwargs
)
14 return "<C wxObject instance at %s>" % (self
.this
,)
15 class wxObject(wxObjectPtr
):
16 def __init__(self
,this
):
23 def __init__(self
,this
):
26 def __del__(self
,miscc
=miscc
):
27 if self
.thisown
== 1 :
28 miscc
.delete_wxSize(self
)
29 def Set(self
, *_args
, **_kwargs
):
30 val
= apply(miscc
.wxSize_Set
,(self
,) + _args
, _kwargs
)
32 def GetX(self
, *_args
, **_kwargs
):
33 val
= apply(miscc
.wxSize_GetX
,(self
,) + _args
, _kwargs
)
35 def GetY(self
, *_args
, **_kwargs
):
36 val
= apply(miscc
.wxSize_GetY
,(self
,) + _args
, _kwargs
)
38 def GetWidth(self
, *_args
, **_kwargs
):
39 val
= apply(miscc
.wxSize_GetWidth
,(self
,) + _args
, _kwargs
)
41 def GetHeight(self
, *_args
, **_kwargs
):
42 val
= apply(miscc
.wxSize_GetHeight
,(self
,) + _args
, _kwargs
)
44 def SetWidth(self
, *_args
, **_kwargs
):
45 val
= apply(miscc
.wxSize_SetWidth
,(self
,) + _args
, _kwargs
)
47 def SetHeight(self
, *_args
, **_kwargs
):
48 val
= apply(miscc
.wxSize_SetHeight
,(self
,) + _args
, _kwargs
)
50 def asTuple(self
, *_args
, **_kwargs
):
51 val
= apply(miscc
.wxSize_asTuple
,(self
,) + _args
, _kwargs
)
53 def __setattr__(self
,name
,value
):
55 miscc
.wxSize_x_set(self
,value
)
58 miscc
.wxSize_y_set(self
,value
)
61 miscc
.wxSize_width_set(self
,value
)
64 miscc
.wxSize_height_set(self
,value
)
66 self
.__dict
__[name
] = value
67 def __getattr__(self
,name
):
69 return miscc
.wxSize_x_get(self
)
71 return miscc
.wxSize_y_get(self
)
73 return miscc
.wxSize_width_get(self
)
75 return miscc
.wxSize_height_get(self
)
76 raise AttributeError,name
78 return "<C wxSize instance at %s>" % (self
.this
,)
80 def __str__(self
): return str(self
.asTuple())
81 def __repr__(self
): return str(self
.asTuple())
82 def __len__(self
): return len(self
.asTuple())
83 def __getitem__(self
, index
): return self
.asTuple()[index
]
84 def __setitem__(self
, index
, val
):
85 if index
== 0: self
.width
= val
86 elif index
== 1: self
.height
= val
87 else: raise IndexError
89 class wxSize(wxSizePtr
):
90 def __init__(self
,*_args
,**_kwargs
):
91 self
.this
= apply(miscc
.new_wxSize
,_args
,_kwargs
)
97 class wxRealPointPtr
:
98 def __init__(self
,this
):
101 def __del__(self
,miscc
=miscc
):
102 if self
.thisown
== 1 :
103 miscc
.delete_wxRealPoint(self
)
104 def Set(self
, *_args
, **_kwargs
):
105 val
= apply(miscc
.wxRealPoint_Set
,(self
,) + _args
, _kwargs
)
107 def asTuple(self
, *_args
, **_kwargs
):
108 val
= apply(miscc
.wxRealPoint_asTuple
,(self
,) + _args
, _kwargs
)
110 def __add__(self
, *_args
, **_kwargs
):
111 val
= apply(miscc
.wxRealPoint___add__
,(self
,) + _args
, _kwargs
)
112 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
114 def __sub__(self
, *_args
, **_kwargs
):
115 val
= apply(miscc
.wxRealPoint___sub__
,(self
,) + _args
, _kwargs
)
116 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
118 def __cmp__(self
, *_args
, **_kwargs
):
119 val
= apply(miscc
.wxRealPoint___cmp__
,(self
,) + _args
, _kwargs
)
121 def __setattr__(self
,name
,value
):
123 miscc
.wxRealPoint_x_set(self
,value
)
126 miscc
.wxRealPoint_y_set(self
,value
)
128 self
.__dict
__[name
] = value
129 def __getattr__(self
,name
):
131 return miscc
.wxRealPoint_x_get(self
)
133 return miscc
.wxRealPoint_y_get(self
)
134 raise AttributeError,name
136 return "<C wxRealPoint instance at %s>" % (self
.this
,)
138 def __str__(self
): return str(self
.asTuple())
139 def __repr__(self
): return str(self
.asTuple())
140 def __len__(self
): return len(self
.asTuple())
141 def __getitem__(self
, index
): return self
.asTuple()[index
]
142 def __setitem__(self
, index
, val
):
143 if index
== 0: self
.width
= val
144 elif index
== 1: self
.height
= val
145 else: raise IndexError
147 class wxRealPoint(wxRealPointPtr
):
148 def __init__(self
,*_args
,**_kwargs
):
149 self
.this
= apply(miscc
.new_wxRealPoint
,_args
,_kwargs
)
156 def __init__(self
,this
):
159 def __del__(self
,miscc
=miscc
):
160 if self
.thisown
== 1 :
161 miscc
.delete_wxPoint(self
)
162 def Set(self
, *_args
, **_kwargs
):
163 val
= apply(miscc
.wxPoint_Set
,(self
,) + _args
, _kwargs
)
165 def asTuple(self
, *_args
, **_kwargs
):
166 val
= apply(miscc
.wxPoint_asTuple
,(self
,) + _args
, _kwargs
)
168 def __add__(self
, *_args
, **_kwargs
):
169 val
= apply(miscc
.wxPoint___add__
,(self
,) + _args
, _kwargs
)
170 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
172 def __sub__(self
, *_args
, **_kwargs
):
173 val
= apply(miscc
.wxPoint___sub__
,(self
,) + _args
, _kwargs
)
174 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
176 def __cmp__(self
, *_args
, **_kwargs
):
177 val
= apply(miscc
.wxPoint___cmp__
,(self
,) + _args
, _kwargs
)
179 def __setattr__(self
,name
,value
):
181 miscc
.wxPoint_x_set(self
,value
)
184 miscc
.wxPoint_y_set(self
,value
)
186 self
.__dict
__[name
] = value
187 def __getattr__(self
,name
):
189 return miscc
.wxPoint_x_get(self
)
191 return miscc
.wxPoint_y_get(self
)
192 raise AttributeError,name
194 return "<C wxPoint instance at %s>" % (self
.this
,)
196 def __str__(self
): return str(self
.asTuple())
197 def __repr__(self
): return str(self
.asTuple())
198 def __len__(self
): return len(self
.asTuple())
199 def __getitem__(self
, index
): return self
.asTuple()[index
]
200 def __setitem__(self
, index
, val
):
201 if index
== 0: self
.x
= val
202 elif index
== 1: self
.y
= val
203 else: raise IndexError
205 class wxPoint(wxPointPtr
):
206 def __init__(self
,*_args
,**_kwargs
):
207 self
.this
= apply(miscc
.new_wxPoint
,_args
,_kwargs
)
214 def __init__(self
,this
):
217 def __del__(self
,miscc
=miscc
):
218 if self
.thisown
== 1 :
219 miscc
.delete_wxRect(self
)
220 def GetX(self
, *_args
, **_kwargs
):
221 val
= apply(miscc
.wxRect_GetX
,(self
,) + _args
, _kwargs
)
223 def SetX(self
, *_args
, **_kwargs
):
224 val
= apply(miscc
.wxRect_SetX
,(self
,) + _args
, _kwargs
)
226 def GetY(self
, *_args
, **_kwargs
):
227 val
= apply(miscc
.wxRect_GetY
,(self
,) + _args
, _kwargs
)
229 def SetY(self
, *_args
, **_kwargs
):
230 val
= apply(miscc
.wxRect_SetY
,(self
,) + _args
, _kwargs
)
232 def GetWidth(self
, *_args
, **_kwargs
):
233 val
= apply(miscc
.wxRect_GetWidth
,(self
,) + _args
, _kwargs
)
235 def SetWidth(self
, *_args
, **_kwargs
):
236 val
= apply(miscc
.wxRect_SetWidth
,(self
,) + _args
, _kwargs
)
238 def GetHeight(self
, *_args
, **_kwargs
):
239 val
= apply(miscc
.wxRect_GetHeight
,(self
,) + _args
, _kwargs
)
241 def SetHeight(self
, *_args
, **_kwargs
):
242 val
= apply(miscc
.wxRect_SetHeight
,(self
,) + _args
, _kwargs
)
244 def GetPosition(self
, *_args
, **_kwargs
):
245 val
= apply(miscc
.wxRect_GetPosition
,(self
,) + _args
, _kwargs
)
246 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
248 def GetSize(self
, *_args
, **_kwargs
):
249 val
= apply(miscc
.wxRect_GetSize
,(self
,) + _args
, _kwargs
)
250 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
252 def GetLeft(self
, *_args
, **_kwargs
):
253 val
= apply(miscc
.wxRect_GetLeft
,(self
,) + _args
, _kwargs
)
255 def GetTop(self
, *_args
, **_kwargs
):
256 val
= apply(miscc
.wxRect_GetTop
,(self
,) + _args
, _kwargs
)
258 def GetBottom(self
, *_args
, **_kwargs
):
259 val
= apply(miscc
.wxRect_GetBottom
,(self
,) + _args
, _kwargs
)
261 def GetRight(self
, *_args
, **_kwargs
):
262 val
= apply(miscc
.wxRect_GetRight
,(self
,) + _args
, _kwargs
)
264 def SetLeft(self
, *_args
, **_kwargs
):
265 val
= apply(miscc
.wxRect_SetLeft
,(self
,) + _args
, _kwargs
)
267 def SetRight(self
, *_args
, **_kwargs
):
268 val
= apply(miscc
.wxRect_SetRight
,(self
,) + _args
, _kwargs
)
270 def SetTop(self
, *_args
, **_kwargs
):
271 val
= apply(miscc
.wxRect_SetTop
,(self
,) + _args
, _kwargs
)
273 def SetBottom(self
, *_args
, **_kwargs
):
274 val
= apply(miscc
.wxRect_SetBottom
,(self
,) + _args
, _kwargs
)
276 def Inflate(self
, *_args
, **_kwargs
):
277 val
= apply(miscc
.wxRect_Inflate
,(self
,) + _args
, _kwargs
)
279 def Inside(self
, *_args
, **_kwargs
):
280 val
= apply(miscc
.wxRect_Inside
,(self
,) + _args
, _kwargs
)
282 def asTuple(self
, *_args
, **_kwargs
):
283 val
= apply(miscc
.wxRect_asTuple
,(self
,) + _args
, _kwargs
)
285 def __add__(self
, *_args
, **_kwargs
):
286 val
= apply(miscc
.wxRect___add__
,(self
,) + _args
, _kwargs
)
287 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
289 def __cmp__(self
, *_args
, **_kwargs
):
290 val
= apply(miscc
.wxRect___cmp__
,(self
,) + _args
, _kwargs
)
292 def __setattr__(self
,name
,value
):
294 miscc
.wxRect_x_set(self
,value
)
297 miscc
.wxRect_y_set(self
,value
)
300 miscc
.wxRect_width_set(self
,value
)
302 if name
== "height" :
303 miscc
.wxRect_height_set(self
,value
)
305 self
.__dict
__[name
] = value
306 def __getattr__(self
,name
):
308 return miscc
.wxRect_x_get(self
)
310 return miscc
.wxRect_y_get(self
)
312 return miscc
.wxRect_width_get(self
)
313 if name
== "height" :
314 return miscc
.wxRect_height_get(self
)
315 raise AttributeError,name
317 return "<C wxRect instance at %s>" % (self
.this
,)
319 def __str__(self
): return str(self
.asTuple())
320 def __repr__(self
): return str(self
.asTuple())
321 def __len__(self
): return len(self
.asTuple())
322 def __getitem__(self
, index
): return self
.asTuple()[index
]
323 def __setitem__(self
, index
, val
):
324 if index
== 0: self
.x
= val
325 elif index
== 1: self
.y
= val
326 elif index
== 2: self
.width
= val
327 elif index
== 3: self
.height
= val
328 else: raise IndexError
330 # override the __getattr__ made by SWIG
331 def __getattr__(self
, name
):
333 'x' : miscc
.wxRect_x_get
,
334 'y' : miscc
.wxRect_y_get
,
335 'width' : miscc
.wxRect_width_get
,
336 'height' : miscc
.wxRect_height_get
,
337 'top' : miscc
.wxRect_GetTop
,
338 'bottom' : miscc
.wxRect_GetBottom
,
339 'left' : miscc
.wxRect_GetLeft
,
340 'right' : miscc
.wxRect_GetRight
,
345 raise AttributeError,name
348 # and also the __setattr__
349 def __setattr__(self
, name
, value
):
351 'x' : miscc
.wxRect_x_set
,
352 'y' : miscc
.wxRect_y_set
,
353 'width' : miscc
.wxRect_width_set
,
354 'height' : miscc
.wxRect_height_set
,
355 'top' : miscc
.wxRect_SetTop
,
356 'bottom' : miscc
.wxRect_SetBottom
,
357 'left' : miscc
.wxRect_SetLeft
,
358 'right' : miscc
.wxRect_SetRight
,
363 self
.__dict
__[name
] = value
367 class wxRect(wxRectPtr
):
368 def __init__(self
,*_args
,**_kwargs
):
369 self
.this
= apply(miscc
.new_wxRect
,_args
,_kwargs
)
375 class wxIndividualLayoutConstraintPtr(wxObjectPtr
):
376 def __init__(self
,this
):
379 def Above(self
, *_args
, **_kwargs
):
380 val
= apply(miscc
.wxIndividualLayoutConstraint_Above
,(self
,) + _args
, _kwargs
)
382 def Absolute(self
, *_args
, **_kwargs
):
383 val
= apply(miscc
.wxIndividualLayoutConstraint_Absolute
,(self
,) + _args
, _kwargs
)
385 def AsIs(self
, *_args
, **_kwargs
):
386 val
= apply(miscc
.wxIndividualLayoutConstraint_AsIs
,(self
,) + _args
, _kwargs
)
388 def Below(self
, *_args
, **_kwargs
):
389 val
= apply(miscc
.wxIndividualLayoutConstraint_Below
,(self
,) + _args
, _kwargs
)
391 def Unconstrained(self
, *_args
, **_kwargs
):
392 val
= apply(miscc
.wxIndividualLayoutConstraint_Unconstrained
,(self
,) + _args
, _kwargs
)
394 def LeftOf(self
, *_args
, **_kwargs
):
395 val
= apply(miscc
.wxIndividualLayoutConstraint_LeftOf
,(self
,) + _args
, _kwargs
)
397 def PercentOf(self
, *_args
, **_kwargs
):
398 val
= apply(miscc
.wxIndividualLayoutConstraint_PercentOf
,(self
,) + _args
, _kwargs
)
400 def RightOf(self
, *_args
, **_kwargs
):
401 val
= apply(miscc
.wxIndividualLayoutConstraint_RightOf
,(self
,) + _args
, _kwargs
)
403 def SameAs(self
, *_args
, **_kwargs
):
404 val
= apply(miscc
.wxIndividualLayoutConstraint_SameAs
,(self
,) + _args
, _kwargs
)
406 def Set(self
, *_args
, **_kwargs
):
407 val
= apply(miscc
.wxIndividualLayoutConstraint_Set
,(self
,) + _args
, _kwargs
)
410 return "<C wxIndividualLayoutConstraint instance at %s>" % (self
.this
,)
411 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
412 def __init__(self
,this
):
418 class wxLayoutConstraintsPtr(wxObjectPtr
):
419 def __init__(self
,this
):
422 def __setattr__(self
,name
,value
):
423 if name
== "bottom" :
424 miscc
.wxLayoutConstraints_bottom_set(self
,value
.this
)
426 if name
== "centreX" :
427 miscc
.wxLayoutConstraints_centreX_set(self
,value
.this
)
429 if name
== "centreY" :
430 miscc
.wxLayoutConstraints_centreY_set(self
,value
.this
)
432 if name
== "height" :
433 miscc
.wxLayoutConstraints_height_set(self
,value
.this
)
436 miscc
.wxLayoutConstraints_left_set(self
,value
.this
)
439 miscc
.wxLayoutConstraints_right_set(self
,value
.this
)
442 miscc
.wxLayoutConstraints_top_set(self
,value
.this
)
445 miscc
.wxLayoutConstraints_width_set(self
,value
.this
)
447 self
.__dict
__[name
] = value
448 def __getattr__(self
,name
):
449 if name
== "bottom" :
450 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
))
451 if name
== "centreX" :
452 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
))
453 if name
== "centreY" :
454 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
))
455 if name
== "height" :
456 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
))
458 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
))
460 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
))
462 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
))
464 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
))
465 raise AttributeError,name
467 return "<C wxLayoutConstraints instance at %s>" % (self
.this
,)
468 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
469 def __init__(self
,*_args
,**_kwargs
):
470 self
.this
= apply(miscc
.new_wxLayoutConstraints
,_args
,_kwargs
)
476 class wxAcceleratorEntryPtr
:
477 def __init__(self
,this
):
480 def __del__(self
,miscc
=miscc
):
481 if self
.thisown
== 1 :
482 miscc
.delete_wxAcceleratorEntry(self
)
483 def Set(self
, *_args
, **_kwargs
):
484 val
= apply(miscc
.wxAcceleratorEntry_Set
,(self
,) + _args
, _kwargs
)
486 def GetFlags(self
, *_args
, **_kwargs
):
487 val
= apply(miscc
.wxAcceleratorEntry_GetFlags
,(self
,) + _args
, _kwargs
)
489 def GetKeyCode(self
, *_args
, **_kwargs
):
490 val
= apply(miscc
.wxAcceleratorEntry_GetKeyCode
,(self
,) + _args
, _kwargs
)
492 def GetCommand(self
, *_args
, **_kwargs
):
493 val
= apply(miscc
.wxAcceleratorEntry_GetCommand
,(self
,) + _args
, _kwargs
)
496 return "<C wxAcceleratorEntry instance at %s>" % (self
.this
,)
497 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
498 def __init__(self
,*_args
,**_kwargs
):
499 self
.this
= apply(miscc
.new_wxAcceleratorEntry
,_args
,_kwargs
)
505 class wxAcceleratorTablePtr(wxObjectPtr
):
506 def __init__(self
,this
):
509 def __del__(self
,miscc
=miscc
):
510 if self
.thisown
== 1 :
511 miscc
.delete_wxAcceleratorTable(self
)
513 return "<C wxAcceleratorTable instance at %s>" % (self
.this
,)
514 class wxAcceleratorTable(wxAcceleratorTablePtr
):
515 def __init__(self
,*_args
,**_kwargs
):
516 self
.this
= apply(miscc
.new_wxAcceleratorTable
,_args
,_kwargs
)
522 class wxBusyInfoPtr(wxObjectPtr
):
523 def __init__(self
,this
):
526 def __del__(self
,miscc
=miscc
):
527 if self
.thisown
== 1 :
528 miscc
.delete_wxBusyInfo(self
)
530 return "<C wxBusyInfo instance at %s>" % (self
.this
,)
531 class wxBusyInfo(wxBusyInfoPtr
):
532 def __init__(self
,*_args
,**_kwargs
):
533 self
.this
= apply(miscc
.new_wxBusyInfo
,_args
,_kwargs
)
541 #-------------- FUNCTION WRAPPERS ------------------
543 wxIntersectRect
= miscc
.wxIntersectRect
545 wxNewId
= miscc
.wxNewId
547 wxRegisterId
= miscc
.wxRegisterId
551 RegisterId
= miscc
.RegisterId
553 wxGetCurrentId
= miscc
.wxGetCurrentId
555 wxBell
= miscc
.wxBell
557 wxEndBusyCursor
= miscc
.wxEndBusyCursor
559 wxGetElapsedTime
= miscc
.wxGetElapsedTime
561 wxGetFreeMemory
= miscc
.wxGetFreeMemory
563 wxGetMousePosition
= miscc
.wxGetMousePosition
565 wxIsBusy
= miscc
.wxIsBusy
569 wxShell
= miscc
.wxShell
571 wxStartTimer
= miscc
.wxStartTimer
573 wxGetOsVersion
= miscc
.wxGetOsVersion
575 wxGetOsDescription
= miscc
.wxGetOsDescription
577 wxSleep
= miscc
.wxSleep
579 wxUsleep
= miscc
.wxUsleep
581 wxYield
= miscc
.wxYield
583 wxYieldIfNeeded
= miscc
.wxYieldIfNeeded
585 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
587 wxGetResource
= miscc
.wxGetResource
589 wxStripMenuCodes
= miscc
.wxStripMenuCodes
591 wxGetEmailAddress
= miscc
.wxGetEmailAddress
593 wxGetHostName
= miscc
.wxGetHostName
595 wxGetFullHostName
= miscc
.wxGetFullHostName
597 wxGetUserId
= miscc
.wxGetUserId
599 wxGetUserName
= miscc
.wxGetUserName
601 wxGetHomeDir
= miscc
.wxGetHomeDir
603 def wxGetAccelFromString(*_args
, **_kwargs
):
604 val
= apply(miscc
.wxGetAccelFromString
,_args
,_kwargs
)
605 if val
: val
= wxAcceleratorEntryPtr(val
)
610 #-------------- VARIABLE WRAPPERS ------------------
612 wxLeft
= miscc
.wxLeft
614 wxRight
= miscc
.wxRight
615 wxBottom
= miscc
.wxBottom
616 wxWidth
= miscc
.wxWidth
617 wxHeight
= miscc
.wxHeight
618 wxCentre
= miscc
.wxCentre
619 wxCenter
= miscc
.wxCenter
620 wxCentreX
= miscc
.wxCentreX
621 wxCentreY
= miscc
.wxCentreY
622 wxUnconstrained
= miscc
.wxUnconstrained
623 wxAsIs
= miscc
.wxAsIs
624 wxPercentOf
= miscc
.wxPercentOf
625 wxAbove
= miscc
.wxAbove
626 wxBelow
= miscc
.wxBelow
627 wxLeftOf
= miscc
.wxLeftOf
628 wxRightOf
= miscc
.wxRightOf
629 wxSameAs
= miscc
.wxSameAs
630 wxAbsolute
= miscc
.wxAbsolute
632 wxNullAcceleratorTable
= wxAcceleratorTablePtr(miscc
.cvar
.wxNullAcceleratorTable
)