1 # This file was created automatically by SWIG.
6 def __init__(self
,this
):
9 def GetHandle(self
, *_args
, **_kwargs
):
10 val
= apply(gdic
.wxGDIImage_GetHandle
,(self
,) + _args
, _kwargs
)
12 def SetHandle(self
, *_args
, **_kwargs
):
13 val
= apply(gdic
.wxGDIImage_SetHandle
,(self
,) + _args
, _kwargs
)
15 def Ok(self
, *_args
, **_kwargs
):
16 val
= apply(gdic
.wxGDIImage_Ok
,(self
,) + _args
, _kwargs
)
18 def GetWidth(self
, *_args
, **_kwargs
):
19 val
= apply(gdic
.wxGDIImage_GetWidth
,(self
,) + _args
, _kwargs
)
21 def GetHeight(self
, *_args
, **_kwargs
):
22 val
= apply(gdic
.wxGDIImage_GetHeight
,(self
,) + _args
, _kwargs
)
24 def GetDepth(self
, *_args
, **_kwargs
):
25 val
= apply(gdic
.wxGDIImage_GetDepth
,(self
,) + _args
, _kwargs
)
27 def SetWidth(self
, *_args
, **_kwargs
):
28 val
= apply(gdic
.wxGDIImage_SetWidth
,(self
,) + _args
, _kwargs
)
30 def SetHeight(self
, *_args
, **_kwargs
):
31 val
= apply(gdic
.wxGDIImage_SetHeight
,(self
,) + _args
, _kwargs
)
33 def SetDepth(self
, *_args
, **_kwargs
):
34 val
= apply(gdic
.wxGDIImage_SetDepth
,(self
,) + _args
, _kwargs
)
36 def SetSize(self
, *_args
, **_kwargs
):
37 val
= apply(gdic
.wxGDIImage_SetSize
,(self
,) + _args
, _kwargs
)
40 return "<C wxGDIImage instance at %s>" % (self
.this
,)
41 class wxGDIImage(wxGDIImagePtr
):
42 def __init__(self
,this
):
48 class wxBitmapPtr(wxGDIImagePtr
):
49 def __init__(self
,this
):
52 def __del__(self
,gdic
=gdic
):
53 if self
.thisown
== 1 :
54 gdic
.delete_wxBitmap(self
)
55 def GetPalette(self
, *_args
, **_kwargs
):
56 val
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
57 if val
: val
= wxPalettePtr(val
)
59 def GetMask(self
, *_args
, **_kwargs
):
60 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
61 if val
: val
= wxMaskPtr(val
)
63 def LoadFile(self
, *_args
, **_kwargs
):
64 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
66 def SaveFile(self
, *_args
, **_kwargs
):
67 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
69 def SetMask(self
, *_args
, **_kwargs
):
70 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
72 def SetPalette(self
, *_args
, **_kwargs
):
73 val
= apply(gdic
.wxBitmap_SetPalette
,(self
,) + _args
, _kwargs
)
76 return "<C wxBitmap instance at %s>" % (self
.this
,)
77 class wxBitmap(wxBitmapPtr
):
78 def __init__(self
,*_args
,**_kwargs
):
79 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
86 def __init__(self
,this
):
90 return "<C wxMask instance at %s>" % (self
.this
,)
91 class wxMask(wxMaskPtr
):
92 def __init__(self
,*_args
,**_kwargs
):
93 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
99 class wxIconPtr(wxGDIImagePtr
):
100 def __init__(self
,this
):
103 def __del__(self
,gdic
=gdic
):
104 if self
.thisown
== 1 :
105 gdic
.delete_wxIcon(self
)
106 def LoadFile(self
, *_args
, **_kwargs
):
107 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
110 return "<C wxIcon instance at %s>" % (self
.this
,)
111 class wxIcon(wxIconPtr
):
112 def __init__(self
,*_args
,**_kwargs
):
113 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
119 class wxCursorPtr(wxGDIImagePtr
):
120 def __init__(self
,this
):
123 def __del__(self
,gdic
=gdic
):
124 if self
.thisown
== 1 :
125 gdic
.delete_wxCursor(self
)
127 return "<C wxCursor instance at %s>" % (self
.this
,)
128 class wxCursor(wxCursorPtr
):
129 def __init__(self
,*_args
,**_kwargs
):
130 self
.this
= apply(gdic
.new_wxCursor
,_args
,_kwargs
)
137 def __init__(self
,this
):
140 def Ok(self
, *_args
, **_kwargs
):
141 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
143 def GetFaceName(self
, *_args
, **_kwargs
):
144 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
146 def GetFamily(self
, *_args
, **_kwargs
):
147 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
149 def GetFontId(self
, *_args
, **_kwargs
):
150 val
= apply(gdic
.wxFont_GetFontId
,(self
,) + _args
, _kwargs
)
152 def GetPointSize(self
, *_args
, **_kwargs
):
153 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
155 def GetStyle(self
, *_args
, **_kwargs
):
156 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
158 def GetUnderlined(self
, *_args
, **_kwargs
):
159 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
161 def GetWeight(self
, *_args
, **_kwargs
):
162 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
164 def GetEncoding(self
, *_args
, **_kwargs
):
165 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
167 def SetFaceName(self
, *_args
, **_kwargs
):
168 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
170 def SetFamily(self
, *_args
, **_kwargs
):
171 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
173 def SetPointSize(self
, *_args
, **_kwargs
):
174 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
176 def SetStyle(self
, *_args
, **_kwargs
):
177 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
179 def SetUnderlined(self
, *_args
, **_kwargs
):
180 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
182 def SetWeight(self
, *_args
, **_kwargs
):
183 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
185 def SetEncoding(self
, *_args
, **_kwargs
):
186 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
188 def GetFamilyString(self
, *_args
, **_kwargs
):
189 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
191 def GetStyleString(self
, *_args
, **_kwargs
):
192 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
194 def GetWeightString(self
, *_args
, **_kwargs
):
195 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
198 return "<C wxFont instance at %s>" % (self
.this
,)
199 class wxFont(wxFontPtr
):
200 def __init__(self
,*_args
,**_kwargs
):
201 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
208 def __init__(self
,this
):
211 def __del__(self
,gdic
=gdic
):
212 if self
.thisown
== 1 :
213 gdic
.delete_wxColour(self
)
214 def Red(self
, *_args
, **_kwargs
):
215 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
217 def Green(self
, *_args
, **_kwargs
):
218 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
220 def Blue(self
, *_args
, **_kwargs
):
221 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
223 def Ok(self
, *_args
, **_kwargs
):
224 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
226 def Set(self
, *_args
, **_kwargs
):
227 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
229 def Get(self
, *_args
, **_kwargs
):
230 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
233 return "<C wxColour instance at %s>" % (self
.this
,)
234 class wxColour(wxColourPtr
):
235 def __init__(self
,*_args
,**_kwargs
):
236 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
243 def __init__(self
,this
):
246 def GetCap(self
, *_args
, **_kwargs
):
247 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
249 def GetColour(self
, *_args
, **_kwargs
):
250 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
251 if val
: val
= wxColourPtr(val
)
253 def GetJoin(self
, *_args
, **_kwargs
):
254 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
256 def GetStyle(self
, *_args
, **_kwargs
):
257 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
259 def GetWidth(self
, *_args
, **_kwargs
):
260 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
262 def Ok(self
, *_args
, **_kwargs
):
263 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
265 def SetCap(self
, *_args
, **_kwargs
):
266 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
268 def SetColour(self
, *_args
, **_kwargs
):
269 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
271 def SetJoin(self
, *_args
, **_kwargs
):
272 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
274 def SetStyle(self
, *_args
, **_kwargs
):
275 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
277 def SetWidth(self
, *_args
, **_kwargs
):
278 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
280 def GetDashes(self
, *_args
, **_kwargs
):
281 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
283 def SetDashes(self
, *_args
, **_kwargs
):
284 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
286 def GetStipple(self
, *_args
, **_kwargs
):
287 val
= apply(gdic
.wxPen_GetStipple
,(self
,) + _args
, _kwargs
)
288 if val
: val
= wxBitmapPtr(val
)
290 def SetStipple(self
, *_args
, **_kwargs
):
291 val
= apply(gdic
.wxPen_SetStipple
,(self
,) + _args
, _kwargs
)
294 return "<C wxPen instance at %s>" % (self
.this
,)
295 class wxPen(wxPenPtr
):
296 def __init__(self
,*_args
,**_kwargs
):
297 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
304 def __init__(self
,this
):
307 def GetColour(self
, *_args
, **_kwargs
):
308 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
309 if val
: val
= wxColourPtr(val
)
311 def GetStipple(self
, *_args
, **_kwargs
):
312 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
313 if val
: val
= wxBitmapPtr(val
)
315 def GetStyle(self
, *_args
, **_kwargs
):
316 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
318 def Ok(self
, *_args
, **_kwargs
):
319 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
321 def SetColour(self
, *_args
, **_kwargs
):
322 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
324 def SetStipple(self
, *_args
, **_kwargs
):
325 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
327 def SetStyle(self
, *_args
, **_kwargs
):
328 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
331 return "<C wxBrush instance at %s>" % (self
.this
,)
332 class wxBrush(wxBrushPtr
):
333 def __init__(self
,*_args
,**_kwargs
):
334 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
341 def __init__(self
,this
):
344 def __del__(self
,gdic
=gdic
):
345 if self
.thisown
== 1 :
346 gdic
.delete_wxDC(self
)
347 def BeginDrawing(self
, *_args
, **_kwargs
):
348 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
350 def Blit(self
, *_args
, **_kwargs
):
351 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
353 def Clear(self
, *_args
, **_kwargs
):
354 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
356 def CrossHair(self
, *_args
, **_kwargs
):
357 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
359 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
360 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
362 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
363 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
365 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
366 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
368 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
369 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
371 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
372 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
374 def DrawArc(self
, *_args
, **_kwargs
):
375 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
377 def DrawCircle(self
, *_args
, **_kwargs
):
378 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
380 def DrawEllipse(self
, *_args
, **_kwargs
):
381 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
383 def DrawEllipticArc(self
, *_args
, **_kwargs
):
384 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
386 def DrawIcon(self
, *_args
, **_kwargs
):
387 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
389 def DrawLine(self
, *_args
, **_kwargs
):
390 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
392 def DrawLines(self
, *_args
, **_kwargs
):
393 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
395 def DrawPolygon(self
, *_args
, **_kwargs
):
396 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
398 def DrawPoint(self
, *_args
, **_kwargs
):
399 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
401 def DrawRectangle(self
, *_args
, **_kwargs
):
402 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
404 def DrawRotatedText(self
, *_args
, **_kwargs
):
405 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
407 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
408 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
410 def DrawSpline(self
, *_args
, **_kwargs
):
411 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
413 def DrawText(self
, *_args
, **_kwargs
):
414 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
416 def EndDoc(self
, *_args
, **_kwargs
):
417 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
419 def EndDrawing(self
, *_args
, **_kwargs
):
420 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
422 def EndPage(self
, *_args
, **_kwargs
):
423 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
425 def FloodFill(self
, *_args
, **_kwargs
):
426 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
428 def GetBackground(self
, *_args
, **_kwargs
):
429 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
430 if val
: val
= wxBrushPtr(val
)
432 def GetBrush(self
, *_args
, **_kwargs
):
433 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
434 if val
: val
= wxBrushPtr(val
)
436 def GetCharHeight(self
, *_args
, **_kwargs
):
437 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
439 def GetCharWidth(self
, *_args
, **_kwargs
):
440 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
442 def GetClippingBox(self
, *_args
, **_kwargs
):
443 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
445 def GetFont(self
, *_args
, **_kwargs
):
446 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
447 if val
: val
= wxFontPtr(val
)
449 def GetLogicalFunction(self
, *_args
, **_kwargs
):
450 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
452 def GetMapMode(self
, *_args
, **_kwargs
):
453 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
455 def GetOptimization(self
, *_args
, **_kwargs
):
456 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
458 def GetPen(self
, *_args
, **_kwargs
):
459 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
460 if val
: val
= wxPenPtr(val
)
462 def GetPixel(self
, *_args
, **_kwargs
):
463 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
464 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
466 def GetSizeTuple(self
, *_args
, **_kwargs
):
467 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
469 def GetSize(self
, *_args
, **_kwargs
):
470 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
471 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
473 def GetTextBackground(self
, *_args
, **_kwargs
):
474 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
475 if val
: val
= wxColourPtr(val
)
477 def GetTextExtent(self
, *_args
, **_kwargs
):
478 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
480 def GetFullTextExtent(self
, *_args
, **_kwargs
):
481 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
483 def GetTextForeground(self
, *_args
, **_kwargs
):
484 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
485 if val
: val
= wxColourPtr(val
)
487 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
488 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
490 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
491 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
493 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
494 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
496 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
497 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
499 def MaxX(self
, *_args
, **_kwargs
):
500 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
502 def MaxY(self
, *_args
, **_kwargs
):
503 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
505 def MinX(self
, *_args
, **_kwargs
):
506 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
508 def MinY(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
511 def Ok(self
, *_args
, **_kwargs
):
512 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
514 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
515 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
517 def SetBackground(self
, *_args
, **_kwargs
):
518 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
520 def SetBackgroundMode(self
, *_args
, **_kwargs
):
521 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
523 def SetClippingRegion(self
, *_args
, **_kwargs
):
524 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
526 def SetPalette(self
, *_args
, **_kwargs
):
527 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
529 def SetBrush(self
, *_args
, **_kwargs
):
530 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
532 def SetFont(self
, *_args
, **_kwargs
):
533 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
535 def SetLogicalFunction(self
, *_args
, **_kwargs
):
536 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
538 def SetMapMode(self
, *_args
, **_kwargs
):
539 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
541 def SetOptimization(self
, *_args
, **_kwargs
):
542 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
544 def SetPen(self
, *_args
, **_kwargs
):
545 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
547 def SetTextBackground(self
, *_args
, **_kwargs
):
548 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
550 def SetTextForeground(self
, *_args
, **_kwargs
):
551 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
553 def SetUserScale(self
, *_args
, **_kwargs
):
554 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
556 def StartDoc(self
, *_args
, **_kwargs
):
557 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
559 def StartPage(self
, *_args
, **_kwargs
):
560 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
562 def DrawBitmap(self
, *_args
, **_kwargs
):
563 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
566 return "<C wxDC instance at %s>" % (self
.this
,)
568 def __init__(self
,this
):
574 class wxMemoryDCPtr(wxDCPtr
):
575 def __init__(self
,this
):
578 def SelectObject(self
, *_args
, **_kwargs
):
579 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
582 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
583 class wxMemoryDC(wxMemoryDCPtr
):
584 def __init__(self
,*_args
,**_kwargs
):
585 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
591 class wxScreenDCPtr(wxDCPtr
):
592 def __init__(self
,this
):
595 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
598 def StartDrawingOnTopRect(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopRect
,(self
,) + _args
, _kwargs
)
601 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
602 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
605 return "<C wxScreenDC instance at %s>" % (self
.this
,)
606 class wxScreenDC(wxScreenDCPtr
):
607 def __init__(self
,*_args
,**_kwargs
):
608 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
614 class wxClientDCPtr(wxDCPtr
):
615 def __init__(self
,this
):
619 return "<C wxClientDC instance at %s>" % (self
.this
,)
620 class wxClientDC(wxClientDCPtr
):
621 def __init__(self
,*_args
,**_kwargs
):
622 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
628 class wxPaintDCPtr(wxDCPtr
):
629 def __init__(self
,this
):
633 return "<C wxPaintDC instance at %s>" % (self
.this
,)
634 class wxPaintDC(wxPaintDCPtr
):
635 def __init__(self
,*_args
,**_kwargs
):
636 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
642 class wxWindowDCPtr(wxDCPtr
):
643 def __init__(self
,this
):
647 return "<C wxWindowDC instance at %s>" % (self
.this
,)
648 class wxWindowDC(wxWindowDCPtr
):
649 def __init__(self
,*_args
,**_kwargs
):
650 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
656 class wxPrinterDCPtr(wxDCPtr
):
657 def __init__(self
,this
):
661 return "<C wxPrinterDC instance at %s>" % (self
.this
,)
662 class wxPrinterDC(wxPrinterDCPtr
):
663 def __init__(self
,*_args
,**_kwargs
):
664 self
.this
= apply(gdic
.new_wxPrinterDC
,_args
,_kwargs
)
670 class wxMetaFileDCPtr(wxDCPtr
):
671 def __init__(self
,this
):
674 def Close(self
, *_args
, **_kwargs
):
675 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
678 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
679 class wxMetaFileDC(wxMetaFileDCPtr
):
680 def __init__(self
,*_args
,**_kwargs
):
681 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
688 def __init__(self
,this
):
691 def __del__(self
,gdic
=gdic
):
692 if self
.thisown
== 1 :
693 gdic
.delete_wxPalette(self
)
694 def GetPixel(self
, *_args
, **_kwargs
):
695 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
697 def GetRGB(self
, *_args
, **_kwargs
):
698 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
700 def Ok(self
, *_args
, **_kwargs
):
701 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
704 return "<C wxPalette instance at %s>" % (self
.this
,)
705 class wxPalette(wxPalettePtr
):
706 def __init__(self
,*_args
,**_kwargs
):
707 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
713 class wxImageListPtr
:
714 def __init__(self
,this
):
717 def __del__(self
,gdic
=gdic
):
718 if self
.thisown
== 1 :
719 gdic
.delete_wxImageList(self
)
720 def Add(self
, *_args
, **_kwargs
):
721 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
723 def AddWithColourMask(self
, *_args
, **_kwargs
):
724 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
726 def AddIcon(self
, *_args
, **_kwargs
):
727 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
729 def Replace(self
, *_args
, **_kwargs
):
730 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
732 def ReplaceIcon(self
, *_args
, **_kwargs
):
733 val
= apply(gdic
.wxImageList_ReplaceIcon
,(self
,) + _args
, _kwargs
)
735 def Draw(self
, *_args
, **_kwargs
):
736 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
738 def GetImageCount(self
, *_args
, **_kwargs
):
739 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
741 def Remove(self
, *_args
, **_kwargs
):
742 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
744 def RemoveAll(self
, *_args
, **_kwargs
):
745 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
748 return "<C wxImageList instance at %s>" % (self
.this
,)
749 class wxImageList(wxImageListPtr
):
750 def __init__(self
,*_args
,**_kwargs
):
751 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
759 #-------------- FUNCTION WRAPPERS ------------------
761 def wxEmptyBitmap(*_args
, **_kwargs
):
762 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
763 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
766 def wxBitmapFromData(*_args
, **_kwargs
):
767 val
= apply(gdic
.wxBitmapFromData
,_args
,_kwargs
)
768 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
771 def wxMaskColour(*_args
, **_kwargs
):
772 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
773 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
776 def wxStockCursor(*_args
, **_kwargs
):
777 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
778 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
781 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
783 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
785 def wxNamedColour(*_args
, **_kwargs
):
786 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
787 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
790 def wxMemoryDCFromDC(*_args
, **_kwargs
):
791 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
792 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
797 #-------------- VARIABLE WRAPPERS ------------------
799 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
800 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
801 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
802 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
803 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
804 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
805 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
806 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
807 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
808 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
809 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
810 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
811 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
812 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
813 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
814 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
815 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
816 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
817 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
818 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
819 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
820 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
821 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
822 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
823 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
824 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
825 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
826 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
827 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
829 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
830 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
831 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
832 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
833 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
834 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
835 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
836 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
837 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
838 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
839 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
840 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
841 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
842 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
843 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
844 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
845 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
846 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
847 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
848 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
849 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
850 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
851 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
852 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
853 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
854 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
855 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
856 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
857 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
858 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
859 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
860 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
861 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
862 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
863 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
864 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
865 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
866 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
867 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
868 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
869 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
870 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
871 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
872 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
873 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
874 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
875 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
876 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
877 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE