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 FromXFontName(self
, *_args
, **_kwargs
):
194 val
= apply(gdic
.wxNativeFontInfo_FromXFontName
,(self
,) + _args
, _kwargs
)
196 def IsDefault(self
, *_args
, **_kwargs
):
197 val
= apply(gdic
.wxNativeFontInfo_IsDefault
,(self
,) + _args
, _kwargs
)
199 def GetXFontName(self
, *_args
, **_kwargs
):
200 val
= apply(gdic
.wxNativeFontInfo_GetXFontName
,(self
,) + _args
, _kwargs
)
202 def SetXFontName(self
, *_args
, **_kwargs
):
203 val
= apply(gdic
.wxNativeFontInfo_SetXFontName
,(self
,) + _args
, _kwargs
)
205 def Init(self
, *_args
, **_kwargs
):
206 val
= apply(gdic
.wxNativeFontInfo_Init
,(self
,) + _args
, _kwargs
)
208 def FromString(self
, *_args
, **_kwargs
):
209 val
= apply(gdic
.wxNativeFontInfo_FromString
,(self
,) + _args
, _kwargs
)
211 def ToString(self
, *_args
, **_kwargs
):
212 val
= apply(gdic
.wxNativeFontInfo_ToString
,(self
,) + _args
, _kwargs
)
214 def __str__(self
, *_args
, **_kwargs
):
215 val
= apply(gdic
.wxNativeFontInfo___str__
,(self
,) + _args
, _kwargs
)
217 def FromUserString(self
, *_args
, **_kwargs
):
218 val
= apply(gdic
.wxNativeFontInfo_FromUserString
,(self
,) + _args
, _kwargs
)
220 def ToUserString(self
, *_args
, **_kwargs
):
221 val
= apply(gdic
.wxNativeFontInfo_ToUserString
,(self
,) + _args
, _kwargs
)
224 return "<C wxNativeFontInfo instance at %s>" % (self
.this
,)
225 class wxNativeFontInfo(wxNativeFontInfoPtr
):
226 def __init__(self
,*_args
,**_kwargs
):
227 self
.this
= apply(gdic
.new_wxNativeFontInfo
,_args
,_kwargs
)
233 class wxFontMapperPtr
:
234 def __init__(self
,this
):
237 def __del__(self
,gdic
=gdic
):
238 if self
.thisown
== 1 :
239 gdic
.delete_wxFontMapper(self
)
240 def GetAltForEncoding(self
, *_args
, **_kwargs
):
241 val
= apply(gdic
.wxFontMapper_GetAltForEncoding
,(self
,) + _args
, _kwargs
)
243 def IsEncodingAvailable(self
, *_args
, **_kwargs
):
244 val
= apply(gdic
.wxFontMapper_IsEncodingAvailable
,(self
,) + _args
, _kwargs
)
246 def CharsetToEncoding(self
, *_args
, **_kwargs
):
247 val
= apply(gdic
.wxFontMapper_CharsetToEncoding
,(self
,) + _args
, _kwargs
)
249 def SetDialogParent(self
, *_args
, **_kwargs
):
250 val
= apply(gdic
.wxFontMapper_SetDialogParent
,(self
,) + _args
, _kwargs
)
252 def SetDialogTitle(self
, *_args
, **_kwargs
):
253 val
= apply(gdic
.wxFontMapper_SetDialogTitle
,(self
,) + _args
, _kwargs
)
255 def SetConfig(self
, *_args
, **_kwargs
):
256 val
= apply(gdic
.wxFontMapper_SetConfig
,(self
,) + _args
, _kwargs
)
258 def SetConfigPath(self
, *_args
, **_kwargs
):
259 val
= apply(gdic
.wxFontMapper_SetConfigPath
,(self
,) + _args
, _kwargs
)
262 return "<C wxFontMapper instance at %s>" % (self
.this
,)
263 class wxFontMapper(wxFontMapperPtr
):
264 def __init__(self
,*_args
,**_kwargs
):
265 self
.this
= apply(gdic
.new_wxFontMapper
,_args
,_kwargs
)
271 class wxFontPtr(wxGDIObjectPtr
):
272 def __init__(self
,this
):
275 def __del__(self
,gdic
=gdic
):
276 if self
.thisown
== 1 :
277 gdic
.delete_wxFont(self
)
278 def Ok(self
, *_args
, **_kwargs
):
279 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
281 def GetPointSize(self
, *_args
, **_kwargs
):
282 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
284 def GetFamily(self
, *_args
, **_kwargs
):
285 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
287 def GetStyle(self
, *_args
, **_kwargs
):
288 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
290 def GetWeight(self
, *_args
, **_kwargs
):
291 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
293 def GetUnderlined(self
, *_args
, **_kwargs
):
294 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
296 def GetFaceName(self
, *_args
, **_kwargs
):
297 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
299 def GetEncoding(self
, *_args
, **_kwargs
):
300 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
302 def IsFixedWidth(self
, *_args
, **_kwargs
):
303 val
= apply(gdic
.wxFont_IsFixedWidth
,(self
,) + _args
, _kwargs
)
305 def GetNativeFontInfo(self
, *_args
, **_kwargs
):
306 val
= apply(gdic
.wxFont_GetNativeFontInfo
,(self
,) + _args
, _kwargs
)
307 if val
: val
= wxNativeFontInfoPtr(val
)
309 def GetNativeFontInfoDesc(self
, *_args
, **_kwargs
):
310 val
= apply(gdic
.wxFont_GetNativeFontInfoDesc
,(self
,) + _args
, _kwargs
)
312 def GetNativeFontInfoUserDesc(self
, *_args
, **_kwargs
):
313 val
= apply(gdic
.wxFont_GetNativeFontInfoUserDesc
,(self
,) + _args
, _kwargs
)
315 def SetPointSize(self
, *_args
, **_kwargs
):
316 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
318 def SetFamily(self
, *_args
, **_kwargs
):
319 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
321 def SetStyle(self
, *_args
, **_kwargs
):
322 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
324 def SetWeight(self
, *_args
, **_kwargs
):
325 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
327 def SetFaceName(self
, *_args
, **_kwargs
):
328 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
330 def SetUnderlined(self
, *_args
, **_kwargs
):
331 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
333 def SetEncoding(self
, *_args
, **_kwargs
):
334 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
336 def SetNativeFontInfo(self
, *_args
, **_kwargs
):
337 val
= apply(gdic
.wxFont_SetNativeFontInfo
,(self
,) + _args
, _kwargs
)
339 def SetNativeFontInfoUserDesc(self
, *_args
, **_kwargs
):
340 val
= apply(gdic
.wxFont_SetNativeFontInfoUserDesc
,(self
,) + _args
, _kwargs
)
342 def GetFamilyString(self
, *_args
, **_kwargs
):
343 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
345 def GetStyleString(self
, *_args
, **_kwargs
):
346 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
348 def GetWeightString(self
, *_args
, **_kwargs
):
349 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
352 return "<C wxFont instance at %s>" % (self
.this
,)
353 class wxFont(wxFontPtr
):
354 def __init__(self
,*_args
,**_kwargs
):
355 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
360 def wxFontFromNativeInfo(*_args
,**_kwargs
):
361 val
= wxFontPtr(apply(gdic
.new_wxFontFromNativeInfo
,_args
,_kwargs
))
366 class wxFontListPtr(wxObjectPtr
):
367 def __init__(self
,this
):
370 def AddFont(self
, *_args
, **_kwargs
):
371 val
= apply(gdic
.wxFontList_AddFont
,(self
,) + _args
, _kwargs
)
373 def FindOrCreateFont(self
, *_args
, **_kwargs
):
374 val
= apply(gdic
.wxFontList_FindOrCreateFont
,(self
,) + _args
, _kwargs
)
375 if val
: val
= wxFontPtr(val
)
377 def RemoveFont(self
, *_args
, **_kwargs
):
378 val
= apply(gdic
.wxFontList_RemoveFont
,(self
,) + _args
, _kwargs
)
380 def GetCount(self
, *_args
, **_kwargs
):
381 val
= apply(gdic
.wxFontList_GetCount
,(self
,) + _args
, _kwargs
)
384 return "<C wxFontList instance at %s>" % (self
.this
,)
385 class wxFontList(wxFontListPtr
):
386 def __init__(self
,this
):
392 class wxColourPtr(wxObjectPtr
):
393 def __init__(self
,this
):
396 def __del__(self
,gdic
=gdic
):
397 if self
.thisown
== 1 :
398 gdic
.delete_wxColour(self
)
399 def Red(self
, *_args
, **_kwargs
):
400 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
402 def Green(self
, *_args
, **_kwargs
):
403 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
405 def Blue(self
, *_args
, **_kwargs
):
406 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
408 def Ok(self
, *_args
, **_kwargs
):
409 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
411 def Set(self
, *_args
, **_kwargs
):
412 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
414 def Get(self
, *_args
, **_kwargs
):
415 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
418 return "<C wxColour instance at %s>" % (self
.this
,)
420 def __str__(self
): return str(self
.asTuple())
421 def __repr__(self
): return str(self
.asTuple())
422 class wxColour(wxColourPtr
):
423 def __init__(self
,*_args
,**_kwargs
):
424 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
430 class wxColourDatabasePtr(wxObjectPtr
):
431 def __init__(self
,this
):
434 def FindColour(self
, *_args
, **_kwargs
):
435 val
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
)
436 if val
: val
= wxColourPtr(val
)
438 def FindName(self
, *_args
, **_kwargs
):
439 val
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
)
441 def Append(self
, *_args
, **_kwargs
):
442 val
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
)
445 return "<C wxColourDatabase instance at %s>" % (self
.this
,)
446 class wxColourDatabase(wxColourDatabasePtr
):
447 def __init__(self
,this
):
453 class wxPenPtr(wxGDIObjectPtr
):
454 def __init__(self
,this
):
457 def __del__(self
,gdic
=gdic
):
458 if self
.thisown
== 1 :
459 gdic
.delete_wxPen(self
)
460 def GetCap(self
, *_args
, **_kwargs
):
461 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
463 def GetColour(self
, *_args
, **_kwargs
):
464 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
465 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
467 def GetJoin(self
, *_args
, **_kwargs
):
468 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
470 def GetStyle(self
, *_args
, **_kwargs
):
471 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
473 def GetWidth(self
, *_args
, **_kwargs
):
474 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
476 def Ok(self
, *_args
, **_kwargs
):
477 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
479 def SetCap(self
, *_args
, **_kwargs
):
480 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
482 def SetColour(self
, *_args
, **_kwargs
):
483 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
485 def SetJoin(self
, *_args
, **_kwargs
):
486 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
488 def SetStyle(self
, *_args
, **_kwargs
):
489 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
491 def SetWidth(self
, *_args
, **_kwargs
):
492 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
494 def SetDashes(self
, *_args
, **_kwargs
):
495 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
498 return "<C wxPen instance at %s>" % (self
.this
,)
499 class wxPen(wxPenPtr
):
500 def __init__(self
,*_args
,**_kwargs
):
501 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
507 class wxPyPenPtr(wxPenPtr
):
508 def __init__(self
,this
):
511 def __del__(self
,gdic
=gdic
):
512 if self
.thisown
== 1 :
513 gdic
.delete_wxPyPen(self
)
514 def SetDashes(self
, *_args
, **_kwargs
):
515 val
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
)
518 return "<C wxPyPen instance at %s>" % (self
.this
,)
519 class wxPyPen(wxPyPenPtr
):
520 def __init__(self
,*_args
,**_kwargs
):
521 self
.this
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
)
527 class wxPenListPtr(wxObjectPtr
):
528 def __init__(self
,this
):
531 def AddPen(self
, *_args
, **_kwargs
):
532 val
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
)
534 def FindOrCreatePen(self
, *_args
, **_kwargs
):
535 val
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
)
536 if val
: val
= wxPenPtr(val
)
538 def RemovePen(self
, *_args
, **_kwargs
):
539 val
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
)
541 def GetCount(self
, *_args
, **_kwargs
):
542 val
= apply(gdic
.wxPenList_GetCount
,(self
,) + _args
, _kwargs
)
545 return "<C wxPenList instance at %s>" % (self
.this
,)
546 class wxPenList(wxPenListPtr
):
547 def __init__(self
,this
):
553 class wxBrushPtr(wxGDIObjectPtr
):
554 def __init__(self
,this
):
557 def __del__(self
,gdic
=gdic
):
558 if self
.thisown
== 1 :
559 gdic
.delete_wxBrush(self
)
560 def GetColour(self
, *_args
, **_kwargs
):
561 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
562 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
564 def GetStipple(self
, *_args
, **_kwargs
):
565 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
566 if val
: val
= wxBitmapPtr(val
)
568 def GetStyle(self
, *_args
, **_kwargs
):
569 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
571 def Ok(self
, *_args
, **_kwargs
):
572 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
574 def SetColour(self
, *_args
, **_kwargs
):
575 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
577 def SetStipple(self
, *_args
, **_kwargs
):
578 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
580 def SetStyle(self
, *_args
, **_kwargs
):
581 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
584 return "<C wxBrush instance at %s>" % (self
.this
,)
585 class wxBrush(wxBrushPtr
):
586 def __init__(self
,*_args
,**_kwargs
):
587 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
593 class wxBrushListPtr(wxObjectPtr
):
594 def __init__(self
,this
):
597 def AddBrush(self
, *_args
, **_kwargs
):
598 val
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
)
600 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
601 val
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
)
602 if val
: val
= wxBrushPtr(val
)
604 def RemoveBrush(self
, *_args
, **_kwargs
):
605 val
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
)
607 def GetCount(self
, *_args
, **_kwargs
):
608 val
= apply(gdic
.wxBrushList_GetCount
,(self
,) + _args
, _kwargs
)
611 return "<C wxBrushList instance at %s>" % (self
.this
,)
612 class wxBrushList(wxBrushListPtr
):
613 def __init__(self
,this
):
619 class wxDCPtr(wxObjectPtr
):
620 def __init__(self
,this
):
623 def __del__(self
,gdic
=gdic
):
624 if self
.thisown
== 1 :
625 gdic
.delete_wxDC(self
)
626 def BeginDrawing(self
, *_args
, **_kwargs
):
627 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
629 def Blit(self
, *_args
, **_kwargs
):
630 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
632 def Clear(self
, *_args
, **_kwargs
):
633 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
635 def CrossHair(self
, *_args
, **_kwargs
):
636 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
638 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
639 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
641 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
642 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
644 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
645 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
647 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
648 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
650 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
651 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
653 def DrawArc(self
, *_args
, **_kwargs
):
654 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
656 def DrawCircle(self
, *_args
, **_kwargs
):
657 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
659 def DrawEllipse(self
, *_args
, **_kwargs
):
660 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
662 def DrawEllipticArc(self
, *_args
, **_kwargs
):
663 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
665 def DrawIcon(self
, *_args
, **_kwargs
):
666 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
668 def DrawLine(self
, *_args
, **_kwargs
):
669 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
671 def DrawLines(self
, *_args
, **_kwargs
):
672 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
674 def DrawPolygon(self
, *_args
, **_kwargs
):
675 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
677 def DrawPoint(self
, *_args
, **_kwargs
):
678 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
680 def DrawRectangle(self
, *_args
, **_kwargs
):
681 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
683 def DrawRotatedText(self
, *_args
, **_kwargs
):
684 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
686 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
687 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
689 def DrawSpline(self
, *_args
, **_kwargs
):
690 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
692 def DrawText(self
, *_args
, **_kwargs
):
693 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
695 def EndDoc(self
, *_args
, **_kwargs
):
696 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
698 def EndDrawing(self
, *_args
, **_kwargs
):
699 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
701 def EndPage(self
, *_args
, **_kwargs
):
702 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
704 def FloodFill(self
, *_args
, **_kwargs
):
705 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
707 def GetBackground(self
, *_args
, **_kwargs
):
708 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
709 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
711 def GetBrush(self
, *_args
, **_kwargs
):
712 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
713 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
715 def GetCharHeight(self
, *_args
, **_kwargs
):
716 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
718 def GetCharWidth(self
, *_args
, **_kwargs
):
719 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
721 def GetClippingBox(self
, *_args
, **_kwargs
):
722 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
724 def GetFont(self
, *_args
, **_kwargs
):
725 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
726 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
728 def GetLogicalFunction(self
, *_args
, **_kwargs
):
729 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
731 def GetLogicalScale(self
, *_args
, **_kwargs
):
732 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
734 def GetMapMode(self
, *_args
, **_kwargs
):
735 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
737 def GetOptimization(self
, *_args
, **_kwargs
):
738 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
740 def GetPen(self
, *_args
, **_kwargs
):
741 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
742 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
744 def GetPixel(self
, *_args
, **_kwargs
):
745 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
746 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
748 def GetSizeTuple(self
, *_args
, **_kwargs
):
749 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
751 def GetSize(self
, *_args
, **_kwargs
):
752 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
753 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
755 def GetSizeMM(self
, *_args
, **_kwargs
):
756 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
757 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
759 def GetTextBackground(self
, *_args
, **_kwargs
):
760 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
761 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
763 def GetTextExtent(self
, *_args
, **_kwargs
):
764 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
766 def GetFullTextExtent(self
, *_args
, **_kwargs
):
767 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
769 def GetTextForeground(self
, *_args
, **_kwargs
):
770 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
771 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
773 def GetUserScale(self
, *_args
, **_kwargs
):
774 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
776 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
777 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
779 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
780 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
782 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
783 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
785 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
786 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
788 def MaxX(self
, *_args
, **_kwargs
):
789 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
791 def MaxY(self
, *_args
, **_kwargs
):
792 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
794 def MinX(self
, *_args
, **_kwargs
):
795 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
797 def MinY(self
, *_args
, **_kwargs
):
798 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
800 def Ok(self
, *_args
, **_kwargs
):
801 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
803 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
804 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
806 def SetBackground(self
, *_args
, **_kwargs
):
807 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
809 def SetBackgroundMode(self
, *_args
, **_kwargs
):
810 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
812 def SetClippingRegion(self
, *_args
, **_kwargs
):
813 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
815 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
816 val
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
)
818 def SetPalette(self
, *_args
, **_kwargs
):
819 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
821 def SetBrush(self
, *_args
, **_kwargs
):
822 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
824 def SetFont(self
, *_args
, **_kwargs
):
825 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
827 def SetLogicalFunction(self
, *_args
, **_kwargs
):
828 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
830 def SetLogicalScale(self
, *_args
, **_kwargs
):
831 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
833 def SetMapMode(self
, *_args
, **_kwargs
):
834 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
836 def SetOptimization(self
, *_args
, **_kwargs
):
837 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
839 def SetPen(self
, *_args
, **_kwargs
):
840 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
842 def SetTextBackground(self
, *_args
, **_kwargs
):
843 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
845 def SetTextForeground(self
, *_args
, **_kwargs
):
846 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
848 def SetUserScale(self
, *_args
, **_kwargs
):
849 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
851 def StartDoc(self
, *_args
, **_kwargs
):
852 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
854 def StartPage(self
, *_args
, **_kwargs
):
855 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
857 def DrawBitmap(self
, *_args
, **_kwargs
):
858 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
860 def CanDrawBitmap(self
, *_args
, **_kwargs
):
861 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
863 def CanGetTextExtent(self
, *_args
, **_kwargs
):
864 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
866 def GetDepth(self
, *_args
, **_kwargs
):
867 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
869 def GetPPI(self
, *_args
, **_kwargs
):
870 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
871 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
873 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
874 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
876 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
877 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
879 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
880 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
882 def SetAxisOrientation(self
, *_args
, **_kwargs
):
883 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
885 def CalcBoundingBox(self
, *_args
, **_kwargs
):
886 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
888 def ResetBoundingBox(self
, *_args
, **_kwargs
):
889 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
891 def GetBoundingBox(self
, *_args
, **_kwargs
):
892 val
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
)
894 def _DrawPointList(self
, *_args
, **_kwargs
):
895 val
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
)
897 def _DrawLineList(self
, *_args
, **_kwargs
):
898 val
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
)
901 return "<C wxDC instance at %s>" % (self
.this
,)
903 def DrawPointList(self
, points
, pens
=None):
906 elif isinstance(pens
, wxPenPtr
):
908 elif len(pens
) != len(points
):
909 raise ValueError('points and pens must have same length')
910 return self
._DrawPointList
(points
, pens
)
912 def DrawLineList(self
, lines
, pens
=None):
915 elif isinstance(pens
, wxPenPtr
):
917 elif len(pens
) != len(lines
):
918 raise ValueError('lines and pens must have same length')
919 return self
._DrawLineList
(lines
, pens
)
922 def __init__(self
,this
):
928 class wxMemoryDCPtr(wxDCPtr
):
929 def __init__(self
,this
):
932 def SelectObject(self
, *_args
, **_kwargs
):
933 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
936 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
937 class wxMemoryDC(wxMemoryDCPtr
):
938 def __init__(self
,*_args
,**_kwargs
):
939 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
945 class wxScreenDCPtr(wxDCPtr
):
946 def __init__(self
,this
):
949 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
950 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
952 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
953 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
955 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
956 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
959 return "<C wxScreenDC instance at %s>" % (self
.this
,)
960 class wxScreenDC(wxScreenDCPtr
):
961 def __init__(self
,*_args
,**_kwargs
):
962 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
968 class wxClientDCPtr(wxDCPtr
):
969 def __init__(self
,this
):
973 return "<C wxClientDC instance at %s>" % (self
.this
,)
974 class wxClientDC(wxClientDCPtr
):
975 def __init__(self
,*_args
,**_kwargs
):
976 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
982 class wxPaintDCPtr(wxDCPtr
):
983 def __init__(self
,this
):
987 return "<C wxPaintDC instance at %s>" % (self
.this
,)
988 class wxPaintDC(wxPaintDCPtr
):
989 def __init__(self
,*_args
,**_kwargs
):
990 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
996 class wxWindowDCPtr(wxDCPtr
):
997 def __init__(self
,this
):
1001 return "<C wxWindowDC instance at %s>" % (self
.this
,)
1002 class wxWindowDC(wxWindowDCPtr
):
1003 def __init__(self
,*_args
,**_kwargs
):
1004 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
1010 class wxPalettePtr(wxGDIObjectPtr
):
1011 def __init__(self
,this
):
1014 def __del__(self
,gdic
=gdic
):
1015 if self
.thisown
== 1 :
1016 gdic
.delete_wxPalette(self
)
1017 def GetPixel(self
, *_args
, **_kwargs
):
1018 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
1020 def GetRGB(self
, *_args
, **_kwargs
):
1021 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
1023 def Ok(self
, *_args
, **_kwargs
):
1024 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
1027 return "<C wxPalette instance at %s>" % (self
.this
,)
1028 class wxPalette(wxPalettePtr
):
1029 def __init__(self
,*_args
,**_kwargs
):
1030 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
1036 class wxImageListPtr(wxObjectPtr
):
1037 def __init__(self
,this
):
1040 def __del__(self
,gdic
=gdic
):
1041 if self
.thisown
== 1 :
1042 gdic
.delete_wxImageList(self
)
1043 def Add(self
, *_args
, **_kwargs
):
1044 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
1046 def AddWithColourMask(self
, *_args
, **_kwargs
):
1047 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
1049 def AddIcon(self
, *_args
, **_kwargs
):
1050 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
1052 def Replace(self
, *_args
, **_kwargs
):
1053 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
1055 def Draw(self
, *_args
, **_kwargs
):
1056 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
1058 def GetImageCount(self
, *_args
, **_kwargs
):
1059 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
1061 def Remove(self
, *_args
, **_kwargs
):
1062 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
1064 def RemoveAll(self
, *_args
, **_kwargs
):
1065 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
1067 def GetSize(self
, *_args
, **_kwargs
):
1068 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
1071 return "<C wxImageList instance at %s>" % (self
.this
,)
1072 class wxImageList(wxImageListPtr
):
1073 def __init__(self
,*_args
,**_kwargs
):
1074 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
1080 class wxRegionPtr(wxGDIObjectPtr
):
1081 def __init__(self
,this
):
1084 def __del__(self
,gdic
=gdic
):
1085 if self
.thisown
== 1 :
1086 gdic
.delete_wxRegion(self
)
1087 def Clear(self
, *_args
, **_kwargs
):
1088 val
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
1090 def Contains(self
, *_args
, **_kwargs
):
1091 val
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
1093 def ContainsPoint(self
, *_args
, **_kwargs
):
1094 val
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
1096 def ContainsRect(self
, *_args
, **_kwargs
):
1097 val
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
1099 def ContainsRectDim(self
, *_args
, **_kwargs
):
1100 val
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
)
1102 def GetBox(self
, *_args
, **_kwargs
):
1103 val
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
1104 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1106 def Intersect(self
, *_args
, **_kwargs
):
1107 val
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
1109 def IntersectRect(self
, *_args
, **_kwargs
):
1110 val
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
)
1112 def IntersectRegion(self
, *_args
, **_kwargs
):
1113 val
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
)
1115 def IsEmpty(self
, *_args
, **_kwargs
):
1116 val
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
1118 def Union(self
, *_args
, **_kwargs
):
1119 val
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
1121 def UnionRect(self
, *_args
, **_kwargs
):
1122 val
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
)
1124 def UnionRegion(self
, *_args
, **_kwargs
):
1125 val
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
)
1127 def Subtract(self
, *_args
, **_kwargs
):
1128 val
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
1130 def SubtractRect(self
, *_args
, **_kwargs
):
1131 val
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
)
1133 def SubtractRegion(self
, *_args
, **_kwargs
):
1134 val
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
)
1136 def Xor(self
, *_args
, **_kwargs
):
1137 val
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
1139 def XorRect(self
, *_args
, **_kwargs
):
1140 val
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
)
1142 def XorRegion(self
, *_args
, **_kwargs
):
1143 val
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
)
1146 return "<C wxRegion instance at %s>" % (self
.this
,)
1147 class wxRegion(wxRegionPtr
):
1148 def __init__(self
,*_args
,**_kwargs
):
1149 self
.this
= apply(gdic
.new_wxRegion
,_args
,_kwargs
)
1155 class wxRegionIteratorPtr(wxObjectPtr
):
1156 def __init__(self
,this
):
1159 def __del__(self
,gdic
=gdic
):
1160 if self
.thisown
== 1 :
1161 gdic
.delete_wxRegionIterator(self
)
1162 def GetX(self
, *_args
, **_kwargs
):
1163 val
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
1165 def GetY(self
, *_args
, **_kwargs
):
1166 val
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
1168 def GetW(self
, *_args
, **_kwargs
):
1169 val
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
1171 def GetWidth(self
, *_args
, **_kwargs
):
1172 val
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
1174 def GetH(self
, *_args
, **_kwargs
):
1175 val
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
1177 def GetHeight(self
, *_args
, **_kwargs
):
1178 val
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
1180 def GetRect(self
, *_args
, **_kwargs
):
1181 val
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
1182 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1184 def HaveRects(self
, *_args
, **_kwargs
):
1185 val
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
1187 def Reset(self
, *_args
, **_kwargs
):
1188 val
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
1190 def Next(self
, *_args
, **_kwargs
):
1191 val
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
1194 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
1195 class wxRegionIterator(wxRegionIteratorPtr
):
1196 def __init__(self
,*_args
,**_kwargs
):
1197 self
.this
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
)
1205 #-------------- FUNCTION WRAPPERS ------------------
1207 def wxEmptyBitmap(*_args
, **_kwargs
):
1208 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
1209 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1212 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1213 val
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
)
1214 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1217 def wxBitmapFromIcon(*_args
, **_kwargs
):
1218 val
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
)
1219 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1222 def wxBitmapFromBits(*_args
, **_kwargs
):
1223 val
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
)
1224 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1227 def wxMaskColour(*_args
, **_kwargs
):
1228 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
1229 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1232 def wxEmptyIcon(*_args
, **_kwargs
):
1233 val
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
)
1234 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1237 def wxIconFromXPMData(*_args
, **_kwargs
):
1238 val
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
)
1239 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1242 def wxStockCursor(*_args
, **_kwargs
):
1243 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
1244 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1247 def wxNamedColour(*_args
, **_kwargs
):
1248 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
1249 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1252 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1253 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
1254 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1257 wxFontMapper_GetEncodingName
= gdic
.wxFontMapper_GetEncodingName
1259 wxFontMapper_GetEncodingDescription
= gdic
.wxFontMapper_GetEncodingDescription
1261 wxFontMapper_GetDefaultConfigPath
= gdic
.wxFontMapper_GetDefaultConfigPath
1263 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
1265 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
1269 #-------------- VARIABLE WRAPPERS ------------------
1271 wxFONTFAMILY_DEFAULT
= gdic
.wxFONTFAMILY_DEFAULT
1272 wxFONTFAMILY_DECORATIVE
= gdic
.wxFONTFAMILY_DECORATIVE
1273 wxFONTFAMILY_ROMAN
= gdic
.wxFONTFAMILY_ROMAN
1274 wxFONTFAMILY_SCRIPT
= gdic
.wxFONTFAMILY_SCRIPT
1275 wxFONTFAMILY_SWISS
= gdic
.wxFONTFAMILY_SWISS
1276 wxFONTFAMILY_MODERN
= gdic
.wxFONTFAMILY_MODERN
1277 wxFONTFAMILY_TELETYPE
= gdic
.wxFONTFAMILY_TELETYPE
1278 wxFONTFAMILY_MAX
= gdic
.wxFONTFAMILY_MAX
1279 wxFONTFAMILY_UNKNOWN
= gdic
.wxFONTFAMILY_UNKNOWN
1280 wxFONTSTYLE_NORMAL
= gdic
.wxFONTSTYLE_NORMAL
1281 wxFONTSTYLE_ITALIC
= gdic
.wxFONTSTYLE_ITALIC
1282 wxFONTSTYLE_SLANT
= gdic
.wxFONTSTYLE_SLANT
1283 wxFONTSTYLE_MAX
= gdic
.wxFONTSTYLE_MAX
1284 wxFONTWEIGHT_NORMAL
= gdic
.wxFONTWEIGHT_NORMAL
1285 wxFONTWEIGHT_LIGHT
= gdic
.wxFONTWEIGHT_LIGHT
1286 wxFONTWEIGHT_BOLD
= gdic
.wxFONTWEIGHT_BOLD
1287 wxFONTWEIGHT_MAX
= gdic
.wxFONTWEIGHT_MAX
1288 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
1289 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
1290 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
1291 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
1292 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
1293 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
1294 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
1295 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
1296 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
1297 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
1298 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
1299 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
1300 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
1301 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
1302 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
1303 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
1304 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
1305 wxFONTENCODING_ISO8859_MAX
= gdic
.wxFONTENCODING_ISO8859_MAX
1306 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
1307 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
1308 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
1309 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
1310 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
1311 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
1312 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
1313 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
1314 wxFONTENCODING_CP874
= gdic
.wxFONTENCODING_CP874
1315 wxFONTENCODING_CP932
= gdic
.wxFONTENCODING_CP932
1316 wxFONTENCODING_CP936
= gdic
.wxFONTENCODING_CP936
1317 wxFONTENCODING_CP949
= gdic
.wxFONTENCODING_CP949
1318 wxFONTENCODING_CP950
= gdic
.wxFONTENCODING_CP950
1319 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
1320 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
1321 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
1322 wxFONTENCODING_CP1253
= gdic
.wxFONTENCODING_CP1253
1323 wxFONTENCODING_CP1254
= gdic
.wxFONTENCODING_CP1254
1324 wxFONTENCODING_CP1255
= gdic
.wxFONTENCODING_CP1255
1325 wxFONTENCODING_CP1256
= gdic
.wxFONTENCODING_CP1256
1326 wxFONTENCODING_CP1257
= gdic
.wxFONTENCODING_CP1257
1327 wxFONTENCODING_CP12_MAX
= gdic
.wxFONTENCODING_CP12_MAX
1328 wxFONTENCODING_UTF7
= gdic
.wxFONTENCODING_UTF7
1329 wxFONTENCODING_UTF8
= gdic
.wxFONTENCODING_UTF8
1330 wxFONTENCODING_UNICODE
= gdic
.wxFONTENCODING_UNICODE
1331 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
1332 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1333 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1334 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1335 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1336 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1337 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1338 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1339 wxOutRegion
= gdic
.wxOutRegion
1340 wxPartRegion
= gdic
.wxPartRegion
1341 wxInRegion
= gdic
.wxInRegion
1343 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1344 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1345 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1346 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1347 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1348 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1349 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1350 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1351 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1352 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1353 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1354 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1355 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1356 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1357 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1358 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1359 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1360 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1361 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1362 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1363 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1364 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1365 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1366 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1367 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1368 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1369 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1370 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1371 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1372 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1373 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1374 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1375 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1376 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1377 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1378 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1379 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1380 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1381 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1382 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1383 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1384 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1385 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1386 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1387 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1388 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)