1 # This file was created automatically by SWIG.
7 class wxGDIObjectPtr(wxObjectPtr
):
8 def __init__(self
,this
):
11 def __del__(self
,gdic
=gdic
):
12 if self
.thisown
== 1 :
13 gdic
.delete_wxGDIObject(self
)
14 def GetVisible(self
, *_args
, **_kwargs
):
15 val
= apply(gdic
.wxGDIObject_GetVisible
,(self
,) + _args
, _kwargs
)
17 def SetVisible(self
, *_args
, **_kwargs
):
18 val
= apply(gdic
.wxGDIObject_SetVisible
,(self
,) + _args
, _kwargs
)
20 def IsNull(self
, *_args
, **_kwargs
):
21 val
= apply(gdic
.wxGDIObject_IsNull
,(self
,) + _args
, _kwargs
)
24 return "<C wxGDIObject instance at %s>" % (self
.this
,)
25 class wxGDIObject(wxGDIObjectPtr
):
26 def __init__(self
,*_args
,**_kwargs
):
27 self
.this
= apply(gdic
.new_wxGDIObject
,_args
,_kwargs
)
33 class wxBitmapPtr(wxGDIObjectPtr
):
34 def __init__(self
,this
):
37 def __del__(self
,gdic
=gdic
):
38 if self
.thisown
== 1 :
39 gdic
.delete_wxBitmap(self
)
40 def GetPalette(self
, *_args
, **_kwargs
):
41 val
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
42 if val
: val
= wxPalettePtr(val
)
44 def GetMask(self
, *_args
, **_kwargs
):
45 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
46 if val
: val
= wxMaskPtr(val
)
48 def LoadFile(self
, *_args
, **_kwargs
):
49 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
51 def SaveFile(self
, *_args
, **_kwargs
):
52 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
54 def SetMask(self
, *_args
, **_kwargs
):
55 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
57 def SetPalette(self
, *_args
, **_kwargs
):
58 val
= apply(gdic
.wxBitmap_SetPalette
,(self
,) + _args
, _kwargs
)
60 def GetHandle(self
, *_args
, **_kwargs
):
61 val
= apply(gdic
.wxBitmap_GetHandle
,(self
,) + _args
, _kwargs
)
63 def SetHandle(self
, *_args
, **_kwargs
):
64 val
= apply(gdic
.wxBitmap_SetHandle
,(self
,) + _args
, _kwargs
)
66 def Ok(self
, *_args
, **_kwargs
):
67 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
69 def GetWidth(self
, *_args
, **_kwargs
):
70 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
72 def GetHeight(self
, *_args
, **_kwargs
):
73 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
75 def GetDepth(self
, *_args
, **_kwargs
):
76 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
78 def SetWidth(self
, *_args
, **_kwargs
):
79 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
81 def SetHeight(self
, *_args
, **_kwargs
):
82 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
84 def SetDepth(self
, *_args
, **_kwargs
):
85 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
87 def SetSize(self
, *_args
, **_kwargs
):
88 val
= apply(gdic
.wxBitmap_SetSize
,(self
,) + _args
, _kwargs
)
90 def GetSubBitmap(self
, *_args
, **_kwargs
):
91 val
= apply(gdic
.wxBitmap_GetSubBitmap
,(self
,) + _args
, _kwargs
)
92 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
94 def CopyFromIcon(self
, *_args
, **_kwargs
):
95 val
= apply(gdic
.wxBitmap_CopyFromIcon
,(self
,) + _args
, _kwargs
)
97 def CopyFromCursor(self
, *_args
, **_kwargs
):
98 val
= apply(gdic
.wxBitmap_CopyFromCursor
,(self
,) + _args
, _kwargs
)
100 def GetQuality(self
, *_args
, **_kwargs
):
101 val
= apply(gdic
.wxBitmap_GetQuality
,(self
,) + _args
, _kwargs
)
103 def SetQuality(self
, *_args
, **_kwargs
):
104 val
= apply(gdic
.wxBitmap_SetQuality
,(self
,) + _args
, _kwargs
)
107 return "<C wxBitmap instance at %s>" % (self
.this
,)
109 def __del__(self
,gdic
=gdic
):
111 if self
.thisown
== 1 :
112 gdic
.delete_wxBitmap(self
)
116 class wxBitmap(wxBitmapPtr
):
117 def __init__(self
,*_args
,**_kwargs
):
118 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
124 class wxMaskPtr(wxObjectPtr
):
125 def __init__(self
,this
):
128 def Destroy(self
, *_args
, **_kwargs
):
129 val
= apply(gdic
.wxMask_Destroy
,(self
,) + _args
, _kwargs
)
132 return "<C wxMask instance at %s>" % (self
.this
,)
133 class wxMask(wxMaskPtr
):
134 def __init__(self
,*_args
,**_kwargs
):
135 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
141 class wxIconPtr(wxGDIObjectPtr
):
142 def __init__(self
,this
):
145 def __del__(self
,gdic
=gdic
):
146 if self
.thisown
== 1 :
147 gdic
.delete_wxIcon(self
)
148 def LoadFile(self
, *_args
, **_kwargs
):
149 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
151 def GetHandle(self
, *_args
, **_kwargs
):
152 val
= apply(gdic
.wxIcon_GetHandle
,(self
,) + _args
, _kwargs
)
154 def SetHandle(self
, *_args
, **_kwargs
):
155 val
= apply(gdic
.wxIcon_SetHandle
,(self
,) + _args
, _kwargs
)
157 def Ok(self
, *_args
, **_kwargs
):
158 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
160 def GetWidth(self
, *_args
, **_kwargs
):
161 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
163 def GetHeight(self
, *_args
, **_kwargs
):
164 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
166 def GetDepth(self
, *_args
, **_kwargs
):
167 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
169 def SetWidth(self
, *_args
, **_kwargs
):
170 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
172 def SetHeight(self
, *_args
, **_kwargs
):
173 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
175 def SetDepth(self
, *_args
, **_kwargs
):
176 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
178 def SetSize(self
, *_args
, **_kwargs
):
179 val
= apply(gdic
.wxIcon_SetSize
,(self
,) + _args
, _kwargs
)
181 def CopyFromBitmap(self
, *_args
, **_kwargs
):
182 val
= apply(gdic
.wxIcon_CopyFromBitmap
,(self
,) + _args
, _kwargs
)
185 return "<C wxIcon instance at %s>" % (self
.this
,)
187 def __del__(self
,gdic
=gdic
):
189 if self
.thisown
== 1 :
190 gdic
.delete_wxIcon(self
)
194 class wxIcon(wxIconPtr
):
195 def __init__(self
,*_args
,**_kwargs
):
196 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
202 class wxIconBundlePtr
:
203 def __init__(self
,this
):
206 def __del__(self
,gdic
=gdic
):
207 if self
.thisown
== 1 :
208 gdic
.delete_wxIconBundle(self
)
209 def AddIcon(self
, *_args
, **_kwargs
):
210 val
= apply(gdic
.wxIconBundle_AddIcon
,(self
,) + _args
, _kwargs
)
212 def AddIconFromFile(self
, *_args
, **_kwargs
):
213 val
= apply(gdic
.wxIconBundle_AddIconFromFile
,(self
,) + _args
, _kwargs
)
215 def GetIcon(self
, *_args
, **_kwargs
):
216 val
= apply(gdic
.wxIconBundle_GetIcon
,(self
,) + _args
, _kwargs
)
217 if val
: val
= wxIconPtr(val
)
220 return "<C wxIconBundle instance at %s>" % (self
.this
,)
221 class wxIconBundle(wxIconBundlePtr
):
222 def __init__(self
,*_args
,**_kwargs
):
223 self
.this
= apply(gdic
.new_wxIconBundle
,_args
,_kwargs
)
228 def wxIconBundleFromFile(*_args
,**_kwargs
):
229 val
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromFile
,_args
,_kwargs
))
233 def wxIconBundleFromIcon(*_args
,**_kwargs
):
234 val
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromIcon
,_args
,_kwargs
))
239 class wxCursorPtr(wxGDIObjectPtr
):
240 def __init__(self
,this
):
243 def __del__(self
,gdic
=gdic
):
244 if self
.thisown
== 1 :
245 gdic
.delete_wxCursor(self
)
246 def GetHandle(self
, *_args
, **_kwargs
):
247 val
= apply(gdic
.wxCursor_GetHandle
,(self
,) + _args
, _kwargs
)
249 def SetHandle(self
, *_args
, **_kwargs
):
250 val
= apply(gdic
.wxCursor_SetHandle
,(self
,) + _args
, _kwargs
)
252 def Ok(self
, *_args
, **_kwargs
):
253 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
255 def GetWidth(self
, *_args
, **_kwargs
):
256 val
= apply(gdic
.wxCursor_GetWidth
,(self
,) + _args
, _kwargs
)
258 def GetHeight(self
, *_args
, **_kwargs
):
259 val
= apply(gdic
.wxCursor_GetHeight
,(self
,) + _args
, _kwargs
)
261 def GetDepth(self
, *_args
, **_kwargs
):
262 val
= apply(gdic
.wxCursor_GetDepth
,(self
,) + _args
, _kwargs
)
264 def SetWidth(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxCursor_SetWidth
,(self
,) + _args
, _kwargs
)
267 def SetHeight(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxCursor_SetHeight
,(self
,) + _args
, _kwargs
)
270 def SetDepth(self
, *_args
, **_kwargs
):
271 val
= apply(gdic
.wxCursor_SetDepth
,(self
,) + _args
, _kwargs
)
273 def SetSize(self
, *_args
, **_kwargs
):
274 val
= apply(gdic
.wxCursor_SetSize
,(self
,) + _args
, _kwargs
)
277 return "<C wxCursor instance at %s>" % (self
.this
,)
278 class wxCursor(wxCursorPtr
):
279 def __init__(self
,*_args
,**_kwargs
):
280 self
.this
= apply(gdic
.new_wxCursor
,_args
,_kwargs
)
286 class wxColourPtr(wxObjectPtr
):
287 def __init__(self
,this
):
290 def __del__(self
,gdic
=gdic
):
291 if self
.thisown
== 1 :
292 gdic
.delete_wxColour(self
)
293 def Red(self
, *_args
, **_kwargs
):
294 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
296 def Green(self
, *_args
, **_kwargs
):
297 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
299 def Blue(self
, *_args
, **_kwargs
):
300 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
302 def Ok(self
, *_args
, **_kwargs
):
303 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
305 def Set(self
, *_args
, **_kwargs
):
306 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
308 def Get(self
, *_args
, **_kwargs
):
309 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
312 return "<C wxColour instance at %s>" % (self
.this
,)
314 def __str__(self
): return str(self
.asTuple())
315 def __repr__(self
): return str(self
.asTuple())
316 class wxColour(wxColourPtr
):
317 def __init__(self
,*_args
,**_kwargs
):
318 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
324 class wxColourDatabasePtr(wxObjectPtr
):
325 def __init__(self
,this
):
328 def FindColour(self
, *_args
, **_kwargs
):
329 val
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
)
330 if val
: val
= wxColourPtr(val
)
332 def FindName(self
, *_args
, **_kwargs
):
333 val
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
)
335 def Append(self
, *_args
, **_kwargs
):
336 val
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
)
339 return "<C wxColourDatabase instance at %s>" % (self
.this
,)
340 class wxColourDatabase(wxColourDatabasePtr
):
341 def __init__(self
,this
):
347 class wxPenPtr(wxGDIObjectPtr
):
348 def __init__(self
,this
):
351 def __del__(self
,gdic
=gdic
):
352 if self
.thisown
== 1 :
353 gdic
.delete_wxPen(self
)
354 def GetCap(self
, *_args
, **_kwargs
):
355 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
357 def GetColour(self
, *_args
, **_kwargs
):
358 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
359 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
361 def GetJoin(self
, *_args
, **_kwargs
):
362 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
364 def GetStyle(self
, *_args
, **_kwargs
):
365 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
367 def GetWidth(self
, *_args
, **_kwargs
):
368 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
370 def Ok(self
, *_args
, **_kwargs
):
371 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
373 def SetCap(self
, *_args
, **_kwargs
):
374 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
376 def SetColour(self
, *_args
, **_kwargs
):
377 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
379 def SetJoin(self
, *_args
, **_kwargs
):
380 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
382 def SetStyle(self
, *_args
, **_kwargs
):
383 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
385 def SetWidth(self
, *_args
, **_kwargs
):
386 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
388 def SetDashes(self
, *_args
, **_kwargs
):
389 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
391 def GetDashes(self
, *_args
, **_kwargs
):
392 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
394 def GetStipple(self
, *_args
, **_kwargs
):
395 val
= apply(gdic
.wxPen_GetStipple
,(self
,) + _args
, _kwargs
)
396 if val
: val
= wxBitmapPtr(val
)
398 def SetStipple(self
, *_args
, **_kwargs
):
399 val
= apply(gdic
.wxPen_SetStipple
,(self
,) + _args
, _kwargs
)
402 return "<C wxPen instance at %s>" % (self
.this
,)
403 class wxPen(wxPenPtr
):
404 def __init__(self
,*_args
,**_kwargs
):
405 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
411 class wxPyPenPtr(wxPenPtr
):
412 def __init__(self
,this
):
415 def __del__(self
,gdic
=gdic
):
416 if self
.thisown
== 1 :
417 gdic
.delete_wxPyPen(self
)
418 def SetDashes(self
, *_args
, **_kwargs
):
419 val
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
)
422 return "<C wxPyPen instance at %s>" % (self
.this
,)
423 class wxPyPen(wxPyPenPtr
):
424 def __init__(self
,*_args
,**_kwargs
):
425 self
.this
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
)
431 class wxPenListPtr(wxObjectPtr
):
432 def __init__(self
,this
):
435 def AddPen(self
, *_args
, **_kwargs
):
436 val
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
)
438 def FindOrCreatePen(self
, *_args
, **_kwargs
):
439 val
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
)
440 if val
: val
= wxPenPtr(val
)
442 def RemovePen(self
, *_args
, **_kwargs
):
443 val
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
)
445 def GetCount(self
, *_args
, **_kwargs
):
446 val
= apply(gdic
.wxPenList_GetCount
,(self
,) + _args
, _kwargs
)
449 return "<C wxPenList instance at %s>" % (self
.this
,)
450 class wxPenList(wxPenListPtr
):
451 def __init__(self
,this
):
457 class wxBrushPtr(wxGDIObjectPtr
):
458 def __init__(self
,this
):
461 def __del__(self
,gdic
=gdic
):
462 if self
.thisown
== 1 :
463 gdic
.delete_wxBrush(self
)
464 def GetColour(self
, *_args
, **_kwargs
):
465 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
466 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
468 def GetStipple(self
, *_args
, **_kwargs
):
469 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
470 if val
: val
= wxBitmapPtr(val
)
472 def GetStyle(self
, *_args
, **_kwargs
):
473 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
475 def Ok(self
, *_args
, **_kwargs
):
476 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
478 def SetColour(self
, *_args
, **_kwargs
):
479 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
481 def SetStipple(self
, *_args
, **_kwargs
):
482 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
484 def SetStyle(self
, *_args
, **_kwargs
):
485 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
488 return "<C wxBrush instance at %s>" % (self
.this
,)
489 class wxBrush(wxBrushPtr
):
490 def __init__(self
,*_args
,**_kwargs
):
491 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
497 class wxBrushListPtr(wxObjectPtr
):
498 def __init__(self
,this
):
501 def AddBrush(self
, *_args
, **_kwargs
):
502 val
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
)
504 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
505 val
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
)
506 if val
: val
= wxBrushPtr(val
)
508 def RemoveBrush(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
)
511 def GetCount(self
, *_args
, **_kwargs
):
512 val
= apply(gdic
.wxBrushList_GetCount
,(self
,) + _args
, _kwargs
)
515 return "<C wxBrushList instance at %s>" % (self
.this
,)
516 class wxBrushList(wxBrushListPtr
):
517 def __init__(self
,this
):
523 class wxDCPtr(wxObjectPtr
):
524 def __init__(self
,this
):
527 def __del__(self
,gdic
=gdic
):
528 if self
.thisown
== 1 :
529 gdic
.delete_wxDC(self
)
530 def BeginDrawing(self
, *_args
, **_kwargs
):
531 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
533 def Blit(self
, *_args
, **_kwargs
):
534 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
536 def Clear(self
, *_args
, **_kwargs
):
537 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
539 def CrossHair(self
, *_args
, **_kwargs
):
540 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
542 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
543 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
545 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
546 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
548 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
549 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
551 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
552 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
554 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
555 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
557 def DrawArc(self
, *_args
, **_kwargs
):
558 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
560 def DrawCircle(self
, *_args
, **_kwargs
):
561 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
563 def DrawEllipse(self
, *_args
, **_kwargs
):
564 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
566 def DrawEllipticArc(self
, *_args
, **_kwargs
):
567 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
569 def DrawIcon(self
, *_args
, **_kwargs
):
570 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
572 def DrawLabel(self
, *_args
, **_kwargs
):
573 val
= apply(gdic
.wxDC_DrawLabel
,(self
,) + _args
, _kwargs
)
575 def DrawImageLabel(self
, *_args
, **_kwargs
):
576 val
= apply(gdic
.wxDC_DrawImageLabel
,(self
,) + _args
, _kwargs
)
577 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
579 def DrawLine(self
, *_args
, **_kwargs
):
580 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
582 def DrawLines(self
, *_args
, **_kwargs
):
583 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
585 def DrawPolygon(self
, *_args
, **_kwargs
):
586 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
588 def DrawPoint(self
, *_args
, **_kwargs
):
589 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
591 def DrawRectangle(self
, *_args
, **_kwargs
):
592 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
594 def DrawRectangleRect(self
, *_args
, **_kwargs
):
595 val
= apply(gdic
.wxDC_DrawRectangleRect
,(self
,) + _args
, _kwargs
)
597 def DrawRotatedText(self
, *_args
, **_kwargs
):
598 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
600 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
601 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
603 def DrawSpline(self
, *_args
, **_kwargs
):
604 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
606 def DrawText(self
, *_args
, **_kwargs
):
607 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
609 def EndDoc(self
, *_args
, **_kwargs
):
610 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
612 def EndDrawing(self
, *_args
, **_kwargs
):
613 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
615 def EndPage(self
, *_args
, **_kwargs
):
616 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
618 def FloodFill(self
, *_args
, **_kwargs
):
619 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
621 def GetBackground(self
, *_args
, **_kwargs
):
622 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
623 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
625 def GetBrush(self
, *_args
, **_kwargs
):
626 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
627 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
629 def GetCharHeight(self
, *_args
, **_kwargs
):
630 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
632 def GetCharWidth(self
, *_args
, **_kwargs
):
633 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
635 def GetClippingBox(self
, *_args
, **_kwargs
):
636 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
638 def GetFont(self
, *_args
, **_kwargs
):
639 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
640 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
642 def GetLogicalFunction(self
, *_args
, **_kwargs
):
643 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
645 def GetLogicalScale(self
, *_args
, **_kwargs
):
646 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
648 def GetMapMode(self
, *_args
, **_kwargs
):
649 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
651 def GetOptimization(self
, *_args
, **_kwargs
):
652 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
654 def GetPen(self
, *_args
, **_kwargs
):
655 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
656 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
658 def GetPixel(self
, *_args
, **_kwargs
):
659 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
660 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
662 def GetSizeTuple(self
, *_args
, **_kwargs
):
663 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
665 def GetSize(self
, *_args
, **_kwargs
):
666 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
667 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
669 def GetSizeMM(self
, *_args
, **_kwargs
):
670 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
671 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
673 def GetTextBackground(self
, *_args
, **_kwargs
):
674 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
675 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
677 def GetTextExtent(self
, *_args
, **_kwargs
):
678 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
680 def GetFullTextExtent(self
, *_args
, **_kwargs
):
681 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
683 def GetTextForeground(self
, *_args
, **_kwargs
):
684 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
685 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
687 def GetUserScale(self
, *_args
, **_kwargs
):
688 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
690 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
691 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
693 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
694 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
696 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
697 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
699 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
700 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
702 def MaxX(self
, *_args
, **_kwargs
):
703 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
705 def MaxY(self
, *_args
, **_kwargs
):
706 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
708 def MinX(self
, *_args
, **_kwargs
):
709 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
711 def MinY(self
, *_args
, **_kwargs
):
712 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
714 def Ok(self
, *_args
, **_kwargs
):
715 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
717 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
718 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
720 def SetBackground(self
, *_args
, **_kwargs
):
721 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
723 def SetBackgroundMode(self
, *_args
, **_kwargs
):
724 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
726 def SetClippingRegion(self
, *_args
, **_kwargs
):
727 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
729 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
730 val
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
)
732 def SetClippingRect(self
, *_args
, **_kwargs
):
733 val
= apply(gdic
.wxDC_SetClippingRect
,(self
,) + _args
, _kwargs
)
735 def SetPalette(self
, *_args
, **_kwargs
):
736 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
738 def SetBrush(self
, *_args
, **_kwargs
):
739 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
741 def SetFont(self
, *_args
, **_kwargs
):
742 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
744 def SetLogicalFunction(self
, *_args
, **_kwargs
):
745 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
747 def SetLogicalScale(self
, *_args
, **_kwargs
):
748 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
750 def SetMapMode(self
, *_args
, **_kwargs
):
751 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
753 def SetOptimization(self
, *_args
, **_kwargs
):
754 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
756 def SetPen(self
, *_args
, **_kwargs
):
757 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
759 def SetTextBackground(self
, *_args
, **_kwargs
):
760 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
762 def SetTextForeground(self
, *_args
, **_kwargs
):
763 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
765 def SetUserScale(self
, *_args
, **_kwargs
):
766 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
768 def StartDoc(self
, *_args
, **_kwargs
):
769 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
771 def StartPage(self
, *_args
, **_kwargs
):
772 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
774 def DrawBitmap(self
, *_args
, **_kwargs
):
775 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
777 def CanDrawBitmap(self
, *_args
, **_kwargs
):
778 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
780 def CanGetTextExtent(self
, *_args
, **_kwargs
):
781 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
783 def GetDepth(self
, *_args
, **_kwargs
):
784 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
786 def GetPPI(self
, *_args
, **_kwargs
):
787 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
788 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
790 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
791 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
793 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
794 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
796 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
797 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
799 def SetAxisOrientation(self
, *_args
, **_kwargs
):
800 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
802 def CalcBoundingBox(self
, *_args
, **_kwargs
):
803 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
805 def ResetBoundingBox(self
, *_args
, **_kwargs
):
806 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
808 def GetBoundingBox(self
, *_args
, **_kwargs
):
809 val
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
)
811 def GetHDC(self
, *_args
, **_kwargs
):
812 val
= apply(gdic
.wxDC_GetHDC
,(self
,) + _args
, _kwargs
)
814 def _DrawPointList(self
, *_args
, **_kwargs
):
815 val
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
)
817 def _DrawLineList(self
, *_args
, **_kwargs
):
818 val
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
)
821 return "<C wxDC instance at %s>" % (self
.this
,)
823 def DrawPointList(self
, points
, pens
=None):
826 elif isinstance(pens
, wxPenPtr
):
828 elif len(pens
) != len(points
):
829 raise ValueError('points and pens must have same length')
830 return self
._DrawPointList
(points
, pens
)
832 def DrawLineList(self
, lines
, pens
=None):
835 elif isinstance(pens
, wxPenPtr
):
837 elif len(pens
) != len(lines
):
838 raise ValueError('lines and pens must have same length')
839 return self
._DrawLineList
(lines
, pens
)
842 def __init__(self
,this
):
848 class wxMemoryDCPtr(wxDCPtr
):
849 def __init__(self
,this
):
852 def SelectObject(self
, *_args
, **_kwargs
):
853 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
856 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
857 class wxMemoryDC(wxMemoryDCPtr
):
858 def __init__(self
,*_args
,**_kwargs
):
859 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
865 class wxBufferedDCPtr(wxMemoryDCPtr
):
866 def __init__(self
,this
):
869 def UnMask(self
, *_args
, **_kwargs
):
870 val
= apply(gdic
.wxBufferedDC_UnMask
,(self
,) + _args
, _kwargs
)
873 return "<C wxBufferedDC instance at %s>" % (self
.this
,)
874 class wxBufferedDC(wxBufferedDCPtr
):
875 def __init__(self
,*_args
,**_kwargs
):
876 self
.this
= apply(gdic
.new_wxBufferedDC
,_args
,_kwargs
)
878 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
882 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
883 val
= wxBufferedDCPtr(apply(gdic
.new_wxBufferedDCInternalBuffer
,_args
,_kwargs
))
885 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
889 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
890 def __init__(self
,this
):
894 return "<C wxBufferedPaintDC instance at %s>" % (self
.this
,)
895 class wxBufferedPaintDC(wxBufferedPaintDCPtr
):
896 def __init__(self
,*_args
,**_kwargs
):
897 self
.this
= apply(gdic
.new_wxBufferedPaintDC
,_args
,_kwargs
)
903 class wxScreenDCPtr(wxDCPtr
):
904 def __init__(self
,this
):
907 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
908 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
910 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
911 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
913 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
914 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
917 return "<C wxScreenDC instance at %s>" % (self
.this
,)
918 class wxScreenDC(wxScreenDCPtr
):
919 def __init__(self
,*_args
,**_kwargs
):
920 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
926 class wxClientDCPtr(wxDCPtr
):
927 def __init__(self
,this
):
931 return "<C wxClientDC instance at %s>" % (self
.this
,)
932 class wxClientDC(wxClientDCPtr
):
933 def __init__(self
,*_args
,**_kwargs
):
934 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
940 class wxPaintDCPtr(wxDCPtr
):
941 def __init__(self
,this
):
945 return "<C wxPaintDC instance at %s>" % (self
.this
,)
946 class wxPaintDC(wxPaintDCPtr
):
947 def __init__(self
,*_args
,**_kwargs
):
948 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
954 class wxWindowDCPtr(wxDCPtr
):
955 def __init__(self
,this
):
959 return "<C wxWindowDC instance at %s>" % (self
.this
,)
960 class wxWindowDC(wxWindowDCPtr
):
961 def __init__(self
,*_args
,**_kwargs
):
962 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
968 class wxMetaFilePtr(wxObjectPtr
):
969 def __init__(self
,this
):
972 def __del__(self
,gdic
=gdic
):
973 if self
.thisown
== 1 :
974 gdic
.delete_wxMetaFile(self
)
975 def Ok(self
, *_args
, **_kwargs
):
976 val
= apply(gdic
.wxMetaFile_Ok
,(self
,) + _args
, _kwargs
)
978 def SetClipboard(self
, *_args
, **_kwargs
):
979 val
= apply(gdic
.wxMetaFile_SetClipboard
,(self
,) + _args
, _kwargs
)
981 def GetSize(self
, *_args
, **_kwargs
):
982 val
= apply(gdic
.wxMetaFile_GetSize
,(self
,) + _args
, _kwargs
)
983 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
985 def GetWidth(self
, *_args
, **_kwargs
):
986 val
= apply(gdic
.wxMetaFile_GetWidth
,(self
,) + _args
, _kwargs
)
988 def GetHeight(self
, *_args
, **_kwargs
):
989 val
= apply(gdic
.wxMetaFile_GetHeight
,(self
,) + _args
, _kwargs
)
991 def GetFileName(self
, *_args
, **_kwargs
):
992 val
= apply(gdic
.wxMetaFile_GetFileName
,(self
,) + _args
, _kwargs
)
995 return "<C wxMetaFile instance at %s>" % (self
.this
,)
996 class wxMetaFile(wxMetaFilePtr
):
997 def __init__(self
,*_args
,**_kwargs
):
998 self
.this
= apply(gdic
.new_wxMetaFile
,_args
,_kwargs
)
1004 class wxMetaFileDCPtr(wxDCPtr
):
1005 def __init__(self
,this
):
1008 def Close(self
, *_args
, **_kwargs
):
1009 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
1010 if val
: val
= wxMetaFilePtr(val
)
1013 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
1014 class wxMetaFileDC(wxMetaFileDCPtr
):
1015 def __init__(self
,*_args
,**_kwargs
):
1016 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
1022 class wxPalettePtr(wxGDIObjectPtr
):
1023 def __init__(self
,this
):
1026 def __del__(self
,gdic
=gdic
):
1027 if self
.thisown
== 1 :
1028 gdic
.delete_wxPalette(self
)
1029 def GetPixel(self
, *_args
, **_kwargs
):
1030 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
1032 def GetRGB(self
, *_args
, **_kwargs
):
1033 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
1035 def Ok(self
, *_args
, **_kwargs
):
1036 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
1039 return "<C wxPalette instance at %s>" % (self
.this
,)
1040 class wxPalette(wxPalettePtr
):
1041 def __init__(self
,*_args
,**_kwargs
):
1042 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
1048 class wxImageListPtr(wxObjectPtr
):
1049 def __init__(self
,this
):
1052 def __del__(self
,gdic
=gdic
):
1053 if self
.thisown
== 1 :
1054 gdic
.delete_wxImageList(self
)
1055 def Add(self
, *_args
, **_kwargs
):
1056 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
1058 def AddWithColourMask(self
, *_args
, **_kwargs
):
1059 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
1061 def AddIcon(self
, *_args
, **_kwargs
):
1062 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
1064 def Replace(self
, *_args
, **_kwargs
):
1065 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
1067 def Draw(self
, *_args
, **_kwargs
):
1068 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
1070 def GetImageCount(self
, *_args
, **_kwargs
):
1071 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
1073 def Remove(self
, *_args
, **_kwargs
):
1074 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
1076 def RemoveAll(self
, *_args
, **_kwargs
):
1077 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
1079 def GetSize(self
, *_args
, **_kwargs
):
1080 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
1083 return "<C wxImageList instance at %s>" % (self
.this
,)
1084 class wxImageList(wxImageListPtr
):
1085 def __init__(self
,*_args
,**_kwargs
):
1086 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
1092 class wxRegionPtr(wxGDIObjectPtr
):
1093 def __init__(self
,this
):
1096 def __del__(self
,gdic
=gdic
):
1097 if self
.thisown
== 1 :
1098 gdic
.delete_wxRegion(self
)
1099 def Clear(self
, *_args
, **_kwargs
):
1100 val
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
1102 def Offset(self
, *_args
, **_kwargs
):
1103 val
= apply(gdic
.wxRegion_Offset
,(self
,) + _args
, _kwargs
)
1105 def Contains(self
, *_args
, **_kwargs
):
1106 val
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
1108 def ContainsPoint(self
, *_args
, **_kwargs
):
1109 val
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
1111 def ContainsRect(self
, *_args
, **_kwargs
):
1112 val
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
1114 def ContainsRectDim(self
, *_args
, **_kwargs
):
1115 val
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
)
1117 def GetBox(self
, *_args
, **_kwargs
):
1118 val
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
1119 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1121 def Intersect(self
, *_args
, **_kwargs
):
1122 val
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
1124 def IntersectRect(self
, *_args
, **_kwargs
):
1125 val
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
)
1127 def IntersectRegion(self
, *_args
, **_kwargs
):
1128 val
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
)
1130 def IsEmpty(self
, *_args
, **_kwargs
):
1131 val
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
1133 def Union(self
, *_args
, **_kwargs
):
1134 val
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
1136 def UnionRect(self
, *_args
, **_kwargs
):
1137 val
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
)
1139 def UnionRegion(self
, *_args
, **_kwargs
):
1140 val
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
)
1142 def Subtract(self
, *_args
, **_kwargs
):
1143 val
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
1145 def SubtractRect(self
, *_args
, **_kwargs
):
1146 val
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
)
1148 def SubtractRegion(self
, *_args
, **_kwargs
):
1149 val
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
)
1151 def Xor(self
, *_args
, **_kwargs
):
1152 val
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
1154 def XorRect(self
, *_args
, **_kwargs
):
1155 val
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
)
1157 def XorRegion(self
, *_args
, **_kwargs
):
1158 val
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
)
1161 return "<C wxRegion instance at %s>" % (self
.this
,)
1162 class wxRegion(wxRegionPtr
):
1163 def __init__(self
,*_args
,**_kwargs
):
1164 self
.this
= apply(gdic
.new_wxRegion
,_args
,_kwargs
)
1170 class wxRegionIteratorPtr(wxObjectPtr
):
1171 def __init__(self
,this
):
1174 def __del__(self
,gdic
=gdic
):
1175 if self
.thisown
== 1 :
1176 gdic
.delete_wxRegionIterator(self
)
1177 def GetX(self
, *_args
, **_kwargs
):
1178 val
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
1180 def GetY(self
, *_args
, **_kwargs
):
1181 val
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
1183 def GetW(self
, *_args
, **_kwargs
):
1184 val
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
1186 def GetWidth(self
, *_args
, **_kwargs
):
1187 val
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
1189 def GetH(self
, *_args
, **_kwargs
):
1190 val
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
1192 def GetHeight(self
, *_args
, **_kwargs
):
1193 val
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
1195 def GetRect(self
, *_args
, **_kwargs
):
1196 val
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
1197 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1199 def HaveRects(self
, *_args
, **_kwargs
):
1200 val
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
1202 def Reset(self
, *_args
, **_kwargs
):
1203 val
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
1205 def Next(self
, *_args
, **_kwargs
):
1206 val
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
1209 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
1210 class wxRegionIterator(wxRegionIteratorPtr
):
1211 def __init__(self
,*_args
,**_kwargs
):
1212 self
.this
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
)
1220 #-------------- FUNCTION WRAPPERS ------------------
1222 def wxEmptyBitmap(*_args
, **_kwargs
):
1223 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
1224 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1227 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1228 val
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
)
1229 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1232 def wxBitmapFromIcon(*_args
, **_kwargs
):
1233 val
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
)
1234 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1237 def wxBitmapFromBits(*_args
, **_kwargs
):
1238 val
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
)
1239 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1242 def wxMaskColour(*_args
, **_kwargs
):
1243 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
1244 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1247 def wxEmptyIcon(*_args
, **_kwargs
):
1248 val
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
)
1249 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1252 def wxIconFromXPMData(*_args
, **_kwargs
):
1253 val
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
)
1254 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1257 def wxIconFromBitmap(*_args
, **_kwargs
):
1258 val
= apply(gdic
.wxIconFromBitmap
,_args
,_kwargs
)
1259 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1262 def wxStockCursor(*_args
, **_kwargs
):
1263 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
1264 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1267 def wxNamedColour(*_args
, **_kwargs
):
1268 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
1269 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1272 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1273 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
1274 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1279 #-------------- VARIABLE WRAPPERS ------------------
1281 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1282 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1283 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1284 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1285 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1286 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1287 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1288 wxOutRegion
= gdic
.wxOutRegion
1289 wxPartRegion
= gdic
.wxPartRegion
1290 wxInRegion
= gdic
.wxInRegion
1292 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1293 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1294 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1295 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1296 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1297 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1298 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1299 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1300 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1301 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1302 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1303 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1304 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1305 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1306 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1307 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1308 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1309 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1310 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1311 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1312 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1313 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1314 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1315 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1316 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1317 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1318 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1319 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1320 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1321 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1322 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1323 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1324 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1325 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1326 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1327 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1328 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1329 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1330 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1331 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1332 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1333 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1334 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1335 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1336 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1337 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)