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 Ok(self
, *_args
, **_kwargs
):
126 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
128 def GetWidth(self
, *_args
, **_kwargs
):
129 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
131 def GetHeight(self
, *_args
, **_kwargs
):
132 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
134 def GetDepth(self
, *_args
, **_kwargs
):
135 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
137 def SetWidth(self
, *_args
, **_kwargs
):
138 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
140 def SetHeight(self
, *_args
, **_kwargs
):
141 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
143 def SetDepth(self
, *_args
, **_kwargs
):
144 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
146 def CopyFromBitmap(self
, *_args
, **_kwargs
):
147 val
= apply(gdic
.wxIcon_CopyFromBitmap
,(self
,) + _args
, _kwargs
)
150 return "<C wxIcon instance at %s>" % (self
.this
,)
152 def __del__(self
,gdic
=gdic
):
154 if self
.thisown
== 1 :
155 gdic
.delete_wxIcon(self
)
159 class wxIcon(wxIconPtr
):
160 def __init__(self
,*_args
,**_kwargs
):
161 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
167 class wxCursorPtr(wxGDIObjectPtr
):
168 def __init__(self
,this
):
171 def __del__(self
,gdic
=gdic
):
172 if self
.thisown
== 1 :
173 gdic
.delete_wxCursor(self
)
174 def Ok(self
, *_args
, **_kwargs
):
175 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
178 return "<C wxCursor instance at %s>" % (self
.this
,)
179 class wxCursor(wxCursorPtr
):
180 def __init__(self
,this
):
186 class wxNativeFontInfoPtr
:
187 def __init__(self
,this
):
190 def Init(self
, *_args
, **_kwargs
):
191 val
= apply(gdic
.wxNativeFontInfo_Init
,(self
,) + _args
, _kwargs
)
193 def GetPointSize(self
, *_args
, **_kwargs
):
194 val
= apply(gdic
.wxNativeFontInfo_GetPointSize
,(self
,) + _args
, _kwargs
)
196 def GetStyle(self
, *_args
, **_kwargs
):
197 val
= apply(gdic
.wxNativeFontInfo_GetStyle
,(self
,) + _args
, _kwargs
)
199 def GetWeight(self
, *_args
, **_kwargs
):
200 val
= apply(gdic
.wxNativeFontInfo_GetWeight
,(self
,) + _args
, _kwargs
)
202 def GetUnderlined(self
, *_args
, **_kwargs
):
203 val
= apply(gdic
.wxNativeFontInfo_GetUnderlined
,(self
,) + _args
, _kwargs
)
205 def GetFaceName(self
, *_args
, **_kwargs
):
206 val
= apply(gdic
.wxNativeFontInfo_GetFaceName
,(self
,) + _args
, _kwargs
)
208 def GetFamily(self
, *_args
, **_kwargs
):
209 val
= apply(gdic
.wxNativeFontInfo_GetFamily
,(self
,) + _args
, _kwargs
)
211 def GetEncoding(self
, *_args
, **_kwargs
):
212 val
= apply(gdic
.wxNativeFontInfo_GetEncoding
,(self
,) + _args
, _kwargs
)
214 def SetPointSize(self
, *_args
, **_kwargs
):
215 val
= apply(gdic
.wxNativeFontInfo_SetPointSize
,(self
,) + _args
, _kwargs
)
217 def SetStyle(self
, *_args
, **_kwargs
):
218 val
= apply(gdic
.wxNativeFontInfo_SetStyle
,(self
,) + _args
, _kwargs
)
220 def SetWeight(self
, *_args
, **_kwargs
):
221 val
= apply(gdic
.wxNativeFontInfo_SetWeight
,(self
,) + _args
, _kwargs
)
223 def SetUnderlined(self
, *_args
, **_kwargs
):
224 val
= apply(gdic
.wxNativeFontInfo_SetUnderlined
,(self
,) + _args
, _kwargs
)
226 def SetFaceName(self
, *_args
, **_kwargs
):
227 val
= apply(gdic
.wxNativeFontInfo_SetFaceName
,(self
,) + _args
, _kwargs
)
229 def SetFamily(self
, *_args
, **_kwargs
):
230 val
= apply(gdic
.wxNativeFontInfo_SetFamily
,(self
,) + _args
, _kwargs
)
232 def SetEncoding(self
, *_args
, **_kwargs
):
233 val
= apply(gdic
.wxNativeFontInfo_SetEncoding
,(self
,) + _args
, _kwargs
)
235 def FromString(self
, *_args
, **_kwargs
):
236 val
= apply(gdic
.wxNativeFontInfo_FromString
,(self
,) + _args
, _kwargs
)
238 def ToString(self
, *_args
, **_kwargs
):
239 val
= apply(gdic
.wxNativeFontInfo_ToString
,(self
,) + _args
, _kwargs
)
241 def __str__(self
, *_args
, **_kwargs
):
242 val
= apply(gdic
.wxNativeFontInfo___str__
,(self
,) + _args
, _kwargs
)
244 def FromUserString(self
, *_args
, **_kwargs
):
245 val
= apply(gdic
.wxNativeFontInfo_FromUserString
,(self
,) + _args
, _kwargs
)
247 def ToUserString(self
, *_args
, **_kwargs
):
248 val
= apply(gdic
.wxNativeFontInfo_ToUserString
,(self
,) + _args
, _kwargs
)
251 return "<C wxNativeFontInfo instance at %s>" % (self
.this
,)
252 class wxNativeFontInfo(wxNativeFontInfoPtr
):
253 def __init__(self
,*_args
,**_kwargs
):
254 self
.this
= apply(gdic
.new_wxNativeFontInfo
,_args
,_kwargs
)
260 class wxFontMapperPtr
:
261 def __init__(self
,this
):
264 def __del__(self
,gdic
=gdic
):
265 if self
.thisown
== 1 :
266 gdic
.delete_wxFontMapper(self
)
267 def GetAltForEncoding(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxFontMapper_GetAltForEncoding
,(self
,) + _args
, _kwargs
)
270 def IsEncodingAvailable(self
, *_args
, **_kwargs
):
271 val
= apply(gdic
.wxFontMapper_IsEncodingAvailable
,(self
,) + _args
, _kwargs
)
273 def CharsetToEncoding(self
, *_args
, **_kwargs
):
274 val
= apply(gdic
.wxFontMapper_CharsetToEncoding
,(self
,) + _args
, _kwargs
)
276 def SetDialogParent(self
, *_args
, **_kwargs
):
277 val
= apply(gdic
.wxFontMapper_SetDialogParent
,(self
,) + _args
, _kwargs
)
279 def SetDialogTitle(self
, *_args
, **_kwargs
):
280 val
= apply(gdic
.wxFontMapper_SetDialogTitle
,(self
,) + _args
, _kwargs
)
282 def SetConfig(self
, *_args
, **_kwargs
):
283 val
= apply(gdic
.wxFontMapper_SetConfig
,(self
,) + _args
, _kwargs
)
285 def SetConfigPath(self
, *_args
, **_kwargs
):
286 val
= apply(gdic
.wxFontMapper_SetConfigPath
,(self
,) + _args
, _kwargs
)
289 return "<C wxFontMapper instance at %s>" % (self
.this
,)
290 class wxFontMapper(wxFontMapperPtr
):
291 def __init__(self
,*_args
,**_kwargs
):
292 self
.this
= apply(gdic
.new_wxFontMapper
,_args
,_kwargs
)
298 class wxFontPtr(wxGDIObjectPtr
):
299 def __init__(self
,this
):
302 def __del__(self
,gdic
=gdic
):
303 if self
.thisown
== 1 :
304 gdic
.delete_wxFont(self
)
305 def Ok(self
, *_args
, **_kwargs
):
306 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
308 def GetPointSize(self
, *_args
, **_kwargs
):
309 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
311 def GetFamily(self
, *_args
, **_kwargs
):
312 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
314 def GetStyle(self
, *_args
, **_kwargs
):
315 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
317 def GetWeight(self
, *_args
, **_kwargs
):
318 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
320 def GetUnderlined(self
, *_args
, **_kwargs
):
321 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
323 def GetFaceName(self
, *_args
, **_kwargs
):
324 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
326 def GetEncoding(self
, *_args
, **_kwargs
):
327 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
329 def IsFixedWidth(self
, *_args
, **_kwargs
):
330 val
= apply(gdic
.wxFont_IsFixedWidth
,(self
,) + _args
, _kwargs
)
332 def GetNativeFontInfo(self
, *_args
, **_kwargs
):
333 val
= apply(gdic
.wxFont_GetNativeFontInfo
,(self
,) + _args
, _kwargs
)
334 if val
: val
= wxNativeFontInfoPtr(val
)
336 def GetNativeFontInfoDesc(self
, *_args
, **_kwargs
):
337 val
= apply(gdic
.wxFont_GetNativeFontInfoDesc
,(self
,) + _args
, _kwargs
)
339 def GetNativeFontInfoUserDesc(self
, *_args
, **_kwargs
):
340 val
= apply(gdic
.wxFont_GetNativeFontInfoUserDesc
,(self
,) + _args
, _kwargs
)
342 def SetPointSize(self
, *_args
, **_kwargs
):
343 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
345 def SetFamily(self
, *_args
, **_kwargs
):
346 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
348 def SetStyle(self
, *_args
, **_kwargs
):
349 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
351 def SetWeight(self
, *_args
, **_kwargs
):
352 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
354 def SetFaceName(self
, *_args
, **_kwargs
):
355 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
357 def SetUnderlined(self
, *_args
, **_kwargs
):
358 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
360 def SetEncoding(self
, *_args
, **_kwargs
):
361 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
363 def SetNativeFontInfo(self
, *_args
, **_kwargs
):
364 val
= apply(gdic
.wxFont_SetNativeFontInfo
,(self
,) + _args
, _kwargs
)
366 def SetNativeFontInfoUserDesc(self
, *_args
, **_kwargs
):
367 val
= apply(gdic
.wxFont_SetNativeFontInfoUserDesc
,(self
,) + _args
, _kwargs
)
369 def GetFamilyString(self
, *_args
, **_kwargs
):
370 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
372 def GetStyleString(self
, *_args
, **_kwargs
):
373 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
375 def GetWeightString(self
, *_args
, **_kwargs
):
376 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
379 return "<C wxFont instance at %s>" % (self
.this
,)
380 class wxFont(wxFontPtr
):
381 def __init__(self
,*_args
,**_kwargs
):
382 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
387 def wxFontFromNativeInfo(*_args
,**_kwargs
):
388 val
= wxFontPtr(apply(gdic
.new_wxFontFromNativeInfo
,_args
,_kwargs
))
393 class wxFontListPtr(wxObjectPtr
):
394 def __init__(self
,this
):
397 def AddFont(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxFontList_AddFont
,(self
,) + _args
, _kwargs
)
400 def FindOrCreateFont(self
, *_args
, **_kwargs
):
401 val
= apply(gdic
.wxFontList_FindOrCreateFont
,(self
,) + _args
, _kwargs
)
402 if val
: val
= wxFontPtr(val
)
404 def RemoveFont(self
, *_args
, **_kwargs
):
405 val
= apply(gdic
.wxFontList_RemoveFont
,(self
,) + _args
, _kwargs
)
407 def GetCount(self
, *_args
, **_kwargs
):
408 val
= apply(gdic
.wxFontList_GetCount
,(self
,) + _args
, _kwargs
)
411 return "<C wxFontList instance at %s>" % (self
.this
,)
412 class wxFontList(wxFontListPtr
):
413 def __init__(self
,this
):
419 class wxColourPtr(wxObjectPtr
):
420 def __init__(self
,this
):
423 def __del__(self
,gdic
=gdic
):
424 if self
.thisown
== 1 :
425 gdic
.delete_wxColour(self
)
426 def Red(self
, *_args
, **_kwargs
):
427 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
429 def Green(self
, *_args
, **_kwargs
):
430 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
432 def Blue(self
, *_args
, **_kwargs
):
433 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
435 def Ok(self
, *_args
, **_kwargs
):
436 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
438 def Set(self
, *_args
, **_kwargs
):
439 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
441 def Get(self
, *_args
, **_kwargs
):
442 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
445 return "<C wxColour instance at %s>" % (self
.this
,)
447 def __str__(self
): return str(self
.asTuple())
448 def __repr__(self
): return str(self
.asTuple())
449 class wxColour(wxColourPtr
):
450 def __init__(self
,*_args
,**_kwargs
):
451 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
457 class wxColourDatabasePtr(wxObjectPtr
):
458 def __init__(self
,this
):
461 def FindColour(self
, *_args
, **_kwargs
):
462 val
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
)
463 if val
: val
= wxColourPtr(val
)
465 def FindName(self
, *_args
, **_kwargs
):
466 val
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
)
468 def Append(self
, *_args
, **_kwargs
):
469 val
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
)
472 return "<C wxColourDatabase instance at %s>" % (self
.this
,)
473 class wxColourDatabase(wxColourDatabasePtr
):
474 def __init__(self
,this
):
480 class wxPenPtr(wxGDIObjectPtr
):
481 def __init__(self
,this
):
484 def __del__(self
,gdic
=gdic
):
485 if self
.thisown
== 1 :
486 gdic
.delete_wxPen(self
)
487 def GetCap(self
, *_args
, **_kwargs
):
488 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
490 def GetColour(self
, *_args
, **_kwargs
):
491 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
492 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
494 def GetJoin(self
, *_args
, **_kwargs
):
495 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
497 def GetStyle(self
, *_args
, **_kwargs
):
498 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
500 def GetWidth(self
, *_args
, **_kwargs
):
501 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
503 def Ok(self
, *_args
, **_kwargs
):
504 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
506 def SetCap(self
, *_args
, **_kwargs
):
507 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
509 def SetColour(self
, *_args
, **_kwargs
):
510 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
512 def SetJoin(self
, *_args
, **_kwargs
):
513 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
515 def SetStyle(self
, *_args
, **_kwargs
):
516 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
518 def SetWidth(self
, *_args
, **_kwargs
):
519 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
521 def SetDashes(self
, *_args
, **_kwargs
):
522 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
525 return "<C wxPen instance at %s>" % (self
.this
,)
526 class wxPen(wxPenPtr
):
527 def __init__(self
,*_args
,**_kwargs
):
528 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
534 class wxPyPenPtr(wxPenPtr
):
535 def __init__(self
,this
):
538 def __del__(self
,gdic
=gdic
):
539 if self
.thisown
== 1 :
540 gdic
.delete_wxPyPen(self
)
541 def SetDashes(self
, *_args
, **_kwargs
):
542 val
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
)
545 return "<C wxPyPen instance at %s>" % (self
.this
,)
546 class wxPyPen(wxPyPenPtr
):
547 def __init__(self
,*_args
,**_kwargs
):
548 self
.this
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
)
554 class wxPenListPtr(wxObjectPtr
):
555 def __init__(self
,this
):
558 def AddPen(self
, *_args
, **_kwargs
):
559 val
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
)
561 def FindOrCreatePen(self
, *_args
, **_kwargs
):
562 val
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
)
563 if val
: val
= wxPenPtr(val
)
565 def RemovePen(self
, *_args
, **_kwargs
):
566 val
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
)
568 def GetCount(self
, *_args
, **_kwargs
):
569 val
= apply(gdic
.wxPenList_GetCount
,(self
,) + _args
, _kwargs
)
572 return "<C wxPenList instance at %s>" % (self
.this
,)
573 class wxPenList(wxPenListPtr
):
574 def __init__(self
,this
):
580 class wxBrushPtr(wxGDIObjectPtr
):
581 def __init__(self
,this
):
584 def __del__(self
,gdic
=gdic
):
585 if self
.thisown
== 1 :
586 gdic
.delete_wxBrush(self
)
587 def GetColour(self
, *_args
, **_kwargs
):
588 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
589 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
591 def GetStipple(self
, *_args
, **_kwargs
):
592 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
593 if val
: val
= wxBitmapPtr(val
)
595 def GetStyle(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
598 def Ok(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
601 def SetColour(self
, *_args
, **_kwargs
):
602 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
604 def SetStipple(self
, *_args
, **_kwargs
):
605 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
607 def SetStyle(self
, *_args
, **_kwargs
):
608 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
611 return "<C wxBrush instance at %s>" % (self
.this
,)
612 class wxBrush(wxBrushPtr
):
613 def __init__(self
,*_args
,**_kwargs
):
614 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
620 class wxBrushListPtr(wxObjectPtr
):
621 def __init__(self
,this
):
624 def AddBrush(self
, *_args
, **_kwargs
):
625 val
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
)
627 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
628 val
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
)
629 if val
: val
= wxBrushPtr(val
)
631 def RemoveBrush(self
, *_args
, **_kwargs
):
632 val
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
)
634 def GetCount(self
, *_args
, **_kwargs
):
635 val
= apply(gdic
.wxBrushList_GetCount
,(self
,) + _args
, _kwargs
)
638 return "<C wxBrushList instance at %s>" % (self
.this
,)
639 class wxBrushList(wxBrushListPtr
):
640 def __init__(self
,this
):
646 class wxDCPtr(wxObjectPtr
):
647 def __init__(self
,this
):
650 def __del__(self
,gdic
=gdic
):
651 if self
.thisown
== 1 :
652 gdic
.delete_wxDC(self
)
653 def BeginDrawing(self
, *_args
, **_kwargs
):
654 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
656 def Blit(self
, *_args
, **_kwargs
):
657 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
659 def Clear(self
, *_args
, **_kwargs
):
660 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
662 def CrossHair(self
, *_args
, **_kwargs
):
663 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
665 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
666 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
668 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
669 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
671 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
672 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
674 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
675 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
677 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
678 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
680 def DrawArc(self
, *_args
, **_kwargs
):
681 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
683 def DrawCircle(self
, *_args
, **_kwargs
):
684 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
686 def DrawEllipse(self
, *_args
, **_kwargs
):
687 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
689 def DrawEllipticArc(self
, *_args
, **_kwargs
):
690 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
692 def DrawIcon(self
, *_args
, **_kwargs
):
693 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
695 def DrawLine(self
, *_args
, **_kwargs
):
696 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
698 def DrawLines(self
, *_args
, **_kwargs
):
699 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
701 def DrawPolygon(self
, *_args
, **_kwargs
):
702 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
704 def DrawPoint(self
, *_args
, **_kwargs
):
705 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
707 def DrawRectangle(self
, *_args
, **_kwargs
):
708 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
710 def DrawRotatedText(self
, *_args
, **_kwargs
):
711 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
713 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
714 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
716 def DrawSpline(self
, *_args
, **_kwargs
):
717 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
719 def DrawText(self
, *_args
, **_kwargs
):
720 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
722 def EndDoc(self
, *_args
, **_kwargs
):
723 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
725 def EndDrawing(self
, *_args
, **_kwargs
):
726 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
728 def EndPage(self
, *_args
, **_kwargs
):
729 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
731 def FloodFill(self
, *_args
, **_kwargs
):
732 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
734 def GetBackground(self
, *_args
, **_kwargs
):
735 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
736 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
738 def GetBrush(self
, *_args
, **_kwargs
):
739 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
740 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
742 def GetCharHeight(self
, *_args
, **_kwargs
):
743 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
745 def GetCharWidth(self
, *_args
, **_kwargs
):
746 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
748 def GetClippingBox(self
, *_args
, **_kwargs
):
749 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
751 def GetFont(self
, *_args
, **_kwargs
):
752 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
753 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
755 def GetLogicalFunction(self
, *_args
, **_kwargs
):
756 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
758 def GetLogicalScale(self
, *_args
, **_kwargs
):
759 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
761 def GetMapMode(self
, *_args
, **_kwargs
):
762 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
764 def GetOptimization(self
, *_args
, **_kwargs
):
765 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
767 def GetPen(self
, *_args
, **_kwargs
):
768 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
769 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
771 def GetPixel(self
, *_args
, **_kwargs
):
772 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
773 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
775 def GetSizeTuple(self
, *_args
, **_kwargs
):
776 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
778 def GetSize(self
, *_args
, **_kwargs
):
779 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
780 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
782 def GetSizeMM(self
, *_args
, **_kwargs
):
783 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
784 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
786 def GetTextBackground(self
, *_args
, **_kwargs
):
787 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
788 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
790 def GetTextExtent(self
, *_args
, **_kwargs
):
791 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
793 def GetFullTextExtent(self
, *_args
, **_kwargs
):
794 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
796 def GetTextForeground(self
, *_args
, **_kwargs
):
797 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
798 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
800 def GetUserScale(self
, *_args
, **_kwargs
):
801 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
803 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
804 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
806 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
807 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
809 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
810 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
812 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
813 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
815 def MaxX(self
, *_args
, **_kwargs
):
816 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
818 def MaxY(self
, *_args
, **_kwargs
):
819 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
821 def MinX(self
, *_args
, **_kwargs
):
822 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
824 def MinY(self
, *_args
, **_kwargs
):
825 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
827 def Ok(self
, *_args
, **_kwargs
):
828 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
830 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
831 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
833 def SetBackground(self
, *_args
, **_kwargs
):
834 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
836 def SetBackgroundMode(self
, *_args
, **_kwargs
):
837 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
839 def SetClippingRegion(self
, *_args
, **_kwargs
):
840 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
842 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
843 val
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
)
845 def SetPalette(self
, *_args
, **_kwargs
):
846 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
848 def SetBrush(self
, *_args
, **_kwargs
):
849 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
851 def SetFont(self
, *_args
, **_kwargs
):
852 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
854 def SetLogicalFunction(self
, *_args
, **_kwargs
):
855 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
857 def SetLogicalScale(self
, *_args
, **_kwargs
):
858 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
860 def SetMapMode(self
, *_args
, **_kwargs
):
861 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
863 def SetOptimization(self
, *_args
, **_kwargs
):
864 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
866 def SetPen(self
, *_args
, **_kwargs
):
867 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
869 def SetTextBackground(self
, *_args
, **_kwargs
):
870 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
872 def SetTextForeground(self
, *_args
, **_kwargs
):
873 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
875 def SetUserScale(self
, *_args
, **_kwargs
):
876 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
878 def StartDoc(self
, *_args
, **_kwargs
):
879 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
881 def StartPage(self
, *_args
, **_kwargs
):
882 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
884 def DrawBitmap(self
, *_args
, **_kwargs
):
885 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
887 def CanDrawBitmap(self
, *_args
, **_kwargs
):
888 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
890 def CanGetTextExtent(self
, *_args
, **_kwargs
):
891 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
893 def GetDepth(self
, *_args
, **_kwargs
):
894 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
896 def GetPPI(self
, *_args
, **_kwargs
):
897 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
898 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
900 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
901 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
903 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
904 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
906 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
907 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
909 def SetAxisOrientation(self
, *_args
, **_kwargs
):
910 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
912 def CalcBoundingBox(self
, *_args
, **_kwargs
):
913 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
915 def ResetBoundingBox(self
, *_args
, **_kwargs
):
916 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
918 def GetBoundingBox(self
, *_args
, **_kwargs
):
919 val
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
)
921 def _DrawPointList(self
, *_args
, **_kwargs
):
922 val
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
)
924 def _DrawLineList(self
, *_args
, **_kwargs
):
925 val
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
)
928 return "<C wxDC instance at %s>" % (self
.this
,)
930 def DrawPointList(self
, points
, pens
=None):
933 elif isinstance(pens
, wxPenPtr
):
935 elif len(pens
) != len(points
):
936 raise ValueError('points and pens must have same length')
937 return self
._DrawPointList
(points
, pens
)
939 def DrawLineList(self
, lines
, pens
=None):
942 elif isinstance(pens
, wxPenPtr
):
944 elif len(pens
) != len(lines
):
945 raise ValueError('lines and pens must have same length')
946 return self
._DrawLineList
(lines
, pens
)
949 def __init__(self
,this
):
955 class wxMemoryDCPtr(wxDCPtr
):
956 def __init__(self
,this
):
959 def SelectObject(self
, *_args
, **_kwargs
):
960 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
963 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
964 class wxMemoryDC(wxMemoryDCPtr
):
965 def __init__(self
,*_args
,**_kwargs
):
966 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
972 class wxScreenDCPtr(wxDCPtr
):
973 def __init__(self
,this
):
976 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
977 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
979 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
980 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
982 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
983 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
986 return "<C wxScreenDC instance at %s>" % (self
.this
,)
987 class wxScreenDC(wxScreenDCPtr
):
988 def __init__(self
,*_args
,**_kwargs
):
989 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
995 class wxClientDCPtr(wxDCPtr
):
996 def __init__(self
,this
):
1000 return "<C wxClientDC instance at %s>" % (self
.this
,)
1001 class wxClientDC(wxClientDCPtr
):
1002 def __init__(self
,*_args
,**_kwargs
):
1003 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
1009 class wxPaintDCPtr(wxDCPtr
):
1010 def __init__(self
,this
):
1014 return "<C wxPaintDC instance at %s>" % (self
.this
,)
1015 class wxPaintDC(wxPaintDCPtr
):
1016 def __init__(self
,*_args
,**_kwargs
):
1017 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
1023 class wxWindowDCPtr(wxDCPtr
):
1024 def __init__(self
,this
):
1028 return "<C wxWindowDC instance at %s>" % (self
.this
,)
1029 class wxWindowDC(wxWindowDCPtr
):
1030 def __init__(self
,*_args
,**_kwargs
):
1031 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
1037 class wxPalettePtr(wxGDIObjectPtr
):
1038 def __init__(self
,this
):
1041 def __del__(self
,gdic
=gdic
):
1042 if self
.thisown
== 1 :
1043 gdic
.delete_wxPalette(self
)
1044 def GetPixel(self
, *_args
, **_kwargs
):
1045 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
1047 def GetRGB(self
, *_args
, **_kwargs
):
1048 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
1050 def Ok(self
, *_args
, **_kwargs
):
1051 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
1054 return "<C wxPalette instance at %s>" % (self
.this
,)
1055 class wxPalette(wxPalettePtr
):
1056 def __init__(self
,*_args
,**_kwargs
):
1057 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
1063 class wxImageListPtr(wxObjectPtr
):
1064 def __init__(self
,this
):
1067 def __del__(self
,gdic
=gdic
):
1068 if self
.thisown
== 1 :
1069 gdic
.delete_wxImageList(self
)
1070 def Add(self
, *_args
, **_kwargs
):
1071 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
1073 def AddWithColourMask(self
, *_args
, **_kwargs
):
1074 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
1076 def AddIcon(self
, *_args
, **_kwargs
):
1077 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
1079 def Replace(self
, *_args
, **_kwargs
):
1080 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
1082 def Draw(self
, *_args
, **_kwargs
):
1083 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
1085 def GetImageCount(self
, *_args
, **_kwargs
):
1086 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
1088 def Remove(self
, *_args
, **_kwargs
):
1089 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
1091 def RemoveAll(self
, *_args
, **_kwargs
):
1092 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
1094 def GetSize(self
, *_args
, **_kwargs
):
1095 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
1098 return "<C wxImageList instance at %s>" % (self
.this
,)
1099 class wxImageList(wxImageListPtr
):
1100 def __init__(self
,*_args
,**_kwargs
):
1101 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
1107 class wxRegionPtr(wxGDIObjectPtr
):
1108 def __init__(self
,this
):
1111 def __del__(self
,gdic
=gdic
):
1112 if self
.thisown
== 1 :
1113 gdic
.delete_wxRegion(self
)
1114 def Clear(self
, *_args
, **_kwargs
):
1115 val
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
1117 def Contains(self
, *_args
, **_kwargs
):
1118 val
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
1120 def ContainsPoint(self
, *_args
, **_kwargs
):
1121 val
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
1123 def ContainsRect(self
, *_args
, **_kwargs
):
1124 val
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
1126 def ContainsRectDim(self
, *_args
, **_kwargs
):
1127 val
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
)
1129 def GetBox(self
, *_args
, **_kwargs
):
1130 val
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
1131 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1133 def Intersect(self
, *_args
, **_kwargs
):
1134 val
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
1136 def IntersectRect(self
, *_args
, **_kwargs
):
1137 val
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
)
1139 def IntersectRegion(self
, *_args
, **_kwargs
):
1140 val
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
)
1142 def IsEmpty(self
, *_args
, **_kwargs
):
1143 val
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
1145 def Union(self
, *_args
, **_kwargs
):
1146 val
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
1148 def UnionRect(self
, *_args
, **_kwargs
):
1149 val
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
)
1151 def UnionRegion(self
, *_args
, **_kwargs
):
1152 val
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
)
1154 def Subtract(self
, *_args
, **_kwargs
):
1155 val
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
1157 def SubtractRect(self
, *_args
, **_kwargs
):
1158 val
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
)
1160 def SubtractRegion(self
, *_args
, **_kwargs
):
1161 val
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
)
1163 def Xor(self
, *_args
, **_kwargs
):
1164 val
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
1166 def XorRect(self
, *_args
, **_kwargs
):
1167 val
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
)
1169 def XorRegion(self
, *_args
, **_kwargs
):
1170 val
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
)
1173 return "<C wxRegion instance at %s>" % (self
.this
,)
1174 class wxRegion(wxRegionPtr
):
1175 def __init__(self
,*_args
,**_kwargs
):
1176 self
.this
= apply(gdic
.new_wxRegion
,_args
,_kwargs
)
1182 class wxRegionIteratorPtr(wxObjectPtr
):
1183 def __init__(self
,this
):
1186 def __del__(self
,gdic
=gdic
):
1187 if self
.thisown
== 1 :
1188 gdic
.delete_wxRegionIterator(self
)
1189 def GetX(self
, *_args
, **_kwargs
):
1190 val
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
1192 def GetY(self
, *_args
, **_kwargs
):
1193 val
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
1195 def GetW(self
, *_args
, **_kwargs
):
1196 val
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
1198 def GetWidth(self
, *_args
, **_kwargs
):
1199 val
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
1201 def GetH(self
, *_args
, **_kwargs
):
1202 val
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
1204 def GetHeight(self
, *_args
, **_kwargs
):
1205 val
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
1207 def GetRect(self
, *_args
, **_kwargs
):
1208 val
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
1209 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1211 def HaveRects(self
, *_args
, **_kwargs
):
1212 val
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
1214 def Reset(self
, *_args
, **_kwargs
):
1215 val
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
1217 def Next(self
, *_args
, **_kwargs
):
1218 val
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
1221 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
1222 class wxRegionIterator(wxRegionIteratorPtr
):
1223 def __init__(self
,*_args
,**_kwargs
):
1224 self
.this
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
)
1232 #-------------- FUNCTION WRAPPERS ------------------
1234 def wxEmptyBitmap(*_args
, **_kwargs
):
1235 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
1236 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1239 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1240 val
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
)
1241 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1244 def wxBitmapFromIcon(*_args
, **_kwargs
):
1245 val
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
)
1246 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1249 def wxBitmapFromBits(*_args
, **_kwargs
):
1250 val
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
)
1251 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1254 def wxMaskColour(*_args
, **_kwargs
):
1255 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
1256 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1259 def wxEmptyIcon(*_args
, **_kwargs
):
1260 val
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
)
1261 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1264 def wxIconFromXPMData(*_args
, **_kwargs
):
1265 val
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
)
1266 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1269 def wxStockCursor(*_args
, **_kwargs
):
1270 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
1271 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1274 def wxNamedColour(*_args
, **_kwargs
):
1275 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
1276 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1279 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1280 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
1281 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1284 wxFontMapper_GetEncodingName
= gdic
.wxFontMapper_GetEncodingName
1286 wxFontMapper_GetEncodingDescription
= gdic
.wxFontMapper_GetEncodingDescription
1288 wxFontMapper_GetDefaultConfigPath
= gdic
.wxFontMapper_GetDefaultConfigPath
1290 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
1292 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
1296 #-------------- VARIABLE WRAPPERS ------------------
1298 wxFONTFAMILY_DEFAULT
= gdic
.wxFONTFAMILY_DEFAULT
1299 wxFONTFAMILY_DECORATIVE
= gdic
.wxFONTFAMILY_DECORATIVE
1300 wxFONTFAMILY_ROMAN
= gdic
.wxFONTFAMILY_ROMAN
1301 wxFONTFAMILY_SCRIPT
= gdic
.wxFONTFAMILY_SCRIPT
1302 wxFONTFAMILY_SWISS
= gdic
.wxFONTFAMILY_SWISS
1303 wxFONTFAMILY_MODERN
= gdic
.wxFONTFAMILY_MODERN
1304 wxFONTFAMILY_TELETYPE
= gdic
.wxFONTFAMILY_TELETYPE
1305 wxFONTFAMILY_MAX
= gdic
.wxFONTFAMILY_MAX
1306 wxFONTFAMILY_UNKNOWN
= gdic
.wxFONTFAMILY_UNKNOWN
1307 wxFONTSTYLE_NORMAL
= gdic
.wxFONTSTYLE_NORMAL
1308 wxFONTSTYLE_ITALIC
= gdic
.wxFONTSTYLE_ITALIC
1309 wxFONTSTYLE_SLANT
= gdic
.wxFONTSTYLE_SLANT
1310 wxFONTSTYLE_MAX
= gdic
.wxFONTSTYLE_MAX
1311 wxFONTWEIGHT_NORMAL
= gdic
.wxFONTWEIGHT_NORMAL
1312 wxFONTWEIGHT_LIGHT
= gdic
.wxFONTWEIGHT_LIGHT
1313 wxFONTWEIGHT_BOLD
= gdic
.wxFONTWEIGHT_BOLD
1314 wxFONTWEIGHT_MAX
= gdic
.wxFONTWEIGHT_MAX
1315 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
1316 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
1317 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
1318 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
1319 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
1320 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
1321 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
1322 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
1323 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
1324 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
1325 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
1326 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
1327 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
1328 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
1329 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
1330 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
1331 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
1332 wxFONTENCODING_ISO8859_MAX
= gdic
.wxFONTENCODING_ISO8859_MAX
1333 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
1334 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
1335 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
1336 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
1337 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
1338 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
1339 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
1340 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
1341 wxFONTENCODING_CP874
= gdic
.wxFONTENCODING_CP874
1342 wxFONTENCODING_CP932
= gdic
.wxFONTENCODING_CP932
1343 wxFONTENCODING_CP936
= gdic
.wxFONTENCODING_CP936
1344 wxFONTENCODING_CP949
= gdic
.wxFONTENCODING_CP949
1345 wxFONTENCODING_CP950
= gdic
.wxFONTENCODING_CP950
1346 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
1347 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
1348 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
1349 wxFONTENCODING_CP1253
= gdic
.wxFONTENCODING_CP1253
1350 wxFONTENCODING_CP1254
= gdic
.wxFONTENCODING_CP1254
1351 wxFONTENCODING_CP1255
= gdic
.wxFONTENCODING_CP1255
1352 wxFONTENCODING_CP1256
= gdic
.wxFONTENCODING_CP1256
1353 wxFONTENCODING_CP1257
= gdic
.wxFONTENCODING_CP1257
1354 wxFONTENCODING_CP12_MAX
= gdic
.wxFONTENCODING_CP12_MAX
1355 wxFONTENCODING_UTF7
= gdic
.wxFONTENCODING_UTF7
1356 wxFONTENCODING_UTF8
= gdic
.wxFONTENCODING_UTF8
1357 wxFONTENCODING_UNICODE
= gdic
.wxFONTENCODING_UNICODE
1358 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
1359 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1360 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1361 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1362 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1363 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1364 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1365 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1366 wxOutRegion
= gdic
.wxOutRegion
1367 wxPartRegion
= gdic
.wxPartRegion
1368 wxInRegion
= gdic
.wxInRegion
1370 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1371 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1372 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1373 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1374 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1375 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1376 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1377 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1378 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1379 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1380 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1381 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1382 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1383 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1384 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1385 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1386 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1387 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1388 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1389 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1390 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1391 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1392 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1393 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1394 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1395 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1396 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1397 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1398 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1399 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1400 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1401 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1402 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1403 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1404 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1405 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1406 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1407 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1408 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1409 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1410 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1411 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1412 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1413 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1414 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1415 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)