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
):
70 def __del__(self
,gdic
=gdic
):
71 if self
.thisown
== 1 :
72 gdic
.delete_wxMask(self
)
74 return "<C wxMask instance at %s>" % (self
.this
,)
75 class wxMask(wxMaskPtr
):
76 def __init__(self
,*_args
,**_kwargs
):
77 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
83 class wxIconPtr(wxBitmapPtr
):
84 def __init__(self
,this
):
87 def __del__(self
,gdic
=gdic
):
88 if self
.thisown
== 1 :
89 gdic
.delete_wxIcon(self
)
90 def GetDepth(self
, *_args
, **_kwargs
):
91 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
93 def GetHeight(self
, *_args
, **_kwargs
):
94 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
96 def GetWidth(self
, *_args
, **_kwargs
):
97 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
99 def LoadFile(self
, *_args
, **_kwargs
):
100 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
102 def Ok(self
, *_args
, **_kwargs
):
103 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
105 def SetDepth(self
, *_args
, **_kwargs
):
106 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
108 def SetHeight(self
, *_args
, **_kwargs
):
109 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
111 def SetWidth(self
, *_args
, **_kwargs
):
112 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
115 return "<C wxIcon instance at %s>" % (self
.this
,)
116 class wxIcon(wxIconPtr
):
117 def __init__(self
,*_args
,**_kwargs
):
118 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
124 class wxCursorPtr(wxBitmapPtr
):
125 def __init__(self
,this
):
128 def __del__(self
,gdic
=gdic
):
129 if self
.thisown
== 1 :
130 gdic
.delete_wxCursor(self
)
131 def Ok(self
, *_args
, **_kwargs
):
132 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
135 return "<C wxCursor instance at %s>" % (self
.this
,)
136 class wxCursor(wxCursorPtr
):
137 def __init__(self
,*_args
,**_kwargs
):
138 self
.this
= apply(gdic
.new_wxCursor
,_args
,_kwargs
)
145 def __init__(self
,this
):
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 SetFaceName(self
, *_args
, **_kwargs
):
170 val
= apply(gdic
.wxFont_SetFaceName
,(self
,) + _args
, _kwargs
)
172 def SetFamily(self
, *_args
, **_kwargs
):
173 val
= apply(gdic
.wxFont_SetFamily
,(self
,) + _args
, _kwargs
)
175 def SetPointSize(self
, *_args
, **_kwargs
):
176 val
= apply(gdic
.wxFont_SetPointSize
,(self
,) + _args
, _kwargs
)
178 def SetStyle(self
, *_args
, **_kwargs
):
179 val
= apply(gdic
.wxFont_SetStyle
,(self
,) + _args
, _kwargs
)
181 def SetUnderlined(self
, *_args
, **_kwargs
):
182 val
= apply(gdic
.wxFont_SetUnderlined
,(self
,) + _args
, _kwargs
)
184 def SetWeight(self
, *_args
, **_kwargs
):
185 val
= apply(gdic
.wxFont_SetWeight
,(self
,) + _args
, _kwargs
)
188 return "<C wxFont instance at %s>" % (self
.this
,)
189 class wxFont(wxFontPtr
):
190 def __init__(self
,*_args
,**_kwargs
):
191 self
.this
= apply(gdic
.new_wxFont
,_args
,_kwargs
)
198 def __init__(self
,this
):
201 def __del__(self
,gdic
=gdic
):
202 if self
.thisown
== 1 :
203 gdic
.delete_wxColour(self
)
204 def Red(self
, *_args
, **_kwargs
):
205 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
207 def Green(self
, *_args
, **_kwargs
):
208 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
210 def Blue(self
, *_args
, **_kwargs
):
211 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
213 def Ok(self
, *_args
, **_kwargs
):
214 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
216 def Set(self
, *_args
, **_kwargs
):
217 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
219 def Get(self
, *_args
, **_kwargs
):
220 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
223 return "<C wxColour instance at %s>" % (self
.this
,)
224 class wxColour(wxColourPtr
):
225 def __init__(self
,*_args
,**_kwargs
):
226 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
233 def __init__(self
,this
):
236 def GetCap(self
, *_args
, **_kwargs
):
237 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
239 def GetColour(self
, *_args
, **_kwargs
):
240 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
241 if val
: val
= wxColourPtr(val
)
243 def GetJoin(self
, *_args
, **_kwargs
):
244 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
246 def GetStyle(self
, *_args
, **_kwargs
):
247 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
249 def GetWidth(self
, *_args
, **_kwargs
):
250 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
252 def Ok(self
, *_args
, **_kwargs
):
253 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
255 def SetCap(self
, *_args
, **_kwargs
):
256 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
258 def SetColour(self
, *_args
, **_kwargs
):
259 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
261 def SetJoin(self
, *_args
, **_kwargs
):
262 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
264 def SetStyle(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
267 def SetWidth(self
, *_args
, **_kwargs
):
268 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
270 def GetDashes(self
, *_args
, **_kwargs
):
271 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
273 def GetStipple(self
, *_args
, **_kwargs
):
274 val
= apply(gdic
.wxPen_GetStipple
,(self
,) + _args
, _kwargs
)
275 if val
: val
= wxBitmapPtr(val
)
277 def SetDashes(self
, *_args
, **_kwargs
):
278 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
280 def SetStipple(self
, *_args
, **_kwargs
):
281 val
= apply(gdic
.wxPen_SetStipple
,(self
,) + _args
, _kwargs
)
284 return "<C wxPen instance at %s>" % (self
.this
,)
285 class wxPen(wxPenPtr
):
286 def __init__(self
,*_args
,**_kwargs
):
287 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
294 def __init__(self
,this
):
297 def GetColour(self
, *_args
, **_kwargs
):
298 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
299 if val
: val
= wxColourPtr(val
)
301 def GetStipple(self
, *_args
, **_kwargs
):
302 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
303 if val
: val
= wxBitmapPtr(val
)
305 def GetStyle(self
, *_args
, **_kwargs
):
306 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
308 def Ok(self
, *_args
, **_kwargs
):
309 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
311 def SetColour(self
, *_args
, **_kwargs
):
312 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
314 def SetStipple(self
, *_args
, **_kwargs
):
315 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
317 def SetStyle(self
, *_args
, **_kwargs
):
318 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
321 return "<C wxBrush instance at %s>" % (self
.this
,)
322 class wxBrush(wxBrushPtr
):
323 def __init__(self
,*_args
,**_kwargs
):
324 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
331 def __init__(self
,this
):
334 def __del__(self
,gdic
=gdic
):
335 if self
.thisown
== 1 :
336 gdic
.delete_wxDC(self
)
337 def BeginDrawing(self
, *_args
, **_kwargs
):
338 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
340 def Blit(self
, *_args
, **_kwargs
):
341 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
343 def Clear(self
, *_args
, **_kwargs
):
344 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
346 def CrossHair(self
, *_args
, **_kwargs
):
347 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
349 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
350 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
352 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
353 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
355 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
356 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
358 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
359 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
361 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
362 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
364 def DrawArc(self
, *_args
, **_kwargs
):
365 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
367 def DrawCircle(self
, *_args
, **_kwargs
):
368 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
370 def DrawEllipse(self
, *_args
, **_kwargs
):
371 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
373 def DrawEllipticArc(self
, *_args
, **_kwargs
):
374 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
376 def DrawIcon(self
, *_args
, **_kwargs
):
377 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
379 def DrawLine(self
, *_args
, **_kwargs
):
380 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
382 def DrawLines(self
, *_args
, **_kwargs
):
383 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
385 def DrawPolygon(self
, *_args
, **_kwargs
):
386 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
388 def DrawPoint(self
, *_args
, **_kwargs
):
389 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
391 def DrawRectangle(self
, *_args
, **_kwargs
):
392 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
394 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
395 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
397 def DrawSpline(self
, *_args
, **_kwargs
):
398 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
400 def DrawText(self
, *_args
, **_kwargs
):
401 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
403 def EndDoc(self
, *_args
, **_kwargs
):
404 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
406 def EndDrawing(self
, *_args
, **_kwargs
):
407 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
409 def EndPage(self
, *_args
, **_kwargs
):
410 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
412 def FloodFill(self
, *_args
, **_kwargs
):
413 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
415 def GetBackground(self
, *_args
, **_kwargs
):
416 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
417 if val
: val
= wxBrushPtr(val
)
419 def GetBrush(self
, *_args
, **_kwargs
):
420 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
421 if val
: val
= wxBrushPtr(val
)
423 def GetCharHeight(self
, *_args
, **_kwargs
):
424 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
426 def GetCharWidth(self
, *_args
, **_kwargs
):
427 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
429 def GetClippingBox(self
, *_args
, **_kwargs
):
430 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
432 def GetFont(self
, *_args
, **_kwargs
):
433 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
434 if val
: val
= wxFontPtr(val
)
436 def GetLogicalFunction(self
, *_args
, **_kwargs
):
437 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
439 def GetMapMode(self
, *_args
, **_kwargs
):
440 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
442 def GetOptimization(self
, *_args
, **_kwargs
):
443 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
445 def GetPen(self
, *_args
, **_kwargs
):
446 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
447 if val
: val
= wxPenPtr(val
)
449 def GetPixel(self
, *_args
, **_kwargs
):
450 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
451 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
453 def GetSizeTuple(self
, *_args
, **_kwargs
):
454 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
456 def GetSize(self
, *_args
, **_kwargs
):
457 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
458 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
460 def GetTextBackground(self
, *_args
, **_kwargs
):
461 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
462 if val
: val
= wxColourPtr(val
)
464 def GetTextExtent(self
, *_args
, **_kwargs
):
465 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
467 def GetFullTextExtent(self
, *_args
, **_kwargs
):
468 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
470 def GetTextForeground(self
, *_args
, **_kwargs
):
471 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
472 if val
: val
= wxColourPtr(val
)
474 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
475 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
477 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
478 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
480 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
481 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
483 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
484 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
486 def MaxX(self
, *_args
, **_kwargs
):
487 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
489 def MaxY(self
, *_args
, **_kwargs
):
490 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
492 def MinX(self
, *_args
, **_kwargs
):
493 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
495 def MinY(self
, *_args
, **_kwargs
):
496 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
498 def Ok(self
, *_args
, **_kwargs
):
499 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
501 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
502 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
504 def SetBackground(self
, *_args
, **_kwargs
):
505 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
507 def SetBackgroundMode(self
, *_args
, **_kwargs
):
508 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
510 def SetClippingRegion(self
, *_args
, **_kwargs
):
511 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
513 def SetPalette(self
, *_args
, **_kwargs
):
514 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
516 def SetBrush(self
, *_args
, **_kwargs
):
517 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
519 def SetFont(self
, *_args
, **_kwargs
):
520 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
522 def SetLogicalFunction(self
, *_args
, **_kwargs
):
523 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
525 def SetMapMode(self
, *_args
, **_kwargs
):
526 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
528 def SetOptimization(self
, *_args
, **_kwargs
):
529 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
531 def SetPen(self
, *_args
, **_kwargs
):
532 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
534 def SetTextBackground(self
, *_args
, **_kwargs
):
535 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
537 def SetTextForeground(self
, *_args
, **_kwargs
):
538 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
540 def SetUserScale(self
, *_args
, **_kwargs
):
541 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
543 def StartDoc(self
, *_args
, **_kwargs
):
544 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
546 def StartPage(self
, *_args
, **_kwargs
):
547 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
549 def DrawBitmap(self
, *_args
, **_kwargs
):
550 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
553 return "<C wxDC instance at %s>" % (self
.this
,)
555 def __init__(self
,this
):
561 class wxMemoryDCPtr(wxDCPtr
):
562 def __init__(self
,this
):
565 def SelectObject(self
, *_args
, **_kwargs
):
566 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
569 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
570 class wxMemoryDC(wxMemoryDCPtr
):
571 def __init__(self
,*_args
,**_kwargs
):
572 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
578 class wxScreenDCPtr(wxDCPtr
):
579 def __init__(self
,this
):
582 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
583 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
585 def StartDrawingOnTopRect(self
, *_args
, **_kwargs
):
586 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopRect
,(self
,) + _args
, _kwargs
)
588 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
589 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
592 return "<C wxScreenDC instance at %s>" % (self
.this
,)
593 class wxScreenDC(wxScreenDCPtr
):
594 def __init__(self
,*_args
,**_kwargs
):
595 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
601 class wxClientDCPtr(wxDCPtr
):
602 def __init__(self
,this
):
606 return "<C wxClientDC instance at %s>" % (self
.this
,)
607 class wxClientDC(wxClientDCPtr
):
608 def __init__(self
,*_args
,**_kwargs
):
609 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
615 class wxPaintDCPtr(wxDCPtr
):
616 def __init__(self
,this
):
620 return "<C wxPaintDC instance at %s>" % (self
.this
,)
621 class wxPaintDC(wxPaintDCPtr
):
622 def __init__(self
,*_args
,**_kwargs
):
623 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
629 class wxWindowDCPtr(wxDCPtr
):
630 def __init__(self
,this
):
634 return "<C wxWindowDC instance at %s>" % (self
.this
,)
635 class wxWindowDC(wxWindowDCPtr
):
636 def __init__(self
,*_args
,**_kwargs
):
637 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
643 class wxPrinterDCPtr(wxDCPtr
):
644 def __init__(self
,this
):
648 return "<C wxPrinterDC instance at %s>" % (self
.this
,)
649 class wxPrinterDC(wxPrinterDCPtr
):
650 def __init__(self
,*_args
,**_kwargs
):
651 self
.this
= apply(gdic
.new_wxPrinterDC
,_args
,_kwargs
)
657 class wxMetaFileDCPtr(wxDCPtr
):
658 def __init__(self
,this
):
661 def Close(self
, *_args
, **_kwargs
):
662 val
= apply(gdic
.wxMetaFileDC_Close
,(self
,) + _args
, _kwargs
)
665 return "<C wxMetaFileDC instance at %s>" % (self
.this
,)
666 class wxMetaFileDC(wxMetaFileDCPtr
):
667 def __init__(self
,*_args
,**_kwargs
):
668 self
.this
= apply(gdic
.new_wxMetaFileDC
,_args
,_kwargs
)
675 def __init__(self
,this
):
678 def __del__(self
,gdic
=gdic
):
679 if self
.thisown
== 1 :
680 gdic
.delete_wxPalette(self
)
681 def GetPixel(self
, *_args
, **_kwargs
):
682 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
684 def GetRGB(self
, *_args
, **_kwargs
):
685 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
687 def Ok(self
, *_args
, **_kwargs
):
688 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
691 return "<C wxPalette instance at %s>" % (self
.this
,)
692 class wxPalette(wxPalettePtr
):
693 def __init__(self
,*_args
,**_kwargs
):
694 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
700 class wxImageListPtr
:
701 def __init__(self
,this
):
704 def __del__(self
,gdic
=gdic
):
705 if self
.thisown
== 1 :
706 gdic
.delete_wxImageList(self
)
707 def Add(self
, *_args
, **_kwargs
):
708 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
710 def AddWithColourMask(self
, *_args
, **_kwargs
):
711 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
713 def AddIcon(self
, *_args
, **_kwargs
):
714 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
716 def Replace(self
, *_args
, **_kwargs
):
717 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
719 def ReplaceIcon(self
, *_args
, **_kwargs
):
720 val
= apply(gdic
.wxImageList_ReplaceIcon
,(self
,) + _args
, _kwargs
)
722 def Draw(self
, *_args
, **_kwargs
):
723 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
725 def GetImageCount(self
, *_args
, **_kwargs
):
726 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
728 def Remove(self
, *_args
, **_kwargs
):
729 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
731 def RemoveAll(self
, *_args
, **_kwargs
):
732 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
735 return "<C wxImageList instance at %s>" % (self
.this
,)
736 class wxImageList(wxImageListPtr
):
737 def __init__(self
,*_args
,**_kwargs
):
738 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
746 #-------------- FUNCTION WRAPPERS ------------------
748 def wxEmptyBitmap(*_args
, **_kwargs
):
749 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
750 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
753 def wxNoRefBitmap(*_args
, **_kwargs
):
754 val
= apply(gdic
.wxNoRefBitmap
,_args
,_kwargs
)
755 if val
: val
= wxBitmapPtr(val
)
758 def wxBitmapFromData(*_args
, **_kwargs
):
759 val
= apply(gdic
.wxBitmapFromData
,_args
,_kwargs
)
760 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
763 def wxMaskColour(*_args
, **_kwargs
):
764 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
765 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
768 def wxStockCursor(*_args
, **_kwargs
):
769 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
770 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
773 def wxNamedColour(*_args
, **_kwargs
):
774 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
775 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
778 def wxMemoryDCFromDC(*_args
, **_kwargs
):
779 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
780 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
785 #-------------- VARIABLE WRAPPERS ------------------
788 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
789 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
790 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
791 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
792 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
793 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
794 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
795 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
796 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
797 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
798 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
799 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
800 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
801 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
802 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
803 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
804 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
805 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
806 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
807 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
808 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
809 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
810 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
811 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
812 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
813 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
814 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
815 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
816 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
817 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
818 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
819 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
820 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
821 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
822 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
823 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
824 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
825 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
826 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
827 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
828 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
829 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
830 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
831 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
832 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
833 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
834 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
835 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
836 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE