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 SetPalette(self
, *_args
, **_kwargs
):
30 val
= apply(gdic
.wxBitmap_SetPalette
,(self
,) + _args
, _kwargs
)
32 def GetHandle(self
, *_args
, **_kwargs
):
33 val
= apply(gdic
.wxBitmap_GetHandle
,(self
,) + _args
, _kwargs
)
35 def SetHandle(self
, *_args
, **_kwargs
):
36 val
= apply(gdic
.wxBitmap_SetHandle
,(self
,) + _args
, _kwargs
)
38 def Ok(self
, *_args
, **_kwargs
):
39 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
41 def GetWidth(self
, *_args
, **_kwargs
):
42 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
44 def GetHeight(self
, *_args
, **_kwargs
):
45 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
47 def GetDepth(self
, *_args
, **_kwargs
):
48 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
50 def SetWidth(self
, *_args
, **_kwargs
):
51 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
53 def SetHeight(self
, *_args
, **_kwargs
):
54 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
56 def SetDepth(self
, *_args
, **_kwargs
):
57 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
59 def SetSize(self
, *_args
, **_kwargs
):
60 val
= apply(gdic
.wxBitmap_SetSize
,(self
,) + _args
, _kwargs
)
63 return "<C wxBitmap instance at %s>" % (self
.this
,)
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 GetHandle(self
, *_args
, **_kwargs
):
97 val
= apply(gdic
.wxIcon_GetHandle
,(self
,) + _args
, _kwargs
)
99 def SetHandle(self
, *_args
, **_kwargs
):
100 val
= apply(gdic
.wxIcon_SetHandle
,(self
,) + _args
, _kwargs
)
102 def Ok(self
, *_args
, **_kwargs
):
103 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
105 def GetWidth(self
, *_args
, **_kwargs
):
106 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
108 def GetHeight(self
, *_args
, **_kwargs
):
109 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
111 def GetDepth(self
, *_args
, **_kwargs
):
112 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
114 def SetWidth(self
, *_args
, **_kwargs
):
115 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
117 def SetHeight(self
, *_args
, **_kwargs
):
118 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
120 def SetDepth(self
, *_args
, **_kwargs
):
121 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
123 def SetSize(self
, *_args
, **_kwargs
):
124 val
= apply(gdic
.wxIcon_SetSize
,(self
,) + _args
, _kwargs
)
127 return "<C wxIcon instance at %s>" % (self
.this
,)
128 class wxIcon(wxIconPtr
):
129 def __init__(self
,*_args
,**_kwargs
):
130 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
137 def __init__(self
,this
):
140 def __del__(self
,gdic
=gdic
):
141 if self
.thisown
== 1 :
142 gdic
.delete_wxCursor(self
)
143 def GetHandle(self
, *_args
, **_kwargs
):
144 val
= apply(gdic
.wxCursor_GetHandle
,(self
,) + _args
, _kwargs
)
146 def SetHandle(self
, *_args
, **_kwargs
):
147 val
= apply(gdic
.wxCursor_SetHandle
,(self
,) + _args
, _kwargs
)
149 def Ok(self
, *_args
, **_kwargs
):
150 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
152 def GetWidth(self
, *_args
, **_kwargs
):
153 val
= apply(gdic
.wxCursor_GetWidth
,(self
,) + _args
, _kwargs
)
155 def GetHeight(self
, *_args
, **_kwargs
):
156 val
= apply(gdic
.wxCursor_GetHeight
,(self
,) + _args
, _kwargs
)
158 def GetDepth(self
, *_args
, **_kwargs
):
159 val
= apply(gdic
.wxCursor_GetDepth
,(self
,) + _args
, _kwargs
)
161 def SetWidth(self
, *_args
, **_kwargs
):
162 val
= apply(gdic
.wxCursor_SetWidth
,(self
,) + _args
, _kwargs
)
164 def SetHeight(self
, *_args
, **_kwargs
):
165 val
= apply(gdic
.wxCursor_SetHeight
,(self
,) + _args
, _kwargs
)
167 def SetDepth(self
, *_args
, **_kwargs
):
168 val
= apply(gdic
.wxCursor_SetDepth
,(self
,) + _args
, _kwargs
)
170 def SetSize(self
, *_args
, **_kwargs
):
171 val
= apply(gdic
.wxCursor_SetSize
,(self
,) + _args
, _kwargs
)
174 return "<C wxCursor instance at %s>" % (self
.this
,)
175 class wxCursor(wxCursorPtr
):
176 def __init__(self
,*_args
,**_kwargs
):
177 self
.this
= apply(gdic
.new_wxCursor
,_args
,_kwargs
)
184 def __init__(self
,this
):
187 def Ok(self
, *_args
, **_kwargs
):
188 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
190 def GetFaceName(self
, *_args
, **_kwargs
):
191 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
193 def GetFamily(self
, *_args
, **_kwargs
):
194 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
196 def GetFontId(self
, *_args
, **_kwargs
):
197 val
= apply(gdic
.wxFont_GetFontId
,(self
,) + _args
, _kwargs
)
199 def GetPointSize(self
, *_args
, **_kwargs
):
200 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
202 def GetStyle(self
, *_args
, **_kwargs
):
203 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
205 def GetUnderlined(self
, *_args
, **_kwargs
):
206 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
208 def GetWeight(self
, *_args
, **_kwargs
):
209 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
211 def GetEncoding(self
, *_args
, **_kwargs
):
212 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
214 def SetFaceName(self
, *_args
, **_kwargs
):
215 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
217 def SetFamily(self
, *_args
, **_kwargs
):
218 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
220 def SetPointSize(self
, *_args
, **_kwargs
):
221 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
223 def SetStyle(self
, *_args
, **_kwargs
):
224 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
226 def SetUnderlined(self
, *_args
, **_kwargs
):
227 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
229 def SetWeight(self
, *_args
, **_kwargs
):
230 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
232 def SetEncoding(self
, *_args
, **_kwargs
):
233 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
235 def GetFamilyString(self
, *_args
, **_kwargs
):
236 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
238 def GetStyleString(self
, *_args
, **_kwargs
):
239 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
241 def GetWeightString(self
, *_args
, **_kwargs
):
242 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
245 return "<C wxFont instance at %s>" % (self
.this
,)
246 class wxFont(wxFontPtr
):
247 def __init__(self
,*_args
,**_kwargs
):
248 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
255 def __init__(self
,this
):
258 def __del__(self
,gdic
=gdic
):
259 if self
.thisown
== 1 :
260 gdic
.delete_wxColour(self
)
261 def Red(self
, *_args
, **_kwargs
):
262 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
264 def Green(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
267 def Blue(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
270 def Ok(self
, *_args
, **_kwargs
):
271 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
273 def Set(self
, *_args
, **_kwargs
):
274 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
276 def Get(self
, *_args
, **_kwargs
):
277 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
280 return "<C wxColour instance at %s>" % (self
.this
,)
282 def __str__(self
): return str(self
.asTuple())
283 def __repr__(self
): return str(self
.asTuple())
284 class wxColour(wxColourPtr
):
285 def __init__(self
,*_args
,**_kwargs
):
286 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
293 def __init__(self
,this
):
296 def GetCap(self
, *_args
, **_kwargs
):
297 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
299 def GetColour(self
, *_args
, **_kwargs
):
300 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
301 if val
: val
= wxColourPtr(val
)
303 def GetJoin(self
, *_args
, **_kwargs
):
304 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
306 def GetStyle(self
, *_args
, **_kwargs
):
307 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
309 def GetWidth(self
, *_args
, **_kwargs
):
310 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
312 def Ok(self
, *_args
, **_kwargs
):
313 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
315 def SetCap(self
, *_args
, **_kwargs
):
316 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
318 def SetColour(self
, *_args
, **_kwargs
):
319 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
321 def SetJoin(self
, *_args
, **_kwargs
):
322 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
324 def SetStyle(self
, *_args
, **_kwargs
):
325 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
327 def SetWidth(self
, *_args
, **_kwargs
):
328 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
330 def GetDashes(self
, *_args
, **_kwargs
):
331 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
333 def SetDashes(self
, *_args
, **_kwargs
):
334 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
336 def GetStipple(self
, *_args
, **_kwargs
):
337 val
= apply(gdic
.wxPen_GetStipple
,(self
,) + _args
, _kwargs
)
338 if val
: val
= wxBitmapPtr(val
)
340 def SetStipple(self
, *_args
, **_kwargs
):
341 val
= apply(gdic
.wxPen_SetStipple
,(self
,) + _args
, _kwargs
)
344 return "<C wxPen instance at %s>" % (self
.this
,)
345 class wxPen(wxPenPtr
):
346 def __init__(self
,*_args
,**_kwargs
):
347 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
354 def __init__(self
,this
):
357 def GetColour(self
, *_args
, **_kwargs
):
358 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
359 if val
: val
= wxColourPtr(val
)
361 def GetStipple(self
, *_args
, **_kwargs
):
362 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
363 if val
: val
= wxBitmapPtr(val
)
365 def GetStyle(self
, *_args
, **_kwargs
):
366 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
368 def Ok(self
, *_args
, **_kwargs
):
369 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
371 def SetColour(self
, *_args
, **_kwargs
):
372 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
374 def SetStipple(self
, *_args
, **_kwargs
):
375 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
377 def SetStyle(self
, *_args
, **_kwargs
):
378 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
381 return "<C wxBrush instance at %s>" % (self
.this
,)
382 class wxBrush(wxBrushPtr
):
383 def __init__(self
,*_args
,**_kwargs
):
384 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
391 def __init__(self
,this
):
394 def __del__(self
,gdic
=gdic
):
395 if self
.thisown
== 1 :
396 gdic
.delete_wxDC(self
)
397 def BeginDrawing(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
400 def Blit(self
, *_args
, **_kwargs
):
401 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
403 def Clear(self
, *_args
, **_kwargs
):
404 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
406 def CrossHair(self
, *_args
, **_kwargs
):
407 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
409 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
410 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
412 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
413 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
415 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
416 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
418 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
419 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
421 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
422 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
424 def DrawArc(self
, *_args
, **_kwargs
):
425 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
427 def DrawCircle(self
, *_args
, **_kwargs
):
428 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
430 def DrawEllipse(self
, *_args
, **_kwargs
):
431 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
433 def DrawEllipticArc(self
, *_args
, **_kwargs
):
434 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
436 def DrawIcon(self
, *_args
, **_kwargs
):
437 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
439 def DrawLine(self
, *_args
, **_kwargs
):
440 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
442 def DrawLines(self
, *_args
, **_kwargs
):
443 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
445 def DrawPolygon(self
, *_args
, **_kwargs
):
446 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
448 def DrawPoint(self
, *_args
, **_kwargs
):
449 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
451 def DrawRectangle(self
, *_args
, **_kwargs
):
452 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
454 def DrawRotatedText(self
, *_args
, **_kwargs
):
455 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
457 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
458 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
460 def DrawSpline(self
, *_args
, **_kwargs
):
461 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
463 def DrawText(self
, *_args
, **_kwargs
):
464 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
466 def EndDoc(self
, *_args
, **_kwargs
):
467 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
469 def EndDrawing(self
, *_args
, **_kwargs
):
470 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
472 def EndPage(self
, *_args
, **_kwargs
):
473 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
475 def FloodFill(self
, *_args
, **_kwargs
):
476 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
478 def GetBackground(self
, *_args
, **_kwargs
):
479 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
480 if val
: val
= wxBrushPtr(val
)
482 def GetBrush(self
, *_args
, **_kwargs
):
483 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
484 if val
: val
= wxBrushPtr(val
)
486 def GetCharHeight(self
, *_args
, **_kwargs
):
487 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
489 def GetCharWidth(self
, *_args
, **_kwargs
):
490 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
492 def GetClippingBox(self
, *_args
, **_kwargs
):
493 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
495 def GetFont(self
, *_args
, **_kwargs
):
496 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
497 if val
: val
= wxFontPtr(val
)
499 def GetLogicalFunction(self
, *_args
, **_kwargs
):
500 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
502 def GetLogicalScale(self
, *_args
, **_kwargs
):
503 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
505 def GetMapMode(self
, *_args
, **_kwargs
):
506 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
508 def GetOptimization(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
511 def GetPen(self
, *_args
, **_kwargs
):
512 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
513 if val
: val
= wxPenPtr(val
)
515 def GetPixel(self
, *_args
, **_kwargs
):
516 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
517 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
519 def GetSizeTuple(self
, *_args
, **_kwargs
):
520 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
522 def GetSize(self
, *_args
, **_kwargs
):
523 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
524 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
526 def GetSizeMM(self
, *_args
, **_kwargs
):
527 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
528 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
530 def GetTextBackground(self
, *_args
, **_kwargs
):
531 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
532 if val
: val
= wxColourPtr(val
)
534 def GetTextExtent(self
, *_args
, **_kwargs
):
535 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
537 def GetFullTextExtent(self
, *_args
, **_kwargs
):
538 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
540 def GetTextForeground(self
, *_args
, **_kwargs
):
541 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
542 if val
: val
= wxColourPtr(val
)
544 def GetUserScale(self
, *_args
, **_kwargs
):
545 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
547 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
548 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
550 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
551 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
553 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
554 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
556 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
557 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
559 def MaxX(self
, *_args
, **_kwargs
):
560 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
562 def MaxY(self
, *_args
, **_kwargs
):
563 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
565 def MinX(self
, *_args
, **_kwargs
):
566 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
568 def MinY(self
, *_args
, **_kwargs
):
569 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
571 def Ok(self
, *_args
, **_kwargs
):
572 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
574 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
575 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
577 def SetBackground(self
, *_args
, **_kwargs
):
578 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
580 def SetBackgroundMode(self
, *_args
, **_kwargs
):
581 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
583 def SetClippingRegion(self
, *_args
, **_kwargs
):
584 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
586 def SetPalette(self
, *_args
, **_kwargs
):
587 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
589 def SetBrush(self
, *_args
, **_kwargs
):
590 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
592 def SetFont(self
, *_args
, **_kwargs
):
593 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
595 def SetLogicalFunction(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
598 def SetLogicalScale(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
601 def SetMapMode(self
, *_args
, **_kwargs
):
602 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
604 def SetOptimization(self
, *_args
, **_kwargs
):
605 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
607 def SetPen(self
, *_args
, **_kwargs
):
608 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
610 def SetTextBackground(self
, *_args
, **_kwargs
):
611 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
613 def SetTextForeground(self
, *_args
, **_kwargs
):
614 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
616 def SetUserScale(self
, *_args
, **_kwargs
):
617 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
619 def StartDoc(self
, *_args
, **_kwargs
):
620 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
622 def StartPage(self
, *_args
, **_kwargs
):
623 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
625 def DrawBitmap(self
, *_args
, **_kwargs
):
626 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
628 def CanDrawBitmap(self
, *_args
, **_kwargs
):
629 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
631 def CanGetTextExtent(self
, *_args
, **_kwargs
):
632 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
634 def GetDepth(self
, *_args
, **_kwargs
):
635 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
637 def GetPPI(self
, *_args
, **_kwargs
):
638 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
639 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
641 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
642 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
644 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
645 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
647 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
648 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
650 def SetAxisOrientation(self
, *_args
, **_kwargs
):
651 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
654 return "<C wxDC instance at %s>" % (self
.this
,)
656 def __init__(self
,this
):
662 class wxMemoryDCPtr(wxDCPtr
):
663 def __init__(self
,this
):
666 def SelectObject(self
, *_args
, **_kwargs
):
667 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
670 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
671 class wxMemoryDC(wxMemoryDCPtr
):
672 def __init__(self
,*_args
,**_kwargs
):
673 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
679 class wxScreenDCPtr(wxDCPtr
):
680 def __init__(self
,this
):
683 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
684 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
686 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
687 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
689 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
690 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
693 return "<C wxScreenDC instance at %s>" % (self
.this
,)
694 class wxScreenDC(wxScreenDCPtr
):
695 def __init__(self
,*_args
,**_kwargs
):
696 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
702 class wxClientDCPtr(wxDCPtr
):
703 def __init__(self
,this
):
707 return "<C wxClientDC instance at %s>" % (self
.this
,)
708 class wxClientDC(wxClientDCPtr
):
709 def __init__(self
,*_args
,**_kwargs
):
710 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
716 class wxPaintDCPtr(wxDCPtr
):
717 def __init__(self
,this
):
721 return "<C wxPaintDC instance at %s>" % (self
.this
,)
722 class wxPaintDC(wxPaintDCPtr
):
723 def __init__(self
,*_args
,**_kwargs
):
724 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
730 class wxWindowDCPtr(wxDCPtr
):
731 def __init__(self
,this
):
735 return "<C wxWindowDC instance at %s>" % (self
.this
,)
736 class wxWindowDC(wxWindowDCPtr
):
737 def __init__(self
,*_args
,**_kwargs
):
738 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
744 class wxPrinterDCPtr(wxDCPtr
):
745 def __init__(self
,this
):
749 return "<C wxPrinterDC instance at %s>" % (self
.this
,)
750 class wxPrinterDC(wxPrinterDCPtr
):
751 def __init__(self
,*_args
,**_kwargs
):
752 self
.this
= apply(gdic
.new_wxPrinterDC
,_args
,_kwargs
)
758 class wxMetaFileDCPtr(wxDCPtr
):
759 def __init__(self
,this
):
762 def Close(self
, *_args
, **_kwargs
):
763 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
766 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
767 class wxMetaFileDC(wxMetaFileDCPtr
):
768 def __init__(self
,*_args
,**_kwargs
):
769 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
776 def __init__(self
,this
):
779 def __del__(self
,gdic
=gdic
):
780 if self
.thisown
== 1 :
781 gdic
.delete_wxPalette(self
)
782 def GetPixel(self
, *_args
, **_kwargs
):
783 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
785 def GetRGB(self
, *_args
, **_kwargs
):
786 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
788 def Ok(self
, *_args
, **_kwargs
):
789 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
792 return "<C wxPalette instance at %s>" % (self
.this
,)
793 class wxPalette(wxPalettePtr
):
794 def __init__(self
,*_args
,**_kwargs
):
795 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
801 class wxImageListPtr
:
802 def __init__(self
,this
):
805 def __del__(self
,gdic
=gdic
):
806 if self
.thisown
== 1 :
807 gdic
.delete_wxImageList(self
)
808 def Add(self
, *_args
, **_kwargs
):
809 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
811 def AddWithColourMask(self
, *_args
, **_kwargs
):
812 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
814 def AddIcon(self
, *_args
, **_kwargs
):
815 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
817 def Replace(self
, *_args
, **_kwargs
):
818 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
820 def ReplaceIcon(self
, *_args
, **_kwargs
):
821 val
= apply(gdic
.wxImageList_ReplaceIcon
,(self
,) + _args
, _kwargs
)
823 def Draw(self
, *_args
, **_kwargs
):
824 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
826 def GetImageCount(self
, *_args
, **_kwargs
):
827 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
829 def Remove(self
, *_args
, **_kwargs
):
830 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
832 def RemoveAll(self
, *_args
, **_kwargs
):
833 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
836 return "<C wxImageList instance at %s>" % (self
.this
,)
837 class wxImageList(wxImageListPtr
):
838 def __init__(self
,*_args
,**_kwargs
):
839 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
847 #-------------- FUNCTION WRAPPERS ------------------
849 def wxEmptyBitmap(*_args
, **_kwargs
):
850 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
851 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
854 def wxBitmapFromData(*_args
, **_kwargs
):
855 val
= apply(gdic
.wxBitmapFromData
,_args
,_kwargs
)
856 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
859 def wxMaskColour(*_args
, **_kwargs
):
860 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
861 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
864 def wxStockCursor(*_args
, **_kwargs
):
865 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
866 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
869 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
871 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
873 def wxNamedColour(*_args
, **_kwargs
):
874 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
875 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
878 def wxMemoryDCFromDC(*_args
, **_kwargs
):
879 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
880 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
885 #-------------- VARIABLE WRAPPERS ------------------
887 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
888 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
889 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
890 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
891 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
892 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
893 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
894 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
895 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
896 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
897 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
898 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
899 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
900 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
901 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
902 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
903 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
904 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
905 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
906 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
907 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
908 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
909 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
910 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
911 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
912 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
913 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
914 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
915 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
917 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
918 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
919 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
920 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
921 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
922 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
923 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
924 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
925 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
926 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
927 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
928 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
929 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
930 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
931 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
932 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
933 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
934 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
935 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
936 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
937 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
938 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
939 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
940 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
941 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
942 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
943 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
944 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
945 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
946 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
947 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
948 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
949 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
950 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
951 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
952 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
953 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
954 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
955 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
956 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
957 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
958 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
959 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
960 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
961 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
962 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
963 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
964 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
965 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE