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 Create(self
, *_args
, **_kwargs
):
13 val
= apply(gdic
.wxBitmap_Create
,(self
,) + _args
, _kwargs
)
15 def GetDepth(self
, *_args
, **_kwargs
):
16 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
18 def GetHeight(self
, *_args
, **_kwargs
):
19 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
21 def GetPalette(self
, *_args
, **_kwargs
):
22 val
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
23 if val
: val
= wxPalettePtr(val
)
25 def GetMask(self
, *_args
, **_kwargs
):
26 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
27 if val
: val
= wxMaskPtr(val
)
29 def GetWidth(self
, *_args
, **_kwargs
):
30 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
32 def LoadFile(self
, *_args
, **_kwargs
):
33 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
35 def Ok(self
, *_args
, **_kwargs
):
36 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
38 def SaveFile(self
, *_args
, **_kwargs
):
39 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
41 def SetDepth(self
, *_args
, **_kwargs
):
42 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
44 def SetHeight(self
, *_args
, **_kwargs
):
45 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
47 def SetMask(self
, *_args
, **_kwargs
):
48 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
50 def SetPalette(self
, *_args
, **_kwargs
):
51 val
= apply(gdic
.wxBitmap_SetPalette
,(self
,) + _args
, _kwargs
)
53 def SetWidth(self
, *_args
, **_kwargs
):
54 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
57 return "<C wxBitmap instance at %s>" % (self
.this
,)
58 class wxBitmap(wxBitmapPtr
):
59 def __init__(self
,*_args
,**_kwargs
):
60 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
67 def __init__(self
,this
):
71 return "<C wxMask instance at %s>" % (self
.this
,)
72 class wxMask(wxMaskPtr
):
73 def __init__(self
,*_args
,**_kwargs
):
74 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
80 class wxIconPtr(wxBitmapPtr
):
81 def __init__(self
,this
):
84 def __del__(self
,gdic
=gdic
):
85 if self
.thisown
== 1 :
86 gdic
.delete_wxIcon(self
)
87 def GetDepth(self
, *_args
, **_kwargs
):
88 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
90 def GetHeight(self
, *_args
, **_kwargs
):
91 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
93 def GetWidth(self
, *_args
, **_kwargs
):
94 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
96 def LoadFile(self
, *_args
, **_kwargs
):
97 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
99 def Ok(self
, *_args
, **_kwargs
):
100 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
102 def SetDepth(self
, *_args
, **_kwargs
):
103 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
105 def SetHeight(self
, *_args
, **_kwargs
):
106 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
108 def SetWidth(self
, *_args
, **_kwargs
):
109 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
112 return "<C wxIcon instance at %s>" % (self
.this
,)
113 class wxIcon(wxIconPtr
):
114 def __init__(self
,*_args
,**_kwargs
):
115 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
121 class wxCursorPtr(wxBitmapPtr
):
122 def __init__(self
,this
):
125 def __del__(self
,gdic
=gdic
):
126 if self
.thisown
== 1 :
127 gdic
.delete_wxCursor(self
)
128 def Ok(self
, *_args
, **_kwargs
):
129 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
132 return "<C wxCursor instance at %s>" % (self
.this
,)
133 class wxCursor(wxCursorPtr
):
134 def __init__(self
,*_args
,**_kwargs
):
135 self
.this
= apply(gdic
.new_wxCursor
,_args
,_kwargs
)
142 def __init__(self
,this
):
145 def Ok(self
, *_args
, **_kwargs
):
146 val
= apply(gdic
.wxFont_Ok
,(self
,) + _args
, _kwargs
)
148 def GetFaceName(self
, *_args
, **_kwargs
):
149 val
= apply(gdic
.wxFont_GetFaceName
,(self
,) + _args
, _kwargs
)
151 def GetFamily(self
, *_args
, **_kwargs
):
152 val
= apply(gdic
.wxFont_GetFamily
,(self
,) + _args
, _kwargs
)
154 def GetFontId(self
, *_args
, **_kwargs
):
155 val
= apply(gdic
.wxFont_GetFontId
,(self
,) + _args
, _kwargs
)
157 def GetPointSize(self
, *_args
, **_kwargs
):
158 val
= apply(gdic
.wxFont_GetPointSize
,(self
,) + _args
, _kwargs
)
160 def GetStyle(self
, *_args
, **_kwargs
):
161 val
= apply(gdic
.wxFont_GetStyle
,(self
,) + _args
, _kwargs
)
163 def GetUnderlined(self
, *_args
, **_kwargs
):
164 val
= apply(gdic
.wxFont_GetUnderlined
,(self
,) + _args
, _kwargs
)
166 def GetWeight(self
, *_args
, **_kwargs
):
167 val
= apply(gdic
.wxFont_GetWeight
,(self
,) + _args
, _kwargs
)
169 def GetEncoding(self
, *_args
, **_kwargs
):
170 val
= apply(gdic
.wxFont_GetEncoding
,(self
,) + _args
, _kwargs
)
172 def SetFaceName(self
, *_args
, **_kwargs
):
173 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
175 def SetFamily(self
, *_args
, **_kwargs
):
176 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
178 def SetPointSize(self
, *_args
, **_kwargs
):
179 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
181 def SetStyle(self
, *_args
, **_kwargs
):
182 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
184 def SetUnderlined(self
, *_args
, **_kwargs
):
185 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
187 def SetWeight(self
, *_args
, **_kwargs
):
188 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
190 def SetEncoding(self
, *_args
, **_kwargs
):
191 val
= apply(gdic
.wxFont_SetEncoding
,(self
,) + _args
, _kwargs
)
193 def GetFamilyString(self
, *_args
, **_kwargs
):
194 val
= apply(gdic
.wxFont_GetFamilyString
,(self
,) + _args
, _kwargs
)
196 def GetStyleString(self
, *_args
, **_kwargs
):
197 val
= apply(gdic
.wxFont_GetStyleString
,(self
,) + _args
, _kwargs
)
199 def GetWeightString(self
, *_args
, **_kwargs
):
200 val
= apply(gdic
.wxFont_GetWeightString
,(self
,) + _args
, _kwargs
)
203 return "<C wxFont instance at %s>" % (self
.this
,)
204 class wxFont(wxFontPtr
):
205 def __init__(self
,*_args
,**_kwargs
):
206 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
213 def __init__(self
,this
):
216 def __del__(self
,gdic
=gdic
):
217 if self
.thisown
== 1 :
218 gdic
.delete_wxColour(self
)
219 def Red(self
, *_args
, **_kwargs
):
220 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
222 def Green(self
, *_args
, **_kwargs
):
223 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
225 def Blue(self
, *_args
, **_kwargs
):
226 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
228 def Ok(self
, *_args
, **_kwargs
):
229 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
231 def Set(self
, *_args
, **_kwargs
):
232 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
234 def Get(self
, *_args
, **_kwargs
):
235 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
238 return "<C wxColour instance at %s>" % (self
.this
,)
239 class wxColour(wxColourPtr
):
240 def __init__(self
,*_args
,**_kwargs
):
241 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
248 def __init__(self
,this
):
251 def GetCap(self
, *_args
, **_kwargs
):
252 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
254 def GetColour(self
, *_args
, **_kwargs
):
255 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
256 if val
: val
= wxColourPtr(val
)
258 def GetJoin(self
, *_args
, **_kwargs
):
259 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
261 def GetStyle(self
, *_args
, **_kwargs
):
262 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
264 def GetWidth(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
267 def Ok(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
270 def SetCap(self
, *_args
, **_kwargs
):
271 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
273 def SetColour(self
, *_args
, **_kwargs
):
274 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
276 def SetJoin(self
, *_args
, **_kwargs
):
277 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
279 def SetStyle(self
, *_args
, **_kwargs
):
280 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
282 def SetWidth(self
, *_args
, **_kwargs
):
283 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
285 def GetDashes(self
, *_args
, **_kwargs
):
286 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
288 def GetStipple(self
, *_args
, **_kwargs
):
289 val
= apply(gdic
.wxPen_GetStipple
,(self
,) + _args
, _kwargs
)
290 if val
: val
= wxBitmapPtr(val
)
292 def SetDashes(self
, *_args
, **_kwargs
):
293 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
295 def SetStipple(self
, *_args
, **_kwargs
):
296 val
= apply(gdic
.wxPen_SetStipple
,(self
,) + _args
, _kwargs
)
299 return "<C wxPen instance at %s>" % (self
.this
,)
300 class wxPen(wxPenPtr
):
301 def __init__(self
,*_args
,**_kwargs
):
302 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
309 def __init__(self
,this
):
312 def GetColour(self
, *_args
, **_kwargs
):
313 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
314 if val
: val
= wxColourPtr(val
)
316 def GetStipple(self
, *_args
, **_kwargs
):
317 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
318 if val
: val
= wxBitmapPtr(val
)
320 def GetStyle(self
, *_args
, **_kwargs
):
321 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
323 def Ok(self
, *_args
, **_kwargs
):
324 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
326 def SetColour(self
, *_args
, **_kwargs
):
327 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
329 def SetStipple(self
, *_args
, **_kwargs
):
330 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
332 def SetStyle(self
, *_args
, **_kwargs
):
333 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
336 return "<C wxBrush instance at %s>" % (self
.this
,)
337 class wxBrush(wxBrushPtr
):
338 def __init__(self
,*_args
,**_kwargs
):
339 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
346 def __init__(self
,this
):
349 def __del__(self
,gdic
=gdic
):
350 if self
.thisown
== 1 :
351 gdic
.delete_wxDC(self
)
352 def BeginDrawing(self
, *_args
, **_kwargs
):
353 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
355 def Blit(self
, *_args
, **_kwargs
):
356 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
358 def Clear(self
, *_args
, **_kwargs
):
359 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
361 def CrossHair(self
, *_args
, **_kwargs
):
362 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
364 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
365 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
367 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
368 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
370 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
371 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
373 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
374 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
376 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
377 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
379 def DrawArc(self
, *_args
, **_kwargs
):
380 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
382 def DrawCircle(self
, *_args
, **_kwargs
):
383 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
385 def DrawEllipse(self
, *_args
, **_kwargs
):
386 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
388 def DrawEllipticArc(self
, *_args
, **_kwargs
):
389 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
391 def DrawIcon(self
, *_args
, **_kwargs
):
392 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
394 def DrawLine(self
, *_args
, **_kwargs
):
395 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
397 def DrawLines(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
400 def DrawPolygon(self
, *_args
, **_kwargs
):
401 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
403 def DrawPoint(self
, *_args
, **_kwargs
):
404 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
406 def DrawRectangle(self
, *_args
, **_kwargs
):
407 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
409 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
410 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
412 def DrawSpline(self
, *_args
, **_kwargs
):
413 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
415 def DrawText(self
, *_args
, **_kwargs
):
416 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
418 def EndDoc(self
, *_args
, **_kwargs
):
419 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
421 def EndDrawing(self
, *_args
, **_kwargs
):
422 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
424 def EndPage(self
, *_args
, **_kwargs
):
425 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
427 def FloodFill(self
, *_args
, **_kwargs
):
428 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
430 def GetBackground(self
, *_args
, **_kwargs
):
431 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
432 if val
: val
= wxBrushPtr(val
)
434 def GetBrush(self
, *_args
, **_kwargs
):
435 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
436 if val
: val
= wxBrushPtr(val
)
438 def GetCharHeight(self
, *_args
, **_kwargs
):
439 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
441 def GetCharWidth(self
, *_args
, **_kwargs
):
442 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
444 def GetClippingBox(self
, *_args
, **_kwargs
):
445 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
447 def GetFont(self
, *_args
, **_kwargs
):
448 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
449 if val
: val
= wxFontPtr(val
)
451 def GetLogicalFunction(self
, *_args
, **_kwargs
):
452 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
454 def GetMapMode(self
, *_args
, **_kwargs
):
455 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
457 def GetOptimization(self
, *_args
, **_kwargs
):
458 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
460 def GetPen(self
, *_args
, **_kwargs
):
461 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
462 if val
: val
= wxPenPtr(val
)
464 def GetPixel(self
, *_args
, **_kwargs
):
465 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
466 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
468 def GetSizeTuple(self
, *_args
, **_kwargs
):
469 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
471 def GetSize(self
, *_args
, **_kwargs
):
472 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
473 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
475 def GetTextBackground(self
, *_args
, **_kwargs
):
476 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
477 if val
: val
= wxColourPtr(val
)
479 def GetTextExtent(self
, *_args
, **_kwargs
):
480 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
482 def GetFullTextExtent(self
, *_args
, **_kwargs
):
483 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
485 def GetTextForeground(self
, *_args
, **_kwargs
):
486 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
487 if val
: val
= wxColourPtr(val
)
489 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
490 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
492 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
493 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
495 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
496 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
498 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
499 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
501 def MaxX(self
, *_args
, **_kwargs
):
502 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
504 def MaxY(self
, *_args
, **_kwargs
):
505 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
507 def MinX(self
, *_args
, **_kwargs
):
508 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
510 def MinY(self
, *_args
, **_kwargs
):
511 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
513 def Ok(self
, *_args
, **_kwargs
):
514 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
516 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
517 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
519 def SetBackground(self
, *_args
, **_kwargs
):
520 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
522 def SetBackgroundMode(self
, *_args
, **_kwargs
):
523 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
525 def SetClippingRegion(self
, *_args
, **_kwargs
):
526 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
528 def SetPalette(self
, *_args
, **_kwargs
):
529 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
531 def SetBrush(self
, *_args
, **_kwargs
):
532 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
534 def SetFont(self
, *_args
, **_kwargs
):
535 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
537 def SetLogicalFunction(self
, *_args
, **_kwargs
):
538 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
540 def SetMapMode(self
, *_args
, **_kwargs
):
541 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
543 def SetOptimization(self
, *_args
, **_kwargs
):
544 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
546 def SetPen(self
, *_args
, **_kwargs
):
547 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
549 def SetTextBackground(self
, *_args
, **_kwargs
):
550 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
552 def SetTextForeground(self
, *_args
, **_kwargs
):
553 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
555 def SetUserScale(self
, *_args
, **_kwargs
):
556 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
558 def StartDoc(self
, *_args
, **_kwargs
):
559 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
561 def StartPage(self
, *_args
, **_kwargs
):
562 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
564 def DrawBitmap(self
, *_args
, **_kwargs
):
565 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
568 return "<C wxDC instance at %s>" % (self
.this
,)
570 def __init__(self
,this
):
576 class wxMemoryDCPtr(wxDCPtr
):
577 def __init__(self
,this
):
580 def SelectObject(self
, *_args
, **_kwargs
):
581 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
584 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
585 class wxMemoryDC(wxMemoryDCPtr
):
586 def __init__(self
,*_args
,**_kwargs
):
587 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
593 class wxScreenDCPtr(wxDCPtr
):
594 def __init__(self
,this
):
597 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
598 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
600 def StartDrawingOnTopRect(self
, *_args
, **_kwargs
):
601 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopRect
,(self
,) + _args
, _kwargs
)
603 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
604 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
607 return "<C wxScreenDC instance at %s>" % (self
.this
,)
608 class wxScreenDC(wxScreenDCPtr
):
609 def __init__(self
,*_args
,**_kwargs
):
610 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
616 class wxClientDCPtr(wxDCPtr
):
617 def __init__(self
,this
):
621 return "<C wxClientDC instance at %s>" % (self
.this
,)
622 class wxClientDC(wxClientDCPtr
):
623 def __init__(self
,*_args
,**_kwargs
):
624 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
630 class wxPaintDCPtr(wxDCPtr
):
631 def __init__(self
,this
):
635 return "<C wxPaintDC instance at %s>" % (self
.this
,)
636 class wxPaintDC(wxPaintDCPtr
):
637 def __init__(self
,*_args
,**_kwargs
):
638 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
644 class wxWindowDCPtr(wxDCPtr
):
645 def __init__(self
,this
):
649 return "<C wxWindowDC instance at %s>" % (self
.this
,)
650 class wxWindowDC(wxWindowDCPtr
):
651 def __init__(self
,*_args
,**_kwargs
):
652 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
658 class wxPrinterDCPtr(wxDCPtr
):
659 def __init__(self
,this
):
663 return "<C wxPrinterDC instance at %s>" % (self
.this
,)
664 class wxPrinterDC(wxPrinterDCPtr
):
665 def __init__(self
,*_args
,**_kwargs
):
666 self
.this
= apply(gdic
.new_wxPrinterDC
,_args
,_kwargs
)
672 class wxMetaFileDCPtr(wxDCPtr
):
673 def __init__(self
,this
):
676 def Close(self
, *_args
, **_kwargs
):
677 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
680 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
681 class wxMetaFileDC(wxMetaFileDCPtr
):
682 def __init__(self
,*_args
,**_kwargs
):
683 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
690 def __init__(self
,this
):
693 def __del__(self
,gdic
=gdic
):
694 if self
.thisown
== 1 :
695 gdic
.delete_wxPalette(self
)
696 def GetPixel(self
, *_args
, **_kwargs
):
697 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
699 def GetRGB(self
, *_args
, **_kwargs
):
700 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
702 def Ok(self
, *_args
, **_kwargs
):
703 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
706 return "<C wxPalette instance at %s>" % (self
.this
,)
707 class wxPalette(wxPalettePtr
):
708 def __init__(self
,*_args
,**_kwargs
):
709 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
715 class wxImageListPtr
:
716 def __init__(self
,this
):
719 def __del__(self
,gdic
=gdic
):
720 if self
.thisown
== 1 :
721 gdic
.delete_wxImageList(self
)
722 def Add(self
, *_args
, **_kwargs
):
723 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
725 def AddWithColourMask(self
, *_args
, **_kwargs
):
726 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
728 def AddIcon(self
, *_args
, **_kwargs
):
729 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
731 def Replace(self
, *_args
, **_kwargs
):
732 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
734 def ReplaceIcon(self
, *_args
, **_kwargs
):
735 val
= apply(gdic
.wxImageList_ReplaceIcon
,(self
,) + _args
, _kwargs
)
737 def Draw(self
, *_args
, **_kwargs
):
738 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
740 def GetImageCount(self
, *_args
, **_kwargs
):
741 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
743 def Remove(self
, *_args
, **_kwargs
):
744 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
746 def RemoveAll(self
, *_args
, **_kwargs
):
747 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
750 return "<C wxImageList instance at %s>" % (self
.this
,)
751 class wxImageList(wxImageListPtr
):
752 def __init__(self
,*_args
,**_kwargs
):
753 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
761 #-------------- FUNCTION WRAPPERS ------------------
763 def wxEmptyBitmap(*_args
, **_kwargs
):
764 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
765 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
768 def wxNoRefBitmap(*_args
, **_kwargs
):
769 val
= apply(gdic
.wxNoRefBitmap
,_args
,_kwargs
)
770 if val
: val
= wxBitmapPtr(val
)
773 def wxBitmapFromData(*_args
, **_kwargs
):
774 val
= apply(gdic
.wxBitmapFromData
,_args
,_kwargs
)
775 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
778 def wxMaskColour(*_args
, **_kwargs
):
779 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
780 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
783 def wxStockCursor(*_args
, **_kwargs
):
784 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
785 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
788 wxFont_GetDefaultEncoding
= gdic
.wxFont_GetDefaultEncoding
790 wxFont_SetDefaultEncoding
= gdic
.wxFont_SetDefaultEncoding
792 def wxNamedColour(*_args
, **_kwargs
):
793 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
794 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
797 def wxMemoryDCFromDC(*_args
, **_kwargs
):
798 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
799 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
804 #-------------- VARIABLE WRAPPERS ------------------
806 wxFONTENCODING_SYSTEM
= gdic
.wxFONTENCODING_SYSTEM
807 wxFONTENCODING_DEFAULT
= gdic
.wxFONTENCODING_DEFAULT
808 wxFONTENCODING_ISO8859_1
= gdic
.wxFONTENCODING_ISO8859_1
809 wxFONTENCODING_ISO8859_2
= gdic
.wxFONTENCODING_ISO8859_2
810 wxFONTENCODING_ISO8859_3
= gdic
.wxFONTENCODING_ISO8859_3
811 wxFONTENCODING_ISO8859_4
= gdic
.wxFONTENCODING_ISO8859_4
812 wxFONTENCODING_ISO8859_5
= gdic
.wxFONTENCODING_ISO8859_5
813 wxFONTENCODING_ISO8859_6
= gdic
.wxFONTENCODING_ISO8859_6
814 wxFONTENCODING_ISO8859_7
= gdic
.wxFONTENCODING_ISO8859_7
815 wxFONTENCODING_ISO8859_8
= gdic
.wxFONTENCODING_ISO8859_8
816 wxFONTENCODING_ISO8859_9
= gdic
.wxFONTENCODING_ISO8859_9
817 wxFONTENCODING_ISO8859_10
= gdic
.wxFONTENCODING_ISO8859_10
818 wxFONTENCODING_ISO8859_11
= gdic
.wxFONTENCODING_ISO8859_11
819 wxFONTENCODING_ISO8859_12
= gdic
.wxFONTENCODING_ISO8859_12
820 wxFONTENCODING_ISO8859_13
= gdic
.wxFONTENCODING_ISO8859_13
821 wxFONTENCODING_ISO8859_14
= gdic
.wxFONTENCODING_ISO8859_14
822 wxFONTENCODING_ISO8859_15
= gdic
.wxFONTENCODING_ISO8859_15
823 wxFONTENCODING_KOI8
= gdic
.wxFONTENCODING_KOI8
824 wxFONTENCODING_ALTERNATIVE
= gdic
.wxFONTENCODING_ALTERNATIVE
825 wxFONTENCODING_BULGARIAN
= gdic
.wxFONTENCODING_BULGARIAN
826 wxFONTENCODING_CP437
= gdic
.wxFONTENCODING_CP437
827 wxFONTENCODING_CP850
= gdic
.wxFONTENCODING_CP850
828 wxFONTENCODING_CP852
= gdic
.wxFONTENCODING_CP852
829 wxFONTENCODING_CP855
= gdic
.wxFONTENCODING_CP855
830 wxFONTENCODING_CP866
= gdic
.wxFONTENCODING_CP866
831 wxFONTENCODING_CP1250
= gdic
.wxFONTENCODING_CP1250
832 wxFONTENCODING_CP1251
= gdic
.wxFONTENCODING_CP1251
833 wxFONTENCODING_CP1252
= gdic
.wxFONTENCODING_CP1252
834 wxFONTENCODING_MAX
= gdic
.wxFONTENCODING_MAX
836 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
837 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
838 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
839 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
840 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
841 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
842 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
843 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
844 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
845 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
846 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
847 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
848 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
849 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
850 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
851 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
852 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
853 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
854 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
855 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
856 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
857 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
858 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
859 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
860 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
861 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
862 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
863 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
864 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
865 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
866 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
867 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
868 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
869 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
870 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
871 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
872 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
873 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
874 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
875 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
876 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
877 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
878 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
879 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
880 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
881 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
882 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
883 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
884 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE