1 # This file was created automatically by SWIG.
4 def __init__(self
,this
):
7 def GetClassName(self
, *_args
, **_kwargs
):
8 val
= miscc
.wxObject_GetClassName(self
, *_args
, **_kwargs
)
10 def Destroy(self
, *_args
, **_kwargs
):
11 val
= miscc
.wxObject_Destroy(self
, *_args
, **_kwargs
)
14 return "<%s.%s instance; proxy of C++ wxObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
15 class wxObject(wxObjectPtr
):
16 def __init__(self
,this
):
23 def __init__(self
,this
):
26 def __del__(self
, delfunc
=miscc
.delete_wxSize
):
32 def Set(self
, *_args
, **_kwargs
):
33 val
= miscc
.wxSize_Set(self
, *_args
, **_kwargs
)
35 def GetX(self
, *_args
, **_kwargs
):
36 val
= miscc
.wxSize_GetX(self
, *_args
, **_kwargs
)
38 def GetY(self
, *_args
, **_kwargs
):
39 val
= miscc
.wxSize_GetY(self
, *_args
, **_kwargs
)
41 def GetWidth(self
, *_args
, **_kwargs
):
42 val
= miscc
.wxSize_GetWidth(self
, *_args
, **_kwargs
)
44 def GetHeight(self
, *_args
, **_kwargs
):
45 val
= miscc
.wxSize_GetHeight(self
, *_args
, **_kwargs
)
47 def SetWidth(self
, *_args
, **_kwargs
):
48 val
= miscc
.wxSize_SetWidth(self
, *_args
, **_kwargs
)
50 def SetHeight(self
, *_args
, **_kwargs
):
51 val
= miscc
.wxSize_SetHeight(self
, *_args
, **_kwargs
)
53 def asTuple(self
, *_args
, **_kwargs
):
54 val
= miscc
.wxSize_asTuple(self
, *_args
, **_kwargs
)
56 def __eq__(self
, *_args
, **_kwargs
):
57 val
= miscc
.wxSize___eq__(self
, *_args
, **_kwargs
)
59 def __ne__(self
, *_args
, **_kwargs
):
60 val
= miscc
.wxSize___ne__(self
, *_args
, **_kwargs
)
62 def __setattr__(self
,name
,value
):
64 miscc
.wxSize_x_set(self
,value
)
67 miscc
.wxSize_y_set(self
,value
)
70 miscc
.wxSize_width_set(self
,value
)
73 miscc
.wxSize_height_set(self
,value
)
75 self
.__dict
__[name
] = value
76 def __getattr__(self
,name
):
78 return miscc
.wxSize_x_get(self
)
80 return miscc
.wxSize_y_get(self
)
82 return miscc
.wxSize_width_get(self
)
84 return miscc
.wxSize_height_get(self
)
85 raise AttributeError,name
87 return "<%s.%s instance; proxy of C++ wxSize instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
89 def __str__(self
): return str(self
.asTuple())
90 def __repr__(self
): return 'wxSize'+str(self
.asTuple())
91 def __len__(self
): return len(self
.asTuple())
92 def __getitem__(self
, index
): return self
.asTuple()[index
]
93 def __setitem__(self
, index
, val
):
94 if index
== 0: self
.width
= val
95 elif index
== 1: self
.height
= val
96 else: raise IndexError
97 def __nonzero__(self
): return self
.asTuple() != (0,0)
98 def __getinitargs__(self
): return ()
99 def __getstate__(self
): return self
.asTuple()
100 def __setstate__(self
, state
): self
.Set(*state
)
102 class wxSize(wxSizePtr
):
103 def __init__(self
,*_args
,**_kwargs
):
104 self
.this
= miscc
.new_wxSize(*_args
,**_kwargs
)
110 class wxRealPointPtr
:
111 def __init__(self
,this
):
114 def __del__(self
, delfunc
=miscc
.delete_wxRealPoint
):
115 if self
.thisown
== 1:
120 def Set(self
, *_args
, **_kwargs
):
121 val
= miscc
.wxRealPoint_Set(self
, *_args
, **_kwargs
)
123 def asTuple(self
, *_args
, **_kwargs
):
124 val
= miscc
.wxRealPoint_asTuple(self
, *_args
, **_kwargs
)
126 def __add__(self
, *_args
, **_kwargs
):
127 val
= miscc
.wxRealPoint___add__(self
, *_args
, **_kwargs
)
128 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
130 def __sub__(self
, *_args
, **_kwargs
):
131 val
= miscc
.wxRealPoint___sub__(self
, *_args
, **_kwargs
)
132 if val
: val
= wxRealPointPtr(val
) ; val
.thisown
= 1
134 def __eq__(self
, *_args
, **_kwargs
):
135 val
= miscc
.wxRealPoint___eq__(self
, *_args
, **_kwargs
)
137 def __ne__(self
, *_args
, **_kwargs
):
138 val
= miscc
.wxRealPoint___ne__(self
, *_args
, **_kwargs
)
140 def __setattr__(self
,name
,value
):
142 miscc
.wxRealPoint_x_set(self
,value
)
145 miscc
.wxRealPoint_y_set(self
,value
)
147 self
.__dict
__[name
] = value
148 def __getattr__(self
,name
):
150 return miscc
.wxRealPoint_x_get(self
)
152 return miscc
.wxRealPoint_y_get(self
)
153 raise AttributeError,name
155 return "<%s.%s instance; proxy of C++ wxRealPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
157 def __str__(self
): return str(self
.asTuple())
158 def __repr__(self
): return 'wxRealPoint'+str(self
.asTuple())
159 def __len__(self
): return len(self
.asTuple())
160 def __getitem__(self
, index
): return self
.asTuple()[index
]
161 def __setitem__(self
, index
, val
):
162 if index
== 0: self
.width
= val
163 elif index
== 1: self
.height
= val
164 else: raise IndexError
165 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
166 def __getinitargs__(self
): return ()
167 def __getstate__(self
): return self
.asTuple()
168 def __setstate__(self
, state
): self
.Set(*state
)
170 class wxRealPoint(wxRealPointPtr
):
171 def __init__(self
,*_args
,**_kwargs
):
172 self
.this
= miscc
.new_wxRealPoint(*_args
,**_kwargs
)
179 def __init__(self
,this
):
182 def __del__(self
, delfunc
=miscc
.delete_wxPoint
):
183 if self
.thisown
== 1:
188 def Set(self
, *_args
, **_kwargs
):
189 val
= miscc
.wxPoint_Set(self
, *_args
, **_kwargs
)
191 def asTuple(self
, *_args
, **_kwargs
):
192 val
= miscc
.wxPoint_asTuple(self
, *_args
, **_kwargs
)
194 def __add__(self
, *_args
, **_kwargs
):
195 val
= miscc
.wxPoint___add__(self
, *_args
, **_kwargs
)
196 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
198 def __sub__(self
, *_args
, **_kwargs
):
199 val
= miscc
.wxPoint___sub__(self
, *_args
, **_kwargs
)
200 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
202 def __eq__(self
, *_args
, **_kwargs
):
203 val
= miscc
.wxPoint___eq__(self
, *_args
, **_kwargs
)
205 def __ne__(self
, *_args
, **_kwargs
):
206 val
= miscc
.wxPoint___ne__(self
, *_args
, **_kwargs
)
208 def __setattr__(self
,name
,value
):
210 miscc
.wxPoint_x_set(self
,value
)
213 miscc
.wxPoint_y_set(self
,value
)
215 self
.__dict
__[name
] = value
216 def __getattr__(self
,name
):
218 return miscc
.wxPoint_x_get(self
)
220 return miscc
.wxPoint_y_get(self
)
221 raise AttributeError,name
223 return "<%s.%s instance; proxy of C++ wxPoint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
225 def __str__(self
): return str(self
.asTuple())
226 def __repr__(self
): return 'wxPoint'+str(self
.asTuple())
227 def __len__(self
): return len(self
.asTuple())
228 def __getitem__(self
, index
): return self
.asTuple()[index
]
229 def __setitem__(self
, index
, val
):
230 if index
== 0: self
.x
= val
231 elif index
== 1: self
.y
= val
232 else: raise IndexError
233 def __nonzero__(self
): return self
.asTuple() != (0,0)
234 def __getinitargs__(self
): return ()
235 def __getstate__(self
): return self
.asTuple()
236 def __setstate__(self
, state
): self
.Set(*state
)
238 class wxPoint(wxPointPtr
):
239 def __init__(self
,*_args
,**_kwargs
):
240 self
.this
= miscc
.new_wxPoint(*_args
,**_kwargs
)
247 def __init__(self
,this
):
250 def __del__(self
, delfunc
=miscc
.delete_wxRect
):
251 if self
.thisown
== 1:
256 def GetX(self
, *_args
, **_kwargs
):
257 val
= miscc
.wxRect_GetX(self
, *_args
, **_kwargs
)
259 def SetX(self
, *_args
, **_kwargs
):
260 val
= miscc
.wxRect_SetX(self
, *_args
, **_kwargs
)
262 def GetY(self
, *_args
, **_kwargs
):
263 val
= miscc
.wxRect_GetY(self
, *_args
, **_kwargs
)
265 def SetY(self
, *_args
, **_kwargs
):
266 val
= miscc
.wxRect_SetY(self
, *_args
, **_kwargs
)
268 def GetWidth(self
, *_args
, **_kwargs
):
269 val
= miscc
.wxRect_GetWidth(self
, *_args
, **_kwargs
)
271 def SetWidth(self
, *_args
, **_kwargs
):
272 val
= miscc
.wxRect_SetWidth(self
, *_args
, **_kwargs
)
274 def GetHeight(self
, *_args
, **_kwargs
):
275 val
= miscc
.wxRect_GetHeight(self
, *_args
, **_kwargs
)
277 def SetHeight(self
, *_args
, **_kwargs
):
278 val
= miscc
.wxRect_SetHeight(self
, *_args
, **_kwargs
)
280 def GetPosition(self
, *_args
, **_kwargs
):
281 val
= miscc
.wxRect_GetPosition(self
, *_args
, **_kwargs
)
282 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
284 def GetSize(self
, *_args
, **_kwargs
):
285 val
= miscc
.wxRect_GetSize(self
, *_args
, **_kwargs
)
286 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
288 def SetPosition(self
, *_args
, **_kwargs
):
289 val
= miscc
.wxRect_SetPosition(self
, *_args
, **_kwargs
)
291 def SetSize(self
, *_args
, **_kwargs
):
292 val
= miscc
.wxRect_SetSize(self
, *_args
, **_kwargs
)
294 def GetLeft(self
, *_args
, **_kwargs
):
295 val
= miscc
.wxRect_GetLeft(self
, *_args
, **_kwargs
)
297 def GetTop(self
, *_args
, **_kwargs
):
298 val
= miscc
.wxRect_GetTop(self
, *_args
, **_kwargs
)
300 def GetBottom(self
, *_args
, **_kwargs
):
301 val
= miscc
.wxRect_GetBottom(self
, *_args
, **_kwargs
)
303 def GetRight(self
, *_args
, **_kwargs
):
304 val
= miscc
.wxRect_GetRight(self
, *_args
, **_kwargs
)
306 def SetLeft(self
, *_args
, **_kwargs
):
307 val
= miscc
.wxRect_SetLeft(self
, *_args
, **_kwargs
)
309 def SetRight(self
, *_args
, **_kwargs
):
310 val
= miscc
.wxRect_SetRight(self
, *_args
, **_kwargs
)
312 def SetTop(self
, *_args
, **_kwargs
):
313 val
= miscc
.wxRect_SetTop(self
, *_args
, **_kwargs
)
315 def SetBottom(self
, *_args
, **_kwargs
):
316 val
= miscc
.wxRect_SetBottom(self
, *_args
, **_kwargs
)
318 def Deflate(self
, *_args
, **_kwargs
):
319 val
= miscc
.wxRect_Deflate(self
, *_args
, **_kwargs
)
321 def Inflate(self
, *_args
, **_kwargs
):
322 val
= miscc
.wxRect_Inflate(self
, *_args
, **_kwargs
)
324 def InsideXY(self
, *_args
, **_kwargs
):
325 val
= miscc
.wxRect_InsideXY(self
, *_args
, **_kwargs
)
327 def Inside(self
, *_args
, **_kwargs
):
328 val
= miscc
.wxRect_Inside(self
, *_args
, **_kwargs
)
330 def Intersects(self
, *_args
, **_kwargs
):
331 val
= miscc
.wxRect_Intersects(self
, *_args
, **_kwargs
)
333 def OffsetXY(self
, *_args
, **_kwargs
):
334 val
= miscc
.wxRect_OffsetXY(self
, *_args
, **_kwargs
)
336 def Offset(self
, *_args
, **_kwargs
):
337 val
= miscc
.wxRect_Offset(self
, *_args
, **_kwargs
)
339 def Set(self
, *_args
, **_kwargs
):
340 val
= miscc
.wxRect_Set(self
, *_args
, **_kwargs
)
342 def asTuple(self
, *_args
, **_kwargs
):
343 val
= miscc
.wxRect_asTuple(self
, *_args
, **_kwargs
)
345 def __add__(self
, *_args
, **_kwargs
):
346 val
= miscc
.wxRect___add__(self
, *_args
, **_kwargs
)
347 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
349 def __eq__(self
, *_args
, **_kwargs
):
350 val
= miscc
.wxRect___eq__(self
, *_args
, **_kwargs
)
352 def __ne__(self
, *_args
, **_kwargs
):
353 val
= miscc
.wxRect___ne__(self
, *_args
, **_kwargs
)
355 def __setattr__(self
,name
,value
):
357 miscc
.wxRect_x_set(self
,value
)
360 miscc
.wxRect_y_set(self
,value
)
363 miscc
.wxRect_width_set(self
,value
)
365 if name
== "height" :
366 miscc
.wxRect_height_set(self
,value
)
368 self
.__dict
__[name
] = value
369 def __getattr__(self
,name
):
371 return miscc
.wxRect_x_get(self
)
373 return miscc
.wxRect_y_get(self
)
375 return miscc
.wxRect_width_get(self
)
376 if name
== "height" :
377 return miscc
.wxRect_height_get(self
)
378 raise AttributeError,name
380 return "<%s.%s instance; proxy of C++ wxRect instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
382 def __str__(self
): return str(self
.asTuple())
383 def __repr__(self
): return 'wxRect'+str(self
.asTuple())
384 def __len__(self
): return len(self
.asTuple())
385 def __getitem__(self
, index
): return self
.asTuple()[index
]
386 def __setitem__(self
, index
, val
):
387 if index
== 0: self
.x
= val
388 elif index
== 1: self
.y
= val
389 elif index
== 2: self
.width
= val
390 elif index
== 3: self
.height
= val
391 else: raise IndexError
392 def __nonzero__(self
): return self
.asTuple() != (0,0,0,0)
393 def __getinitargs__(self
): return ()
394 def __getstate__(self
): return self
.asTuple()
395 def __setstate__(self
, state
): self
.Set(*state
)
397 # override the __getattr__ made by SWIG
398 def __getattr__(self
, name
):
400 'x' : miscc
.wxRect_x_get
,
401 'y' : miscc
.wxRect_y_get
,
402 'width' : miscc
.wxRect_width_get
,
403 'height' : miscc
.wxRect_height_get
,
404 'top' : miscc
.wxRect_GetTop
,
405 'bottom' : miscc
.wxRect_GetBottom
,
406 'left' : miscc
.wxRect_GetLeft
,
407 'right' : miscc
.wxRect_GetRight
,
412 raise AttributeError,name
415 # and also the __setattr__
416 def __setattr__(self
, name
, value
):
418 'x' : miscc
.wxRect_x_set
,
419 'y' : miscc
.wxRect_y_set
,
420 'width' : miscc
.wxRect_width_set
,
421 'height' : miscc
.wxRect_height_set
,
422 'top' : miscc
.wxRect_SetTop
,
423 'bottom' : miscc
.wxRect_SetBottom
,
424 'left' : miscc
.wxRect_SetLeft
,
425 'right' : miscc
.wxRect_SetRight
,
430 self
.__dict
__[name
] = value
434 class wxRect(wxRectPtr
):
435 def __init__(self
,*_args
,**_kwargs
):
436 self
.this
= miscc
.new_wxRect(*_args
,**_kwargs
)
442 class wxPoint2DDoublePtr
:
443 def __init__(self
,this
):
446 def GetFloor(self
, *_args
, **_kwargs
):
447 val
= miscc
.wxPoint2DDouble_GetFloor(self
, *_args
, **_kwargs
)
449 def GetRounded(self
, *_args
, **_kwargs
):
450 val
= miscc
.wxPoint2DDouble_GetRounded(self
, *_args
, **_kwargs
)
452 def GetVectorLength(self
, *_args
, **_kwargs
):
453 val
= miscc
.wxPoint2DDouble_GetVectorLength(self
, *_args
, **_kwargs
)
455 def GetVectorAngle(self
, *_args
, **_kwargs
):
456 val
= miscc
.wxPoint2DDouble_GetVectorAngle(self
, *_args
, **_kwargs
)
458 def SetVectorLength(self
, *_args
, **_kwargs
):
459 val
= miscc
.wxPoint2DDouble_SetVectorLength(self
, *_args
, **_kwargs
)
461 def SetVectorAngle(self
, *_args
, **_kwargs
):
462 val
= miscc
.wxPoint2DDouble_SetVectorAngle(self
, *_args
, **_kwargs
)
464 def GetDistance(self
, *_args
, **_kwargs
):
465 val
= miscc
.wxPoint2DDouble_GetDistance(self
, *_args
, **_kwargs
)
467 def GetDistanceSquare(self
, *_args
, **_kwargs
):
468 val
= miscc
.wxPoint2DDouble_GetDistanceSquare(self
, *_args
, **_kwargs
)
470 def GetDotProduct(self
, *_args
, **_kwargs
):
471 val
= miscc
.wxPoint2DDouble_GetDotProduct(self
, *_args
, **_kwargs
)
473 def GetCrossProduct(self
, *_args
, **_kwargs
):
474 val
= miscc
.wxPoint2DDouble_GetCrossProduct(self
, *_args
, **_kwargs
)
476 def Set(self
, *_args
, **_kwargs
):
477 val
= miscc
.wxPoint2DDouble_Set(self
, *_args
, **_kwargs
)
479 def __neg__(self
, *_args
, **_kwargs
):
480 val
= miscc
.wxPoint2DDouble___neg__(self
, *_args
, **_kwargs
)
481 if val
: val
= wxPoint2DDoublePtr(val
) ; val
.thisown
= 1
483 def __iadd__(self
, *_args
, **_kwargs
):
484 val
= miscc
.wxPoint2DDouble___iadd__(self
, *_args
, **_kwargs
)
485 if val
: val
= wxPoint2DDoublePtr(val
)
487 def __isub__(self
, *_args
, **_kwargs
):
488 val
= miscc
.wxPoint2DDouble___isub__(self
, *_args
, **_kwargs
)
489 if val
: val
= wxPoint2DDoublePtr(val
)
491 def __imul__(self
, *_args
, **_kwargs
):
492 val
= miscc
.wxPoint2DDouble___imul__(self
, *_args
, **_kwargs
)
493 if val
: val
= wxPoint2DDoublePtr(val
)
495 def __idiv__(self
, *_args
, **_kwargs
):
496 val
= miscc
.wxPoint2DDouble___idiv__(self
, *_args
, **_kwargs
)
497 if val
: val
= wxPoint2DDoublePtr(val
)
499 def __eq__(self
, *_args
, **_kwargs
):
500 val
= miscc
.wxPoint2DDouble___eq__(self
, *_args
, **_kwargs
)
502 def __ne__(self
, *_args
, **_kwargs
):
503 val
= miscc
.wxPoint2DDouble___ne__(self
, *_args
, **_kwargs
)
505 def asTuple(self
, *_args
, **_kwargs
):
506 val
= miscc
.wxPoint2DDouble_asTuple(self
, *_args
, **_kwargs
)
508 def __setattr__(self
,name
,value
):
510 miscc
.wxPoint2DDouble_m_x_set(self
,value
)
513 miscc
.wxPoint2DDouble_m_y_set(self
,value
)
516 miscc
.wxPoint2DDouble_x_set(self
,value
)
519 miscc
.wxPoint2DDouble_y_set(self
,value
)
521 self
.__dict
__[name
] = value
522 def __getattr__(self
,name
):
524 return miscc
.wxPoint2DDouble_m_x_get(self
)
526 return miscc
.wxPoint2DDouble_m_y_get(self
)
528 return miscc
.wxPoint2DDouble_x_get(self
)
530 return miscc
.wxPoint2DDouble_y_get(self
)
531 raise AttributeError,name
533 return "<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
535 def SetPolarCoordinates(self
, angle
, length
):
536 self
.SetVectorLength(length
)
537 self
.SetVectorAngle(angle
)
539 self
.SetVectorLength(1.0)
542 def __str__(self
): return str(self
.asTuple())
543 def __repr__(self
): return 'wxPoint2DDouble'+str(self
.asTuple())
544 def __len__(self
): return len(self
.asTuple())
545 def __getitem__(self
, index
): return self
.asTuple()[index
]
546 def __setitem__(self
, index
, val
):
547 if index
== 0: self
.m_x
= val
548 elif index
== 1: self
.m_yt
= val
549 else: raise IndexError
550 def __nonzero__(self
): return self
.asTuple() != (0.0, 0.0)
551 def __getinitargs__(self
): return ()
552 def __getstate__(self
): return self
.asTuple()
553 def __setstate__(self
, state
): self
.Set(*state
)
555 class wxPoint2DDouble(wxPoint2DDoublePtr
):
556 def __init__(self
,*_args
,**_kwargs
):
557 self
.this
= miscc
.new_wxPoint2DDouble(*_args
,**_kwargs
)
562 def wxPoint2DDoubleCopy(*_args
,**_kwargs
):
563 val
= wxPoint2DDoublePtr(miscc
.new_wxPoint2DDoubleCopy(*_args
,**_kwargs
))
567 def wxPoint2DDoubleFromPoint(*_args
,**_kwargs
):
568 val
= wxPoint2DDoublePtr(miscc
.new_wxPoint2DDoubleFromPoint(*_args
,**_kwargs
))
573 class wxIndividualLayoutConstraintPtr(wxObjectPtr
):
574 def __init__(self
,this
):
577 def Above(self
, *_args
, **_kwargs
):
578 val
= miscc
.wxIndividualLayoutConstraint_Above(self
, *_args
, **_kwargs
)
580 def Absolute(self
, *_args
, **_kwargs
):
581 val
= miscc
.wxIndividualLayoutConstraint_Absolute(self
, *_args
, **_kwargs
)
583 def AsIs(self
, *_args
, **_kwargs
):
584 val
= miscc
.wxIndividualLayoutConstraint_AsIs(self
, *_args
, **_kwargs
)
586 def Below(self
, *_args
, **_kwargs
):
587 val
= miscc
.wxIndividualLayoutConstraint_Below(self
, *_args
, **_kwargs
)
589 def Unconstrained(self
, *_args
, **_kwargs
):
590 val
= miscc
.wxIndividualLayoutConstraint_Unconstrained(self
, *_args
, **_kwargs
)
592 def LeftOf(self
, *_args
, **_kwargs
):
593 val
= miscc
.wxIndividualLayoutConstraint_LeftOf(self
, *_args
, **_kwargs
)
595 def PercentOf(self
, *_args
, **_kwargs
):
596 val
= miscc
.wxIndividualLayoutConstraint_PercentOf(self
, *_args
, **_kwargs
)
598 def RightOf(self
, *_args
, **_kwargs
):
599 val
= miscc
.wxIndividualLayoutConstraint_RightOf(self
, *_args
, **_kwargs
)
601 def SameAs(self
, *_args
, **_kwargs
):
602 val
= miscc
.wxIndividualLayoutConstraint_SameAs(self
, *_args
, **_kwargs
)
604 def Set(self
, *_args
, **_kwargs
):
605 val
= miscc
.wxIndividualLayoutConstraint_Set(self
, *_args
, **_kwargs
)
608 return "<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
609 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr
):
610 def __init__(self
,this
):
616 class wxLayoutConstraintsPtr(wxObjectPtr
):
617 def __init__(self
,this
):
620 def __setattr__(self
,name
,value
):
621 if name
== "bottom" :
622 miscc
.wxLayoutConstraints_bottom_set(self
,value
.this
)
624 if name
== "centreX" :
625 miscc
.wxLayoutConstraints_centreX_set(self
,value
.this
)
627 if name
== "centreY" :
628 miscc
.wxLayoutConstraints_centreY_set(self
,value
.this
)
630 if name
== "height" :
631 miscc
.wxLayoutConstraints_height_set(self
,value
.this
)
634 miscc
.wxLayoutConstraints_left_set(self
,value
.this
)
637 miscc
.wxLayoutConstraints_right_set(self
,value
.this
)
640 miscc
.wxLayoutConstraints_top_set(self
,value
.this
)
643 miscc
.wxLayoutConstraints_width_set(self
,value
.this
)
645 self
.__dict
__[name
] = value
646 def __getattr__(self
,name
):
647 if name
== "bottom" :
648 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_bottom_get(self
))
649 if name
== "centreX" :
650 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreX_get(self
))
651 if name
== "centreY" :
652 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_centreY_get(self
))
653 if name
== "height" :
654 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_height_get(self
))
656 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_left_get(self
))
658 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_right_get(self
))
660 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_top_get(self
))
662 return wxIndividualLayoutConstraintPtr(miscc
.wxLayoutConstraints_width_get(self
))
663 raise AttributeError,name
665 return "<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
666 class wxLayoutConstraints(wxLayoutConstraintsPtr
):
667 def __init__(self
,*_args
,**_kwargs
):
668 self
.this
= miscc
.new_wxLayoutConstraints(*_args
,**_kwargs
)
674 class wxAcceleratorEntryPtr
:
675 def __init__(self
,this
):
678 def __del__(self
, delfunc
=miscc
.delete_wxAcceleratorEntry
):
679 if self
.thisown
== 1:
684 def Set(self
, *_args
, **_kwargs
):
685 val
= miscc
.wxAcceleratorEntry_Set(self
, *_args
, **_kwargs
)
687 def GetFlags(self
, *_args
, **_kwargs
):
688 val
= miscc
.wxAcceleratorEntry_GetFlags(self
, *_args
, **_kwargs
)
690 def GetKeyCode(self
, *_args
, **_kwargs
):
691 val
= miscc
.wxAcceleratorEntry_GetKeyCode(self
, *_args
, **_kwargs
)
693 def GetCommand(self
, *_args
, **_kwargs
):
694 val
= miscc
.wxAcceleratorEntry_GetCommand(self
, *_args
, **_kwargs
)
697 return "<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
698 class wxAcceleratorEntry(wxAcceleratorEntryPtr
):
699 def __init__(self
,*_args
,**_kwargs
):
700 self
.this
= miscc
.new_wxAcceleratorEntry(*_args
,**_kwargs
)
706 class wxAcceleratorTablePtr(wxObjectPtr
):
707 def __init__(self
,this
):
710 def __del__(self
, delfunc
=miscc
.delete_wxAcceleratorTable
):
711 if self
.thisown
== 1:
717 return "<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
718 class wxAcceleratorTable(wxAcceleratorTablePtr
):
719 def __init__(self
,*_args
,**_kwargs
):
720 self
.this
= miscc
.new_wxAcceleratorTable(*_args
,**_kwargs
)
726 class wxBusyInfoPtr(wxObjectPtr
):
727 def __init__(self
,this
):
730 def __del__(self
, delfunc
=miscc
.delete_wxBusyInfo
):
731 if self
.thisown
== 1:
737 return "<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
738 class wxBusyInfo(wxBusyInfoPtr
):
739 def __init__(self
,*_args
,**_kwargs
):
740 self
.this
= miscc
.new_wxBusyInfo(*_args
,**_kwargs
)
748 #-------------- FUNCTION WRAPPERS ------------------
750 wxIntersectRect
= miscc
.wxIntersectRect
752 wxNewId
= miscc
.wxNewId
754 wxRegisterId
= miscc
.wxRegisterId
756 wxGetCurrentId
= miscc
.wxGetCurrentId
758 wxBell
= miscc
.wxBell
760 wxEndBusyCursor
= miscc
.wxEndBusyCursor
762 wxGetElapsedTime
= miscc
.wxGetElapsedTime
764 wxGetMousePosition
= miscc
.wxGetMousePosition
766 wxIsBusy
= miscc
.wxIsBusy
770 wxShell
= miscc
.wxShell
772 wxStartTimer
= miscc
.wxStartTimer
774 wxGetOsVersion
= miscc
.wxGetOsVersion
776 wxGetOsDescription
= miscc
.wxGetOsDescription
778 wxShutdown
= miscc
.wxShutdown
780 wxSleep
= miscc
.wxSleep
782 wxUsleep
= miscc
.wxUsleep
784 wxYield
= miscc
.wxYield
786 wxYieldIfNeeded
= miscc
.wxYieldIfNeeded
788 wxEnableTopLevelWindows
= miscc
.wxEnableTopLevelWindows
790 wxStripMenuCodes
= miscc
.wxStripMenuCodes
792 wxGetEmailAddress
= miscc
.wxGetEmailAddress
794 wxGetHostName
= miscc
.wxGetHostName
796 wxGetFullHostName
= miscc
.wxGetFullHostName
798 wxGetUserId
= miscc
.wxGetUserId
800 wxGetUserName
= miscc
.wxGetUserName
802 wxGetHomeDir
= miscc
.wxGetHomeDir
804 wxGetUserHome
= miscc
.wxGetUserHome
806 wxGetProcessId
= miscc
.wxGetProcessId
808 def wxGetAccelFromString(*_args
, **_kwargs
):
809 val
= miscc
.wxGetAccelFromString(*_args
,**_kwargs
)
810 if val
: val
= wxAcceleratorEntryPtr(val
)
815 #-------------- VARIABLE WRAPPERS ------------------
817 wxSHUTDOWN_POWEROFF
= miscc
.wxSHUTDOWN_POWEROFF
818 wxSHUTDOWN_REBOOT
= miscc
.wxSHUTDOWN_REBOOT
819 wxLeft
= miscc
.wxLeft
821 wxRight
= miscc
.wxRight
822 wxBottom
= miscc
.wxBottom
823 wxWidth
= miscc
.wxWidth
824 wxHeight
= miscc
.wxHeight
825 wxCentre
= miscc
.wxCentre
826 wxCenter
= miscc
.wxCenter
827 wxCentreX
= miscc
.wxCentreX
828 wxCentreY
= miscc
.wxCentreY
829 wxUnconstrained
= miscc
.wxUnconstrained
830 wxAsIs
= miscc
.wxAsIs
831 wxPercentOf
= miscc
.wxPercentOf
832 wxAbove
= miscc
.wxAbove
833 wxBelow
= miscc
.wxBelow
834 wxLeftOf
= miscc
.wxLeftOf
835 wxRightOf
= miscc
.wxRightOf
836 wxSameAs
= miscc
.wxSameAs
837 wxAbsolute
= miscc
.wxAbsolute
839 wxNullAcceleratorTable
= wxAcceleratorTablePtr(miscc
.cvar
.wxNullAcceleratorTable
)