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 GetMapMode(self
, *_args
, **_kwargs
):
503 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
505 def GetOptimization(self
, *_args
, **_kwargs
):
506 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
508 def GetPen(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
510 if val
: val
= wxPenPtr(val
)
512 def GetPixel(self
, *_args
, **_kwargs
):
513 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
514 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
516 def GetSizeTuple(self
, *_args
, **_kwargs
):
517 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
519 def GetSize(self
, *_args
, **_kwargs
):
520 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
521 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
523 def GetTextBackground(self
, *_args
, **_kwargs
):
524 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
525 if val
: val
= wxColourPtr(val
)
527 def GetTextExtent(self
, *_args
, **_kwargs
):
528 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
530 def GetFullTextExtent(self
, *_args
, **_kwargs
):
531 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
533 def GetTextForeground(self
, *_args
, **_kwargs
):
534 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
535 if val
: val
= wxColourPtr(val
)
537 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
538 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
540 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
541 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
543 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
544 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
546 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
547 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
549 def MaxX(self
, *_args
, **_kwargs
):
550 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
552 def MaxY(self
, *_args
, **_kwargs
):
553 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
555 def MinX(self
, *_args
, **_kwargs
):
556 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
558 def MinY(self
, *_args
, **_kwargs
):
559 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
561 def Ok(self
, *_args
, **_kwargs
):
562 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
564 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
565 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
567 def SetBackground(self
, *_args
, **_kwargs
):
568 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
570 def SetBackgroundMode(self
, *_args
, **_kwargs
):
571 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
573 def SetClippingRegion(self
, *_args
, **_kwargs
):
574 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
576 def SetPalette(self
, *_args
, **_kwargs
):
577 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
579 def SetBrush(self
, *_args
, **_kwargs
):
580 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
582 def SetFont(self
, *_args
, **_kwargs
):
583 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
585 def SetLogicalFunction(self
, *_args
, **_kwargs
):
586 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
588 def SetMapMode(self
, *_args
, **_kwargs
):
589 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
591 def SetOptimization(self
, *_args
, **_kwargs
):
592 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
594 def SetPen(self
, *_args
, **_kwargs
):
595 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
597 def SetTextBackground(self
, *_args
, **_kwargs
):
598 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
600 def SetTextForeground(self
, *_args
, **_kwargs
):
601 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
603 def SetUserScale(self
, *_args
, **_kwargs
):
604 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
606 def StartDoc(self
, *_args
, **_kwargs
):
607 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
609 def StartPage(self
, *_args
, **_kwargs
):
610 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
612 def DrawBitmap(self
, *_args
, **_kwargs
):
613 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
616 return "<C wxDC instance at %s>" % (self
.this
,)
618 def __init__(self
,this
):
624 class wxMemoryDCPtr(wxDCPtr
):
625 def __init__(self
,this
):
628 def SelectObject(self
, *_args
, **_kwargs
):
629 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
632 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
633 class wxMemoryDC(wxMemoryDCPtr
):
634 def __init__(self
,*_args
,**_kwargs
):
635 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
641 class wxScreenDCPtr(wxDCPtr
):
642 def __init__(self
,this
):
645 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
646 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
648 def StartDrawingOnTopRect(self
, *_args
, **_kwargs
):
649 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopRect
,(self
,) + _args
, _kwargs
)
651 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
652 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
655 return "<C wxScreenDC instance at %s>" % (self
.this
,)
656 class wxScreenDC(wxScreenDCPtr
):
657 def __init__(self
,*_args
,**_kwargs
):
658 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
664 class wxClientDCPtr(wxDCPtr
):
665 def __init__(self
,this
):
669 return "<C wxClientDC instance at %s>" % (self
.this
,)
670 class wxClientDC(wxClientDCPtr
):
671 def __init__(self
,*_args
,**_kwargs
):
672 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
678 class wxPaintDCPtr(wxDCPtr
):
679 def __init__(self
,this
):
683 return "<C wxPaintDC instance at %s>" % (self
.this
,)
684 class wxPaintDC(wxPaintDCPtr
):
685 def __init__(self
,*_args
,**_kwargs
):
686 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
692 class wxWindowDCPtr(wxDCPtr
):
693 def __init__(self
,this
):
697 return "<C wxWindowDC instance at %s>" % (self
.this
,)
698 class wxWindowDC(wxWindowDCPtr
):
699 def __init__(self
,*_args
,**_kwargs
):
700 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
706 class wxPrinterDCPtr(wxDCPtr
):
707 def __init__(self
,this
):
711 return "<C wxPrinterDC instance at %s>" % (self
.this
,)
712 class wxPrinterDC(wxPrinterDCPtr
):
713 def __init__(self
,*_args
,**_kwargs
):
714 self
.this
= apply(gdic
.new_wxPrinterDC
,_args
,_kwargs
)
720 class wxMetaFileDCPtr(wxDCPtr
):
721 def __init__(self
,this
):
724 def Close(self
, *_args
, **_kwargs
):
725 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
728 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
729 class wxMetaFileDC(wxMetaFileDCPtr
):
730 def __init__(self
,*_args
,**_kwargs
):
731 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
738 def __init__(self
,this
):
741 def __del__(self
,gdic
=gdic
):
742 if self
.thisown
== 1 :
743 gdic
.delete_wxPalette(self
)
744 def GetPixel(self
, *_args
, **_kwargs
):
745 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
747 def GetRGB(self
, *_args
, **_kwargs
):
748 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
750 def Ok(self
, *_args
, **_kwargs
):
751 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
754 return "<C wxPalette instance at %s>" % (self
.this
,)
755 class wxPalette(wxPalettePtr
):
756 def __init__(self
,*_args
,**_kwargs
):
757 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
763 class wxImageListPtr
:
764 def __init__(self
,this
):
767 def __del__(self
,gdic
=gdic
):
768 if self
.thisown
== 1 :
769 gdic
.delete_wxImageList(self
)
770 def Add(self
, *_args
, **_kwargs
):
771 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
773 def AddWithColourMask(self
, *_args
, **_kwargs
):
774 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
776 def AddIcon(self
, *_args
, **_kwargs
):
777 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
779 def Replace(self
, *_args
, **_kwargs
):
780 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
782 def ReplaceIcon(self
, *_args
, **_kwargs
):
783 val
= apply(gdic
.wxImageList_ReplaceIcon
,(self
,) + _args
, _kwargs
)
785 def Draw(self
, *_args
, **_kwargs
):
786 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
788 def GetImageCount(self
, *_args
, **_kwargs
):
789 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
791 def Remove(self
, *_args
, **_kwargs
):
792 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
794 def RemoveAll(self
, *_args
, **_kwargs
):
795 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
798 return "<C wxImageList instance at %s>" % (self
.this
,)
799 class wxImageList(wxImageListPtr
):
800 def __init__(self
,*_args
,**_kwargs
):
801 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
809 #-------------- FUNCTION WRAPPERS ------------------
811 def wxEmptyBitmap(*_args
, **_kwargs
):
812 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
813 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
816 def wxBitmapFromData(*_args
, **_kwargs
):
817 val
= apply(gdic
.wxBitmapFromData
,_args
,_kwargs
)
818 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
821 def wxMaskColour(*_args
, **_kwargs
):
822 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
823 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
826 def wxStockCursor(*_args
, **_kwargs
):
827 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
828 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
831 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
833 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
835 def wxNamedColour(*_args
, **_kwargs
):
836 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
837 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
840 def wxMemoryDCFromDC(*_args
, **_kwargs
):
841 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
842 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
847 #-------------- VARIABLE WRAPPERS ------------------
849 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
850 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
851 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
852 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
853 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
854 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
855 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
856 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
857 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
858 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
859 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
860 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
861 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
862 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
863 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
864 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
865 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
866 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
867 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
868 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
869 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
870 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
871 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
872 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
873 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
874 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
875 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
876 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
877 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
879 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
880 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
881 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
882 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
883 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
884 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
885 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
886 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
887 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
888 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
889 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
890 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
891 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
892 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
893 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
894 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
895 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
896 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
897 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
898 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
899 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
900 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
901 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
902 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
903 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
904 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
905 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
906 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
907 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
908 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
909 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
910 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
911 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
912 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
913 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
914 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
915 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
916 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
917 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
918 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
919 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
920 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
921 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
922 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
923 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
924 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
925 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
926 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
927 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE