1 # This file was created automatically by SWIG.
5 class wxGDIObjectPtr(wxObjectPtr
):
6 def __init__(self
,this
):
9 def __del__(self
,gdic
=gdic
):
10 if self
.thisown
== 1 :
11 gdic
.delete_wxGDIObject(self
)
12 def GetVisible(self
, *_args
, **_kwargs
):
13 val
= apply(gdic
.wxGDIObject_GetVisible
,(self
,) + _args
, _kwargs
)
15 def SetVisible(self
, *_args
, **_kwargs
):
16 val
= apply(gdic
.wxGDIObject_SetVisible
,(self
,) + _args
, _kwargs
)
18 def IsNull(self
, *_args
, **_kwargs
):
19 val
= apply(gdic
.wxGDIObject_IsNull
,(self
,) + _args
, _kwargs
)
22 return "<C wxGDIObject instance at %s>" % (self
.this
,)
23 class wxGDIObject(wxGDIObjectPtr
):
24 def __init__(self
,*_args
,**_kwargs
):
25 self
.this
= apply(gdic
.new_wxGDIObject
,_args
,_kwargs
)
31 class wxBitmapPtr(wxGDIObjectPtr
):
32 def __init__(self
,this
):
35 def __del__(self
,gdic
=gdic
):
36 if self
.thisown
== 1 :
37 gdic
.delete_wxBitmap(self
)
38 def GetPalette(self
, *_args
, **_kwargs
):
39 val
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
40 if val
: val
= wxPalettePtr(val
)
42 def GetMask(self
, *_args
, **_kwargs
):
43 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
44 if val
: val
= wxMaskPtr(val
)
46 def LoadFile(self
, *_args
, **_kwargs
):
47 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
49 def SaveFile(self
, *_args
, **_kwargs
):
50 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
52 def SetMask(self
, *_args
, **_kwargs
):
53 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
55 def Ok(self
, *_args
, **_kwargs
):
56 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
58 def GetWidth(self
, *_args
, **_kwargs
):
59 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
61 def GetHeight(self
, *_args
, **_kwargs
):
62 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
64 def GetDepth(self
, *_args
, **_kwargs
):
65 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
67 def SetWidth(self
, *_args
, **_kwargs
):
68 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
70 def SetHeight(self
, *_args
, **_kwargs
):
71 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
73 def SetDepth(self
, *_args
, **_kwargs
):
74 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
76 def GetSubBitmap(self
, *_args
, **_kwargs
):
77 val
= apply(gdic
.wxBitmap_GetSubBitmap
,(self
,) + _args
, _kwargs
)
78 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
80 def CopyFromIcon(self
, *_args
, **_kwargs
):
81 val
= apply(gdic
.wxBitmap_CopyFromIcon
,(self
,) + _args
, _kwargs
)
84 return "<C wxBitmap instance at %s>" % (self
.this
,)
86 def __del__(self
,gdic
=gdic
):
88 if self
.thisown
== 1 :
89 gdic
.delete_wxBitmap(self
)
93 class wxBitmap(wxBitmapPtr
):
94 def __init__(self
,*_args
,**_kwargs
):
95 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
101 class wxMaskPtr(wxObjectPtr
):
102 def __init__(self
,this
):
105 def Destroy(self
, *_args
, **_kwargs
):
106 val
= apply(gdic
.wxMask_Destroy
,(self
,) + _args
, _kwargs
)
109 return "<C wxMask instance at %s>" % (self
.this
,)
110 class wxMask(wxMaskPtr
):
111 def __init__(self
,*_args
,**_kwargs
):
112 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
118 class wxIconPtr(wxGDIObjectPtr
):
119 def __init__(self
,this
):
122 def __del__(self
,gdic
=gdic
):
123 if self
.thisown
== 1 :
124 gdic
.delete_wxIcon(self
)
125 def LoadFile(self
, *_args
, **_kwargs
):
126 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
128 def Ok(self
, *_args
, **_kwargs
):
129 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
131 def GetWidth(self
, *_args
, **_kwargs
):
132 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
134 def GetHeight(self
, *_args
, **_kwargs
):
135 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
137 def GetDepth(self
, *_args
, **_kwargs
):
138 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
140 def SetWidth(self
, *_args
, **_kwargs
):
141 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
143 def SetHeight(self
, *_args
, **_kwargs
):
144 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
146 def SetDepth(self
, *_args
, **_kwargs
):
147 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
149 def CopyFromBitmap(self
, *_args
, **_kwargs
):
150 val
= apply(gdic
.wxIcon_CopyFromBitmap
,(self
,) + _args
, _kwargs
)
153 return "<C wxIcon instance at %s>" % (self
.this
,)
155 def __del__(self
,gdic
=gdic
):
157 if self
.thisown
== 1 :
158 gdic
.delete_wxIcon(self
)
162 class wxIcon(wxIconPtr
):
163 def __init__(self
,*_args
,**_kwargs
):
164 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
170 class wxCursorPtr(wxGDIObjectPtr
):
171 def __init__(self
,this
):
174 def __del__(self
,gdic
=gdic
):
175 if self
.thisown
== 1 :
176 gdic
.delete_wxCursor(self
)
177 def Ok(self
, *_args
, **_kwargs
):
178 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
181 return "<C wxCursor instance at %s>" % (self
.this
,)
182 class wxCursor(wxCursorPtr
):
183 def __init__(self
,this
):
189 class wxNativeFontInfoPtr
:
190 def __init__(self
,this
):
193 def FromString(self
, *_args
, **_kwargs
):
194 val
= apply(gdic
.wxNativeFontInfo_FromString
,(self
,) + _args
, _kwargs
)
196 def ToString(self
, *_args
, **_kwargs
):
197 val
= apply(gdic
.wxNativeFontInfo_ToString
,(self
,) + _args
, _kwargs
)
199 def __str__(self
, *_args
, **_kwargs
):
200 val
= apply(gdic
.wxNativeFontInfo___str__
,(self
,) + _args
, _kwargs
)
203 return "<C wxNativeFontInfo instance at %s>" % (self
.this
,)
204 class wxNativeFontInfo(wxNativeFontInfoPtr
):
205 def __init__(self
,this
):
211 class wxFontMapperPtr
:
212 def __init__(self
,this
):
215 def __del__(self
,gdic
=gdic
):
216 if self
.thisown
== 1 :
217 gdic
.delete_wxFontMapper(self
)
218 def GetAltForEncoding(self
, *_args
, **_kwargs
):
219 val
= apply(gdic
.wxFontMapper_GetAltForEncoding
,(self
,) + _args
, _kwargs
)
221 def IsEncodingAvailable(self
, *_args
, **_kwargs
):
222 val
= apply(gdic
.wxFontMapper_IsEncodingAvailable
,(self
,) + _args
, _kwargs
)
224 def CharsetToEncoding(self
, *_args
, **_kwargs
):
225 val
= apply(gdic
.wxFontMapper_CharsetToEncoding
,(self
,) + _args
, _kwargs
)
227 def SetDialogParent(self
, *_args
, **_kwargs
):
228 val
= apply(gdic
.wxFontMapper_SetDialogParent
,(self
,) + _args
, _kwargs
)
230 def SetDialogTitle(self
, *_args
, **_kwargs
):
231 val
= apply(gdic
.wxFontMapper_SetDialogTitle
,(self
,) + _args
, _kwargs
)
233 def SetConfig(self
, *_args
, **_kwargs
):
234 val
= apply(gdic
.wxFontMapper_SetConfig
,(self
,) + _args
, _kwargs
)
236 def SetConfigPath(self
, *_args
, **_kwargs
):
237 val
= apply(gdic
.wxFontMapper_SetConfigPath
,(self
,) + _args
, _kwargs
)
240 return "<C wxFontMapper instance at %s>" % (self
.this
,)
241 class wxFontMapper(wxFontMapperPtr
):
242 def __init__(self
,*_args
,**_kwargs
):
243 self
.this
= apply(gdic
.new_wxFontMapper
,_args
,_kwargs
)
249 class wxFontPtr(wxGDIObjectPtr
):
250 def __init__(self
,this
):
253 def __del__(self
,gdic
=gdic
):
254 if self
.thisown
== 1 :
255 gdic
.delete_wxFont(self
)
256 def Ok(self
, *_args
, **_kwargs
):
257 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
259 def GetPointSize(self
, *_args
, **_kwargs
):
260 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
262 def GetFamily(self
, *_args
, **_kwargs
):
263 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
265 def GetStyle(self
, *_args
, **_kwargs
):
266 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
268 def GetWeight(self
, *_args
, **_kwargs
):
269 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
271 def GetUnderlined(self
, *_args
, **_kwargs
):
272 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
274 def GetFaceName(self
, *_args
, **_kwargs
):
275 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
277 def GetEncoding(self
, *_args
, **_kwargs
):
278 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
280 def GetNativeFontInfo(self
, *_args
, **_kwargs
):
281 val
= apply(gdic
.wxFont_GetNativeFontInfo
,(self
,) + _args
, _kwargs
)
282 if val
: val
= wxNativeFontInfoPtr(val
)
284 def SetPointSize(self
, *_args
, **_kwargs
):
285 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
287 def SetFamily(self
, *_args
, **_kwargs
):
288 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
290 def SetStyle(self
, *_args
, **_kwargs
):
291 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
293 def SetWeight(self
, *_args
, **_kwargs
):
294 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
296 def SetFaceName(self
, *_args
, **_kwargs
):
297 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
299 def SetUnderlined(self
, *_args
, **_kwargs
):
300 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
302 def SetEncoding(self
, *_args
, **_kwargs
):
303 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
305 def SetNativeFontInfo(self
, *_args
, **_kwargs
):
306 val
= apply(gdic
.wxFont_SetNativeFontInfo
,(self
,) + _args
, _kwargs
)
308 def GetFamilyString(self
, *_args
, **_kwargs
):
309 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
311 def GetStyleString(self
, *_args
, **_kwargs
):
312 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
314 def GetWeightString(self
, *_args
, **_kwargs
):
315 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
318 return "<C wxFont instance at %s>" % (self
.this
,)
319 class wxFont(wxFontPtr
):
320 def __init__(self
,*_args
,**_kwargs
):
321 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
326 def wxFontFromNativeInfo(*_args
,**_kwargs
):
327 val
= wxFontPtr(apply(gdic
.new_wxFontFromNativeInfo
,_args
,_kwargs
))
332 class wxFontListPtr(wxObjectPtr
):
333 def __init__(self
,this
):
336 def AddFont(self
, *_args
, **_kwargs
):
337 val
= apply(gdic
.wxFontList_AddFont
,(self
,) + _args
, _kwargs
)
339 def FindOrCreateFont(self
, *_args
, **_kwargs
):
340 val
= apply(gdic
.wxFontList_FindOrCreateFont
,(self
,) + _args
, _kwargs
)
341 if val
: val
= wxFontPtr(val
)
343 def RemoveFont(self
, *_args
, **_kwargs
):
344 val
= apply(gdic
.wxFontList_RemoveFont
,(self
,) + _args
, _kwargs
)
347 return "<C wxFontList instance at %s>" % (self
.this
,)
348 class wxFontList(wxFontListPtr
):
349 def __init__(self
,this
):
355 class wxColourPtr(wxObjectPtr
):
356 def __init__(self
,this
):
359 def __del__(self
,gdic
=gdic
):
360 if self
.thisown
== 1 :
361 gdic
.delete_wxColour(self
)
362 def Red(self
, *_args
, **_kwargs
):
363 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
365 def Green(self
, *_args
, **_kwargs
):
366 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
368 def Blue(self
, *_args
, **_kwargs
):
369 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
371 def Ok(self
, *_args
, **_kwargs
):
372 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
374 def Set(self
, *_args
, **_kwargs
):
375 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
377 def Get(self
, *_args
, **_kwargs
):
378 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
381 return "<C wxColour instance at %s>" % (self
.this
,)
383 def __str__(self
): return str(self
.asTuple())
384 def __repr__(self
): return str(self
.asTuple())
385 class wxColour(wxColourPtr
):
386 def __init__(self
,*_args
,**_kwargs
):
387 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
393 class wxColourDatabasePtr(wxObjectPtr
):
394 def __init__(self
,this
):
397 def FindColour(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
)
399 if val
: val
= wxColourPtr(val
)
401 def FindName(self
, *_args
, **_kwargs
):
402 val
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
)
404 def Append(self
, *_args
, **_kwargs
):
405 val
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
)
408 return "<C wxColourDatabase instance at %s>" % (self
.this
,)
409 class wxColourDatabase(wxColourDatabasePtr
):
410 def __init__(self
,this
):
416 class wxPenPtr(wxGDIObjectPtr
):
417 def __init__(self
,this
):
420 def __del__(self
,gdic
=gdic
):
421 if self
.thisown
== 1 :
422 gdic
.delete_wxPen(self
)
423 def GetCap(self
, *_args
, **_kwargs
):
424 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
426 def GetColour(self
, *_args
, **_kwargs
):
427 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
428 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
430 def GetJoin(self
, *_args
, **_kwargs
):
431 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
433 def GetStyle(self
, *_args
, **_kwargs
):
434 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
436 def GetWidth(self
, *_args
, **_kwargs
):
437 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
439 def Ok(self
, *_args
, **_kwargs
):
440 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
442 def SetCap(self
, *_args
, **_kwargs
):
443 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
445 def SetColour(self
, *_args
, **_kwargs
):
446 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
448 def SetJoin(self
, *_args
, **_kwargs
):
449 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
451 def SetStyle(self
, *_args
, **_kwargs
):
452 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
454 def SetWidth(self
, *_args
, **_kwargs
):
455 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
457 def SetDashes(self
, *_args
, **_kwargs
):
458 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
461 return "<C wxPen instance at %s>" % (self
.this
,)
462 class wxPen(wxPenPtr
):
463 def __init__(self
,*_args
,**_kwargs
):
464 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
470 class wxPyPenPtr(wxPenPtr
):
471 def __init__(self
,this
):
474 def __del__(self
,gdic
=gdic
):
475 if self
.thisown
== 1 :
476 gdic
.delete_wxPyPen(self
)
477 def SetDashes(self
, *_args
, **_kwargs
):
478 val
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
)
481 return "<C wxPyPen instance at %s>" % (self
.this
,)
482 class wxPyPen(wxPyPenPtr
):
483 def __init__(self
,*_args
,**_kwargs
):
484 self
.this
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
)
490 class wxPenListPtr(wxObjectPtr
):
491 def __init__(self
,this
):
494 def AddPen(self
, *_args
, **_kwargs
):
495 val
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
)
497 def FindOrCreatePen(self
, *_args
, **_kwargs
):
498 val
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
)
499 if val
: val
= wxPenPtr(val
)
501 def RemovePen(self
, *_args
, **_kwargs
):
502 val
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
)
505 return "<C wxPenList instance at %s>" % (self
.this
,)
506 class wxPenList(wxPenListPtr
):
507 def __init__(self
,this
):
513 class wxBrushPtr(wxGDIObjectPtr
):
514 def __init__(self
,this
):
517 def __del__(self
,gdic
=gdic
):
518 if self
.thisown
== 1 :
519 gdic
.delete_wxBrush(self
)
520 def GetColour(self
, *_args
, **_kwargs
):
521 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
522 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
524 def GetStipple(self
, *_args
, **_kwargs
):
525 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
526 if val
: val
= wxBitmapPtr(val
)
528 def GetStyle(self
, *_args
, **_kwargs
):
529 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
531 def Ok(self
, *_args
, **_kwargs
):
532 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
534 def SetColour(self
, *_args
, **_kwargs
):
535 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
537 def SetStipple(self
, *_args
, **_kwargs
):
538 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
540 def SetStyle(self
, *_args
, **_kwargs
):
541 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
544 return "<C wxBrush instance at %s>" % (self
.this
,)
545 class wxBrush(wxBrushPtr
):
546 def __init__(self
,*_args
,**_kwargs
):
547 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
553 class wxBrushListPtr(wxObjectPtr
):
554 def __init__(self
,this
):
557 def AddBrush(self
, *_args
, **_kwargs
):
558 val
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
)
560 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
561 val
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
)
562 if val
: val
= wxBrushPtr(val
)
564 def RemoveBrush(self
, *_args
, **_kwargs
):
565 val
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
)
568 return "<C wxBrushList instance at %s>" % (self
.this
,)
569 class wxBrushList(wxBrushListPtr
):
570 def __init__(self
,this
):
576 class wxDCPtr(wxObjectPtr
):
577 def __init__(self
,this
):
580 def __del__(self
,gdic
=gdic
):
581 if self
.thisown
== 1 :
582 gdic
.delete_wxDC(self
)
583 def BeginDrawing(self
, *_args
, **_kwargs
):
584 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
586 def Blit(self
, *_args
, **_kwargs
):
587 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
589 def Clear(self
, *_args
, **_kwargs
):
590 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
592 def CrossHair(self
, *_args
, **_kwargs
):
593 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
595 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
598 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
601 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
602 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
604 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
605 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
607 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
608 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
610 def DrawArc(self
, *_args
, **_kwargs
):
611 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
613 def DrawCircle(self
, *_args
, **_kwargs
):
614 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
616 def DrawEllipse(self
, *_args
, **_kwargs
):
617 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
619 def DrawEllipticArc(self
, *_args
, **_kwargs
):
620 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
622 def DrawIcon(self
, *_args
, **_kwargs
):
623 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
625 def DrawLine(self
, *_args
, **_kwargs
):
626 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
628 def DrawLines(self
, *_args
, **_kwargs
):
629 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
631 def DrawPolygon(self
, *_args
, **_kwargs
):
632 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
634 def DrawPoint(self
, *_args
, **_kwargs
):
635 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
637 def DrawRectangle(self
, *_args
, **_kwargs
):
638 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
640 def DrawRotatedText(self
, *_args
, **_kwargs
):
641 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
643 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
644 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
646 def DrawSpline(self
, *_args
, **_kwargs
):
647 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
649 def DrawText(self
, *_args
, **_kwargs
):
650 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
652 def EndDoc(self
, *_args
, **_kwargs
):
653 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
655 def EndDrawing(self
, *_args
, **_kwargs
):
656 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
658 def EndPage(self
, *_args
, **_kwargs
):
659 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
661 def FloodFill(self
, *_args
, **_kwargs
):
662 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
664 def GetBackground(self
, *_args
, **_kwargs
):
665 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
666 if val
: val
= wxBrushPtr(val
)
668 def GetBrush(self
, *_args
, **_kwargs
):
669 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
670 if val
: val
= wxBrushPtr(val
)
672 def GetCharHeight(self
, *_args
, **_kwargs
):
673 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
675 def GetCharWidth(self
, *_args
, **_kwargs
):
676 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
678 def GetClippingBox(self
, *_args
, **_kwargs
):
679 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
681 def GetFont(self
, *_args
, **_kwargs
):
682 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
683 if val
: val
= wxFontPtr(val
)
685 def GetLogicalFunction(self
, *_args
, **_kwargs
):
686 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
688 def GetLogicalScale(self
, *_args
, **_kwargs
):
689 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
691 def GetMapMode(self
, *_args
, **_kwargs
):
692 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
694 def GetOptimization(self
, *_args
, **_kwargs
):
695 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
697 def GetPen(self
, *_args
, **_kwargs
):
698 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
699 if val
: val
= wxPenPtr(val
)
701 def GetPixel(self
, *_args
, **_kwargs
):
702 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
703 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
705 def GetSizeTuple(self
, *_args
, **_kwargs
):
706 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
708 def GetSize(self
, *_args
, **_kwargs
):
709 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
710 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
712 def GetSizeMM(self
, *_args
, **_kwargs
):
713 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
714 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
716 def GetTextBackground(self
, *_args
, **_kwargs
):
717 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
718 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
720 def GetTextExtent(self
, *_args
, **_kwargs
):
721 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
723 def GetFullTextExtent(self
, *_args
, **_kwargs
):
724 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
726 def GetTextForeground(self
, *_args
, **_kwargs
):
727 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
728 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
730 def GetUserScale(self
, *_args
, **_kwargs
):
731 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
733 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
734 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
736 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
737 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
739 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
740 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
742 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
743 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
745 def MaxX(self
, *_args
, **_kwargs
):
746 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
748 def MaxY(self
, *_args
, **_kwargs
):
749 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
751 def MinX(self
, *_args
, **_kwargs
):
752 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
754 def MinY(self
, *_args
, **_kwargs
):
755 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
757 def Ok(self
, *_args
, **_kwargs
):
758 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
760 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
761 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
763 def SetBackground(self
, *_args
, **_kwargs
):
764 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
766 def SetBackgroundMode(self
, *_args
, **_kwargs
):
767 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
769 def SetClippingRegion(self
, *_args
, **_kwargs
):
770 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
772 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
773 val
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
)
775 def SetPalette(self
, *_args
, **_kwargs
):
776 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
778 def SetBrush(self
, *_args
, **_kwargs
):
779 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
781 def SetFont(self
, *_args
, **_kwargs
):
782 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
784 def SetLogicalFunction(self
, *_args
, **_kwargs
):
785 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
787 def SetLogicalScale(self
, *_args
, **_kwargs
):
788 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
790 def SetMapMode(self
, *_args
, **_kwargs
):
791 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
793 def SetOptimization(self
, *_args
, **_kwargs
):
794 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
796 def SetPen(self
, *_args
, **_kwargs
):
797 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
799 def SetTextBackground(self
, *_args
, **_kwargs
):
800 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
802 def SetTextForeground(self
, *_args
, **_kwargs
):
803 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
805 def SetUserScale(self
, *_args
, **_kwargs
):
806 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
808 def StartDoc(self
, *_args
, **_kwargs
):
809 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
811 def StartPage(self
, *_args
, **_kwargs
):
812 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
814 def DrawBitmap(self
, *_args
, **_kwargs
):
815 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
817 def CanDrawBitmap(self
, *_args
, **_kwargs
):
818 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
820 def CanGetTextExtent(self
, *_args
, **_kwargs
):
821 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
823 def GetDepth(self
, *_args
, **_kwargs
):
824 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
826 def GetPPI(self
, *_args
, **_kwargs
):
827 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
828 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
830 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
831 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
833 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
834 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
836 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
837 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
839 def SetAxisOrientation(self
, *_args
, **_kwargs
):
840 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
842 def CalcBoundingBox(self
, *_args
, **_kwargs
):
843 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
845 def ResetBoundingBox(self
, *_args
, **_kwargs
):
846 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
848 def GetBoundingBox(self
, *_args
, **_kwargs
):
849 val
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
)
851 def _DrawPointList(self
, *_args
, **_kwargs
):
852 val
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
)
854 def _DrawLineList(self
, *_args
, **_kwargs
):
855 val
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
)
858 return "<C wxDC instance at %s>" % (self
.this
,)
860 def DrawPointList(self
, points
, pens
=None):
863 elif isinstance(pens
, wxPenPtr
):
865 elif len(pens
) != len(points
):
866 raise ValueError('points and pens must have same length')
867 return self
._DrawPointList
(points
, pens
)
869 def DrawLineList(self
, lines
, pens
=None):
872 elif isinstance(pens
, wxPenPtr
):
874 elif len(pens
) != len(lines
):
875 raise ValueError('lines and pens must have same length')
876 return self
._DrawLineList
(lines
, pens
)
879 def __init__(self
,this
):
885 class wxMemoryDCPtr(wxDCPtr
):
886 def __init__(self
,this
):
889 def SelectObject(self
, *_args
, **_kwargs
):
890 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
893 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
894 class wxMemoryDC(wxMemoryDCPtr
):
895 def __init__(self
,*_args
,**_kwargs
):
896 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
902 class wxScreenDCPtr(wxDCPtr
):
903 def __init__(self
,this
):
906 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
907 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
909 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
910 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
912 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
913 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
916 return "<C wxScreenDC instance at %s>" % (self
.this
,)
917 class wxScreenDC(wxScreenDCPtr
):
918 def __init__(self
,*_args
,**_kwargs
):
919 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
925 class wxClientDCPtr(wxDCPtr
):
926 def __init__(self
,this
):
930 return "<C wxClientDC instance at %s>" % (self
.this
,)
931 class wxClientDC(wxClientDCPtr
):
932 def __init__(self
,*_args
,**_kwargs
):
933 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
939 class wxPaintDCPtr(wxDCPtr
):
940 def __init__(self
,this
):
944 return "<C wxPaintDC instance at %s>" % (self
.this
,)
945 class wxPaintDC(wxPaintDCPtr
):
946 def __init__(self
,*_args
,**_kwargs
):
947 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
953 class wxWindowDCPtr(wxDCPtr
):
954 def __init__(self
,this
):
958 return "<C wxWindowDC instance at %s>" % (self
.this
,)
959 class wxWindowDC(wxWindowDCPtr
):
960 def __init__(self
,*_args
,**_kwargs
):
961 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
967 class wxPostScriptDCPtr(wxDCPtr
):
968 def __init__(self
,this
):
972 return "<C wxPostScriptDC instance at %s>" % (self
.this
,)
973 class wxPostScriptDC(wxPostScriptDCPtr
):
974 def __init__(self
,*_args
,**_kwargs
):
975 self
.this
= apply(gdic
.new_wxPostScriptDC
,_args
,_kwargs
)
981 class wxPalettePtr(wxGDIObjectPtr
):
982 def __init__(self
,this
):
985 def __del__(self
,gdic
=gdic
):
986 if self
.thisown
== 1 :
987 gdic
.delete_wxPalette(self
)
988 def GetPixel(self
, *_args
, **_kwargs
):
989 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
991 def GetRGB(self
, *_args
, **_kwargs
):
992 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
994 def Ok(self
, *_args
, **_kwargs
):
995 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
998 return "<C wxPalette instance at %s>" % (self
.this
,)
999 class wxPalette(wxPalettePtr
):
1000 def __init__(self
,*_args
,**_kwargs
):
1001 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
1007 class wxImageListPtr(wxObjectPtr
):
1008 def __init__(self
,this
):
1011 def __del__(self
,gdic
=gdic
):
1012 if self
.thisown
== 1 :
1013 gdic
.delete_wxImageList(self
)
1014 def Add(self
, *_args
, **_kwargs
):
1015 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
1017 def AddWithColourMask(self
, *_args
, **_kwargs
):
1018 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
1020 def AddIcon(self
, *_args
, **_kwargs
):
1021 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
1023 def Replace(self
, *_args
, **_kwargs
):
1024 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
1026 def Draw(self
, *_args
, **_kwargs
):
1027 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
1029 def GetImageCount(self
, *_args
, **_kwargs
):
1030 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
1032 def Remove(self
, *_args
, **_kwargs
):
1033 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
1035 def RemoveAll(self
, *_args
, **_kwargs
):
1036 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
1038 def GetSize(self
, *_args
, **_kwargs
):
1039 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
1042 return "<C wxImageList instance at %s>" % (self
.this
,)
1043 class wxImageList(wxImageListPtr
):
1044 def __init__(self
,*_args
,**_kwargs
):
1045 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
1051 class wxRegionPtr(wxGDIObjectPtr
):
1052 def __init__(self
,this
):
1055 def __del__(self
,gdic
=gdic
):
1056 if self
.thisown
== 1 :
1057 gdic
.delete_wxRegion(self
)
1058 def Clear(self
, *_args
, **_kwargs
):
1059 val
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
1061 def Contains(self
, *_args
, **_kwargs
):
1062 val
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
1064 def ContainsPoint(self
, *_args
, **_kwargs
):
1065 val
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
1067 def ContainsRect(self
, *_args
, **_kwargs
):
1068 val
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
1070 def ContainsRectDim(self
, *_args
, **_kwargs
):
1071 val
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
)
1073 def GetBox(self
, *_args
, **_kwargs
):
1074 val
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
1075 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1077 def Intersect(self
, *_args
, **_kwargs
):
1078 val
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
1080 def IntersectRect(self
, *_args
, **_kwargs
):
1081 val
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
)
1083 def IntersectRegion(self
, *_args
, **_kwargs
):
1084 val
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
)
1086 def IsEmpty(self
, *_args
, **_kwargs
):
1087 val
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
1089 def Union(self
, *_args
, **_kwargs
):
1090 val
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
1092 def UnionRect(self
, *_args
, **_kwargs
):
1093 val
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
)
1095 def UnionRegion(self
, *_args
, **_kwargs
):
1096 val
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
)
1098 def Subtract(self
, *_args
, **_kwargs
):
1099 val
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
1101 def SubtractRect(self
, *_args
, **_kwargs
):
1102 val
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
)
1104 def SubtractRegion(self
, *_args
, **_kwargs
):
1105 val
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
)
1107 def Xor(self
, *_args
, **_kwargs
):
1108 val
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
1110 def XorRect(self
, *_args
, **_kwargs
):
1111 val
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
)
1113 def XorRegion(self
, *_args
, **_kwargs
):
1114 val
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
)
1117 return "<C wxRegion instance at %s>" % (self
.this
,)
1118 class wxRegion(wxRegionPtr
):
1119 def __init__(self
,*_args
,**_kwargs
):
1120 self
.this
= apply(gdic
.new_wxRegion
,_args
,_kwargs
)
1126 class wxRegionIteratorPtr(wxObjectPtr
):
1127 def __init__(self
,this
):
1130 def __del__(self
,gdic
=gdic
):
1131 if self
.thisown
== 1 :
1132 gdic
.delete_wxRegionIterator(self
)
1133 def GetX(self
, *_args
, **_kwargs
):
1134 val
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
1136 def GetY(self
, *_args
, **_kwargs
):
1137 val
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
1139 def GetW(self
, *_args
, **_kwargs
):
1140 val
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
1142 def GetWidth(self
, *_args
, **_kwargs
):
1143 val
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
1145 def GetH(self
, *_args
, **_kwargs
):
1146 val
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
1148 def GetHeight(self
, *_args
, **_kwargs
):
1149 val
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
1151 def GetRect(self
, *_args
, **_kwargs
):
1152 val
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
1153 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1155 def HaveRects(self
, *_args
, **_kwargs
):
1156 val
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
1158 def Reset(self
, *_args
, **_kwargs
):
1159 val
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
1161 def Next(self
, *_args
, **_kwargs
):
1162 val
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
1165 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
1166 class wxRegionIterator(wxRegionIteratorPtr
):
1167 def __init__(self
,*_args
,**_kwargs
):
1168 self
.this
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
)
1176 #-------------- FUNCTION WRAPPERS ------------------
1178 def wxEmptyBitmap(*_args
, **_kwargs
):
1179 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
1180 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1183 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1184 val
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
)
1185 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1188 def wxBitmapFromIcon(*_args
, **_kwargs
):
1189 val
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
)
1190 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1193 def wxBitmapFromBits(*_args
, **_kwargs
):
1194 val
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
)
1195 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1198 def wxMaskColour(*_args
, **_kwargs
):
1199 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
1200 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1203 def wxEmptyIcon(*_args
, **_kwargs
):
1204 val
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
)
1205 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1208 def wxIconFromXPMData(*_args
, **_kwargs
):
1209 val
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
)
1210 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1213 def wxStockCursor(*_args
, **_kwargs
):
1214 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
1215 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1218 def wxNamedColour(*_args
, **_kwargs
):
1219 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
1220 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1223 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1224 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
1225 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1228 wxFontMapper_GetEncodingName
= gdic
.wxFontMapper_GetEncodingName
1230 wxFontMapper_GetEncodingDescription
= gdic
.wxFontMapper_GetEncodingDescription
1232 wxFontMapper_GetDefaultConfigPath
= gdic
.wxFontMapper_GetDefaultConfigPath
1234 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
1236 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
1240 #-------------- VARIABLE WRAPPERS ------------------
1242 wxFONTFAMILY_DEFAULT
= gdic
.wxFONTFAMILY_DEFAULT
1243 wxFONTFAMILY_DECORATIVE
= gdic
.wxFONTFAMILY_DECORATIVE
1244 wxFONTFAMILY_ROMAN
= gdic
.wxFONTFAMILY_ROMAN
1245 wxFONTFAMILY_SCRIPT
= gdic
.wxFONTFAMILY_SCRIPT
1246 wxFONTFAMILY_SWISS
= gdic
.wxFONTFAMILY_SWISS
1247 wxFONTFAMILY_MODERN
= gdic
.wxFONTFAMILY_MODERN
1248 wxFONTFAMILY_TELETYPE
= gdic
.wxFONTFAMILY_TELETYPE
1249 wxFONTFAMILY_MAX
= gdic
.wxFONTFAMILY_MAX
1250 wxFONTSTYLE_NORMAL
= gdic
.wxFONTSTYLE_NORMAL
1251 wxFONTSTYLE_ITALIC
= gdic
.wxFONTSTYLE_ITALIC
1252 wxFONTSTYLE_SLANT
= gdic
.wxFONTSTYLE_SLANT
1253 wxFONTSTYLE_MAX
= gdic
.wxFONTSTYLE_MAX
1254 wxFONTWEIGHT_NORMAL
= gdic
.wxFONTWEIGHT_NORMAL
1255 wxFONTWEIGHT_LIGHT
= gdic
.wxFONTWEIGHT_LIGHT
1256 wxFONTWEIGHT_BOLD
= gdic
.wxFONTWEIGHT_BOLD
1257 wxFONTWEIGHT_MAX
= gdic
.wxFONTWEIGHT_MAX
1258 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
1259 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
1260 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
1261 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
1262 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
1263 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
1264 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
1265 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
1266 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
1267 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
1268 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
1269 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
1270 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
1271 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
1272 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
1273 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
1274 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
1275 wxFONTENCODING_ISO8859_MAX
= gdic
.wxFONTENCODING_ISO8859_MAX
1276 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
1277 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
1278 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
1279 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
1280 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
1281 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
1282 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
1283 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
1284 wxFONTENCODING_CP874
= gdic
.wxFONTENCODING_CP874
1285 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
1286 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
1287 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
1288 wxFONTENCODING_CP1253
= gdic
.wxFONTENCODING_CP1253
1289 wxFONTENCODING_CP1254
= gdic
.wxFONTENCODING_CP1254
1290 wxFONTENCODING_CP1255
= gdic
.wxFONTENCODING_CP1255
1291 wxFONTENCODING_CP1256
= gdic
.wxFONTENCODING_CP1256
1292 wxFONTENCODING_CP1257
= gdic
.wxFONTENCODING_CP1257
1293 wxFONTENCODING_CP12_MAX
= gdic
.wxFONTENCODING_CP12_MAX
1294 wxFONTENCODING_UTF7
= gdic
.wxFONTENCODING_UTF7
1295 wxFONTENCODING_UTF8
= gdic
.wxFONTENCODING_UTF8
1296 wxFONTENCODING_UNICODE
= gdic
.wxFONTENCODING_UNICODE
1297 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
1299 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1300 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1301 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1302 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1303 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1304 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1305 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1306 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1307 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1308 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1309 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1310 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1311 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1312 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1313 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1314 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1315 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1316 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1317 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1318 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1319 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1320 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1321 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1322 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1323 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1324 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1325 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1326 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1327 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1328 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1329 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1330 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1331 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1332 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1333 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1334 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1335 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1336 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1337 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1338 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1339 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1340 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1341 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1342 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1343 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1344 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)
1345 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1346 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1347 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1348 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1349 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1350 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1351 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1352 wxOutRegion
= gdic
.wxOutRegion
1353 wxPartRegion
= gdic
.wxPartRegion
1354 wxInRegion
= gdic
.wxInRegion