1 # This file was created automatically by SWIG.
6 def __init__(self
,this
):
9 def __del__(self
,gdic
=gdic
):
10 if self
.thisown
== 1 :
11 gdic
.delete_wxBitmap(self
)
12 def GetPalette(self
, *_args
, **_kwargs
):
13 val
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
14 if val
: val
= wxPalettePtr(val
)
16 def GetMask(self
, *_args
, **_kwargs
):
17 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
18 if val
: val
= wxMaskPtr(val
)
20 def LoadFile(self
, *_args
, **_kwargs
):
21 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
23 def SaveFile(self
, *_args
, **_kwargs
):
24 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
26 def SetMask(self
, *_args
, **_kwargs
):
27 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
29 def Ok(self
, *_args
, **_kwargs
):
30 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
32 def GetWidth(self
, *_args
, **_kwargs
):
33 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
35 def GetHeight(self
, *_args
, **_kwargs
):
36 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
38 def GetDepth(self
, *_args
, **_kwargs
):
39 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
41 def SetWidth(self
, *_args
, **_kwargs
):
42 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
44 def SetHeight(self
, *_args
, **_kwargs
):
45 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
47 def SetDepth(self
, *_args
, **_kwargs
):
48 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
50 def GetSubBitmap(self
, *_args
, **_kwargs
):
51 val
= apply(gdic
.wxBitmap_GetSubBitmap
,(self
,) + _args
, _kwargs
)
52 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
55 return "<C wxBitmap instance at %s>" % (self
.this
,)
57 def __del__(self
,gdic
=gdic
):
59 if self
.thisown
== 1 :
60 gdic
.delete_wxBitmap(self
)
64 class wxBitmap(wxBitmapPtr
):
65 def __init__(self
,*_args
,**_kwargs
):
66 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
73 def __init__(self
,this
):
77 return "<C wxMask instance at %s>" % (self
.this
,)
78 class wxMask(wxMaskPtr
):
79 def __init__(self
,*_args
,**_kwargs
):
80 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
87 def __init__(self
,this
):
90 def __del__(self
,gdic
=gdic
):
91 if self
.thisown
== 1 :
92 gdic
.delete_wxIcon(self
)
93 def LoadFile(self
, *_args
, **_kwargs
):
94 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
96 def Ok(self
, *_args
, **_kwargs
):
97 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
99 def GetWidth(self
, *_args
, **_kwargs
):
100 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
102 def GetHeight(self
, *_args
, **_kwargs
):
103 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
105 def GetDepth(self
, *_args
, **_kwargs
):
106 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
108 def SetWidth(self
, *_args
, **_kwargs
):
109 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
111 def SetHeight(self
, *_args
, **_kwargs
):
112 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
114 def SetDepth(self
, *_args
, **_kwargs
):
115 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
118 return "<C wxIcon instance at %s>" % (self
.this
,)
120 def __del__(self
,gdic
=gdic
):
122 if self
.thisown
== 1 :
123 gdic
.delete_wxIcon(self
)
127 class wxIcon(wxIconPtr
):
128 def __init__(self
,*_args
,**_kwargs
):
129 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
136 def __init__(self
,this
):
139 def __del__(self
,gdic
=gdic
):
140 if self
.thisown
== 1 :
141 gdic
.delete_wxCursor(self
)
142 def Ok(self
, *_args
, **_kwargs
):
143 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
146 return "<C wxCursor instance at %s>" % (self
.this
,)
147 class wxCursor(wxCursorPtr
):
148 def __init__(self
,this
):
155 def __init__(self
,this
):
158 def Ok(self
, *_args
, **_kwargs
):
159 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
161 def GetFaceName(self
, *_args
, **_kwargs
):
162 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
164 def GetFamily(self
, *_args
, **_kwargs
):
165 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
167 def GetPointSize(self
, *_args
, **_kwargs
):
168 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
170 def GetStyle(self
, *_args
, **_kwargs
):
171 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
173 def GetUnderlined(self
, *_args
, **_kwargs
):
174 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
176 def GetWeight(self
, *_args
, **_kwargs
):
177 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
179 def GetEncoding(self
, *_args
, **_kwargs
):
180 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
182 def SetFaceName(self
, *_args
, **_kwargs
):
183 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
185 def SetFamily(self
, *_args
, **_kwargs
):
186 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
188 def SetPointSize(self
, *_args
, **_kwargs
):
189 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
191 def SetStyle(self
, *_args
, **_kwargs
):
192 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
194 def SetUnderlined(self
, *_args
, **_kwargs
):
195 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
197 def SetWeight(self
, *_args
, **_kwargs
):
198 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
200 def SetEncoding(self
, *_args
, **_kwargs
):
201 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
203 def GetFamilyString(self
, *_args
, **_kwargs
):
204 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
206 def GetStyleString(self
, *_args
, **_kwargs
):
207 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
209 def GetWeightString(self
, *_args
, **_kwargs
):
210 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
213 return "<C wxFont instance at %s>" % (self
.this
,)
214 class wxFont(wxFontPtr
):
215 def __init__(self
,*_args
,**_kwargs
):
216 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
223 def __init__(self
,this
):
226 def __del__(self
,gdic
=gdic
):
227 if self
.thisown
== 1 :
228 gdic
.delete_wxColour(self
)
229 def Red(self
, *_args
, **_kwargs
):
230 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
232 def Green(self
, *_args
, **_kwargs
):
233 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
235 def Blue(self
, *_args
, **_kwargs
):
236 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
238 def Ok(self
, *_args
, **_kwargs
):
239 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
241 def Set(self
, *_args
, **_kwargs
):
242 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
244 def Get(self
, *_args
, **_kwargs
):
245 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
248 return "<C wxColour instance at %s>" % (self
.this
,)
250 def __str__(self
): return str(self
.asTuple())
251 def __repr__(self
): return str(self
.asTuple())
252 class wxColour(wxColourPtr
):
253 def __init__(self
,*_args
,**_kwargs
):
254 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
261 def __init__(self
,this
):
264 def GetCap(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
267 def GetColour(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
269 if val
: val
= wxColourPtr(val
)
271 def GetJoin(self
, *_args
, **_kwargs
):
272 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
274 def GetStyle(self
, *_args
, **_kwargs
):
275 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
277 def GetWidth(self
, *_args
, **_kwargs
):
278 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
280 def Ok(self
, *_args
, **_kwargs
):
281 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
283 def SetCap(self
, *_args
, **_kwargs
):
284 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
286 def SetColour(self
, *_args
, **_kwargs
):
287 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
289 def SetJoin(self
, *_args
, **_kwargs
):
290 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
292 def SetStyle(self
, *_args
, **_kwargs
):
293 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
295 def SetWidth(self
, *_args
, **_kwargs
):
296 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
298 def GetDashes(self
, *_args
, **_kwargs
):
299 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
301 def SetDashes(self
, *_args
, **_kwargs
):
302 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
305 return "<C wxPen instance at %s>" % (self
.this
,)
306 class wxPen(wxPenPtr
):
307 def __init__(self
,*_args
,**_kwargs
):
308 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
315 def __init__(self
,this
):
318 def GetColour(self
, *_args
, **_kwargs
):
319 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
320 if val
: val
= wxColourPtr(val
)
322 def GetStipple(self
, *_args
, **_kwargs
):
323 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
324 if val
: val
= wxBitmapPtr(val
)
326 def GetStyle(self
, *_args
, **_kwargs
):
327 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
329 def Ok(self
, *_args
, **_kwargs
):
330 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
332 def SetColour(self
, *_args
, **_kwargs
):
333 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
335 def SetStipple(self
, *_args
, **_kwargs
):
336 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
338 def SetStyle(self
, *_args
, **_kwargs
):
339 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
342 return "<C wxBrush instance at %s>" % (self
.this
,)
343 class wxBrush(wxBrushPtr
):
344 def __init__(self
,*_args
,**_kwargs
):
345 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
352 def __init__(self
,this
):
355 def __del__(self
,gdic
=gdic
):
356 if self
.thisown
== 1 :
357 gdic
.delete_wxDC(self
)
358 def BeginDrawing(self
, *_args
, **_kwargs
):
359 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
361 def Blit(self
, *_args
, **_kwargs
):
362 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
364 def Clear(self
, *_args
, **_kwargs
):
365 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
367 def CrossHair(self
, *_args
, **_kwargs
):
368 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
370 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
371 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
373 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
374 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
376 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
377 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
379 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
380 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
382 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
383 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
385 def DrawArc(self
, *_args
, **_kwargs
):
386 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
388 def DrawCircle(self
, *_args
, **_kwargs
):
389 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
391 def DrawEllipse(self
, *_args
, **_kwargs
):
392 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
394 def DrawEllipticArc(self
, *_args
, **_kwargs
):
395 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
397 def DrawIcon(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
400 def DrawLine(self
, *_args
, **_kwargs
):
401 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
403 def DrawLines(self
, *_args
, **_kwargs
):
404 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
406 def DrawPolygon(self
, *_args
, **_kwargs
):
407 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
409 def DrawPoint(self
, *_args
, **_kwargs
):
410 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
412 def DrawRectangle(self
, *_args
, **_kwargs
):
413 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
415 def DrawRotatedText(self
, *_args
, **_kwargs
):
416 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
418 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
419 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
421 def DrawSpline(self
, *_args
, **_kwargs
):
422 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
424 def DrawText(self
, *_args
, **_kwargs
):
425 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
427 def EndDoc(self
, *_args
, **_kwargs
):
428 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
430 def EndDrawing(self
, *_args
, **_kwargs
):
431 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
433 def EndPage(self
, *_args
, **_kwargs
):
434 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
436 def FloodFill(self
, *_args
, **_kwargs
):
437 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
439 def GetBackground(self
, *_args
, **_kwargs
):
440 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
441 if val
: val
= wxBrushPtr(val
)
443 def GetBrush(self
, *_args
, **_kwargs
):
444 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
445 if val
: val
= wxBrushPtr(val
)
447 def GetCharHeight(self
, *_args
, **_kwargs
):
448 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
450 def GetCharWidth(self
, *_args
, **_kwargs
):
451 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
453 def GetClippingBox(self
, *_args
, **_kwargs
):
454 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
456 def GetFont(self
, *_args
, **_kwargs
):
457 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
458 if val
: val
= wxFontPtr(val
)
460 def GetLogicalFunction(self
, *_args
, **_kwargs
):
461 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
463 def GetLogicalScale(self
, *_args
, **_kwargs
):
464 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
466 def GetMapMode(self
, *_args
, **_kwargs
):
467 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
469 def GetOptimization(self
, *_args
, **_kwargs
):
470 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
472 def GetPen(self
, *_args
, **_kwargs
):
473 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
474 if val
: val
= wxPenPtr(val
)
476 def GetPixel(self
, *_args
, **_kwargs
):
477 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
478 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
480 def GetSizeTuple(self
, *_args
, **_kwargs
):
481 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
483 def GetSize(self
, *_args
, **_kwargs
):
484 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
485 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
487 def GetSizeMM(self
, *_args
, **_kwargs
):
488 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
489 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
491 def GetTextBackground(self
, *_args
, **_kwargs
):
492 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
493 if val
: val
= wxColourPtr(val
)
495 def GetTextExtent(self
, *_args
, **_kwargs
):
496 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
498 def GetFullTextExtent(self
, *_args
, **_kwargs
):
499 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
501 def GetTextForeground(self
, *_args
, **_kwargs
):
502 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
503 if val
: val
= wxColourPtr(val
)
505 def GetUserScale(self
, *_args
, **_kwargs
):
506 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
508 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
511 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
512 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
514 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
515 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
517 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
518 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
520 def MaxX(self
, *_args
, **_kwargs
):
521 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
523 def MaxY(self
, *_args
, **_kwargs
):
524 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
526 def MinX(self
, *_args
, **_kwargs
):
527 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
529 def MinY(self
, *_args
, **_kwargs
):
530 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
532 def Ok(self
, *_args
, **_kwargs
):
533 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
535 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
536 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
538 def SetBackground(self
, *_args
, **_kwargs
):
539 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
541 def SetBackgroundMode(self
, *_args
, **_kwargs
):
542 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
544 def SetClippingRegion(self
, *_args
, **_kwargs
):
545 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
547 def SetPalette(self
, *_args
, **_kwargs
):
548 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
550 def SetBrush(self
, *_args
, **_kwargs
):
551 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
553 def SetFont(self
, *_args
, **_kwargs
):
554 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
556 def SetLogicalFunction(self
, *_args
, **_kwargs
):
557 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
559 def SetLogicalScale(self
, *_args
, **_kwargs
):
560 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
562 def SetMapMode(self
, *_args
, **_kwargs
):
563 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
565 def SetOptimization(self
, *_args
, **_kwargs
):
566 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
568 def SetPen(self
, *_args
, **_kwargs
):
569 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
571 def SetTextBackground(self
, *_args
, **_kwargs
):
572 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
574 def SetTextForeground(self
, *_args
, **_kwargs
):
575 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
577 def SetUserScale(self
, *_args
, **_kwargs
):
578 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
580 def StartDoc(self
, *_args
, **_kwargs
):
581 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
583 def StartPage(self
, *_args
, **_kwargs
):
584 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
586 def DrawBitmap(self
, *_args
, **_kwargs
):
587 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
589 def CanDrawBitmap(self
, *_args
, **_kwargs
):
590 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
592 def CanGetTextExtent(self
, *_args
, **_kwargs
):
593 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
595 def GetDepth(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
598 def GetPPI(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
600 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
602 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
603 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
605 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
606 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
608 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
609 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
611 def SetAxisOrientation(self
, *_args
, **_kwargs
):
612 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
614 def CalcBoundingBox(self
, *_args
, **_kwargs
):
615 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
617 def ResetBoundingBox(self
, *_args
, **_kwargs
):
618 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
621 return "<C wxDC instance at %s>" % (self
.this
,)
623 def __init__(self
,this
):
629 class wxMemoryDCPtr(wxDCPtr
):
630 def __init__(self
,this
):
633 def SelectObject(self
, *_args
, **_kwargs
):
634 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
637 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
638 class wxMemoryDC(wxMemoryDCPtr
):
639 def __init__(self
,*_args
,**_kwargs
):
640 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
646 class wxScreenDCPtr(wxDCPtr
):
647 def __init__(self
,this
):
650 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
651 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
653 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
654 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
656 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
657 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
660 return "<C wxScreenDC instance at %s>" % (self
.this
,)
661 class wxScreenDC(wxScreenDCPtr
):
662 def __init__(self
,*_args
,**_kwargs
):
663 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
669 class wxClientDCPtr(wxDCPtr
):
670 def __init__(self
,this
):
674 return "<C wxClientDC instance at %s>" % (self
.this
,)
675 class wxClientDC(wxClientDCPtr
):
676 def __init__(self
,*_args
,**_kwargs
):
677 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
683 class wxPaintDCPtr(wxDCPtr
):
684 def __init__(self
,this
):
688 return "<C wxPaintDC instance at %s>" % (self
.this
,)
689 class wxPaintDC(wxPaintDCPtr
):
690 def __init__(self
,*_args
,**_kwargs
):
691 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
697 class wxWindowDCPtr(wxDCPtr
):
698 def __init__(self
,this
):
702 return "<C wxWindowDC instance at %s>" % (self
.this
,)
703 class wxWindowDC(wxWindowDCPtr
):
704 def __init__(self
,*_args
,**_kwargs
):
705 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
711 class wxPostScriptDCPtr(wxDCPtr
):
712 def __init__(self
,this
):
716 return "<C wxPostScriptDC instance at %s>" % (self
.this
,)
717 class wxPostScriptDC(wxPostScriptDCPtr
):
718 def __init__(self
,*_args
,**_kwargs
):
719 self
.this
= apply(gdic
.new_wxPostScriptDC
,_args
,_kwargs
)
726 def __init__(self
,this
):
729 def __del__(self
,gdic
=gdic
):
730 if self
.thisown
== 1 :
731 gdic
.delete_wxPalette(self
)
732 def GetPixel(self
, *_args
, **_kwargs
):
733 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
735 def GetRGB(self
, *_args
, **_kwargs
):
736 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
738 def Ok(self
, *_args
, **_kwargs
):
739 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
742 return "<C wxPalette instance at %s>" % (self
.this
,)
743 class wxPalette(wxPalettePtr
):
744 def __init__(self
,*_args
,**_kwargs
):
745 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
751 class wxImageListPtr
:
752 def __init__(self
,this
):
755 def __del__(self
,gdic
=gdic
):
756 if self
.thisown
== 1 :
757 gdic
.delete_wxImageList(self
)
758 def Add(self
, *_args
, **_kwargs
):
759 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
761 def AddWithColourMask(self
, *_args
, **_kwargs
):
762 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
764 def AddIcon(self
, *_args
, **_kwargs
):
765 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
767 def Replace(self
, *_args
, **_kwargs
):
768 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
770 def Draw(self
, *_args
, **_kwargs
):
771 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
773 def GetImageCount(self
, *_args
, **_kwargs
):
774 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
776 def Remove(self
, *_args
, **_kwargs
):
777 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
779 def RemoveAll(self
, *_args
, **_kwargs
):
780 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
782 def GetSize(self
, *_args
, **_kwargs
):
783 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
786 return "<C wxImageList instance at %s>" % (self
.this
,)
787 class wxImageList(wxImageListPtr
):
788 def __init__(self
,*_args
,**_kwargs
):
789 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
797 #-------------- FUNCTION WRAPPERS ------------------
799 def wxEmptyBitmap(*_args
, **_kwargs
):
800 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
801 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
804 def wxMaskColour(*_args
, **_kwargs
):
805 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
806 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
809 def wxStockCursor(*_args
, **_kwargs
):
810 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
811 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
814 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
816 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
818 def wxNamedColour(*_args
, **_kwargs
):
819 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
820 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
823 def wxMemoryDCFromDC(*_args
, **_kwargs
):
824 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
825 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
830 #-------------- VARIABLE WRAPPERS ------------------
832 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
833 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
834 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
835 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
836 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
837 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
838 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
839 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
840 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
841 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
842 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
843 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
844 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
845 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
846 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
847 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
848 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
849 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
850 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
851 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
852 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
853 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
854 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
855 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
856 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
857 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
858 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
859 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
860 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
862 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
863 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
864 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
865 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
866 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
867 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
868 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
869 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
870 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
871 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
872 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
873 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
874 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
875 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
876 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
877 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
878 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
879 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
880 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
881 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
882 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
883 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
884 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
885 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
886 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
887 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
888 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
889 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
890 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
891 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
892 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
893 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
894 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
895 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
896 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
897 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
898 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
899 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
900 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
901 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
902 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
903 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
904 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
905 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
906 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
907 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
908 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
909 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
910 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE