1 # This file was created automatically by SWIG.
6 def __init__(self
,this
):
10 if self
.thisown
== 1 :
11 gdic
.delete_wxBitmap(self
.this
)
13 val
= gdic
.wxBitmap_GetDepth(self
.this
)
16 val
= gdic
.wxBitmap_GetHeight(self
.this
)
19 val
= gdic
.wxBitmap_GetPalette(self
.this
)
22 val
= gdic
.wxBitmap_GetMask(self
.this
)
26 val
= gdic
.wxBitmap_GetWidth(self
.this
)
28 def LoadFile(self
,arg0
,arg1
):
29 val
= gdic
.wxBitmap_LoadFile(self
.this
,arg0
,arg1
)
32 val
= gdic
.wxBitmap_Ok(self
.this
)
34 def SaveFile(self
,arg0
,arg1
,*args
):
35 val
= apply(gdic
.wxBitmap_SaveFile
,(self
.this
,arg0
,arg1
,)+args
)
37 def SetDepth(self
,arg0
):
38 val
= gdic
.wxBitmap_SetDepth(self
.this
,arg0
)
40 def SetHeight(self
,arg0
):
41 val
= gdic
.wxBitmap_SetHeight(self
.this
,arg0
)
43 def SetMask(self
,arg0
):
44 val
= gdic
.wxBitmap_SetMask(self
.this
,arg0
.this
)
46 def SetWidth(self
,arg0
):
47 val
= gdic
.wxBitmap_SetWidth(self
.this
,arg0
)
50 return "<C wxBitmap instance>"
51 class wxBitmap(wxBitmapPtr
):
52 def __init__(self
,arg0
,arg1
) :
53 self
.this
= gdic
.new_wxBitmap(arg0
,arg1
)
60 def __init__(self
,this
):
64 if self
.thisown
== 1 :
65 gdic
.delete_wxMask(self
.this
)
67 return "<C wxMask instance>"
68 class wxMask(wxMaskPtr
):
69 def __init__(self
,arg0
) :
70 self
.this
= gdic
.new_wxMask(arg0
.this
)
76 class wxIconPtr(wxBitmapPtr
):
77 def __init__(self
,this
):
81 if self
.thisown
== 1 :
82 gdic
.delete_wxIcon(self
.this
)
84 val
= gdic
.wxIcon_GetDepth(self
.this
)
87 val
= gdic
.wxIcon_GetHeight(self
.this
)
90 val
= gdic
.wxIcon_GetWidth(self
.this
)
92 def LoadFile(self
,arg0
,arg1
):
93 val
= gdic
.wxIcon_LoadFile(self
.this
,arg0
,arg1
)
96 val
= gdic
.wxIcon_Ok(self
.this
)
98 def SetDepth(self
,arg0
):
99 val
= gdic
.wxIcon_SetDepth(self
.this
,arg0
)
101 def SetHeight(self
,arg0
):
102 val
= gdic
.wxIcon_SetHeight(self
.this
,arg0
)
104 def SetWidth(self
,arg0
):
105 val
= gdic
.wxIcon_SetWidth(self
.this
,arg0
)
108 return "<C wxIcon instance>"
109 class wxIcon(wxIconPtr
):
110 def __init__(self
,this
):
116 class wxCursorPtr(wxBitmapPtr
):
117 def __init__(self
,this
):
121 if self
.thisown
== 1 :
122 gdic
.delete_wxCursor(self
.this
)
124 val
= gdic
.wxCursor_Ok(self
.this
)
127 return "<C wxCursor instance>"
128 class wxCursor(wxCursorPtr
):
129 def __init__(self
,this
):
136 def __init__(self
,this
):
139 def GetFaceName(self
):
140 val
= gdic
.wxFont_GetFaceName(self
.this
)
143 val
= gdic
.wxFont_GetFamily(self
.this
)
146 val
= gdic
.wxFont_GetFontId(self
.this
)
148 def GetPointSize(self
):
149 val
= gdic
.wxFont_GetPointSize(self
.this
)
152 val
= gdic
.wxFont_GetStyle(self
.this
)
154 def GetUnderlined(self
):
155 val
= gdic
.wxFont_GetUnderlined(self
.this
)
158 val
= gdic
.wxFont_GetWeight(self
.this
)
161 return "<C wxFont instance>"
162 class wxFont(wxFontPtr
):
163 def __init__(self
,arg0
,arg1
,arg2
,arg3
,*args
) :
164 self
.this
= apply(gdic
.new_wxFont
,(arg0
,arg1
,arg2
,arg3
,)+args
)
171 def __init__(self
,this
):
175 if self
.thisown
== 1 :
176 gdic
.delete_wxColour(self
.this
)
178 val
= gdic
.wxColour_Red(self
.this
)
181 val
= gdic
.wxColour_Green(self
.this
)
184 val
= gdic
.wxColour_Blue(self
.this
)
187 val
= gdic
.wxColour_Ok(self
.this
)
189 def Set(self
,arg0
,arg1
,arg2
):
190 val
= gdic
.wxColour_Set(self
.this
,arg0
,arg1
,arg2
)
193 val
= gdic
.wxColour_Get(self
.this
)
196 return "<C wxColour instance>"
197 class wxColour(wxColourPtr
):
198 def __init__(self
,*args
) :
199 self
.this
= apply(gdic
.new_wxColour
,()+args
)
206 def __init__(self
,this
):
210 val
= gdic
.wxPen_GetCap(self
.this
)
213 val
= gdic
.wxPen_GetColour(self
.this
)
214 val
= wxColourPtr(val
)
217 val
= gdic
.wxPen_GetJoin(self
.this
)
220 val
= gdic
.wxPen_GetStyle(self
.this
)
223 val
= gdic
.wxPen_GetWidth(self
.this
)
226 val
= gdic
.wxPen_Ok(self
.this
)
228 def SetCap(self
,arg0
):
229 val
= gdic
.wxPen_SetCap(self
.this
,arg0
)
231 def SetColour(self
,arg0
):
232 val
= gdic
.wxPen_SetColour(self
.this
,arg0
.this
)
234 def SetJoin(self
,arg0
):
235 val
= gdic
.wxPen_SetJoin(self
.this
,arg0
)
237 def SetStyle(self
,arg0
):
238 val
= gdic
.wxPen_SetStyle(self
.this
,arg0
)
240 def SetWidth(self
,arg0
):
241 val
= gdic
.wxPen_SetWidth(self
.this
,arg0
)
244 return "<C wxPen instance>"
245 class wxPen(wxPenPtr
):
246 def __init__(self
,arg0
,*args
) :
247 self
.this
= apply(gdic
.new_wxPen
,(arg0
.this
,)+args
)
254 def __init__(self
,this
):
258 val
= gdic
.wxBrush_GetColour(self
.this
)
259 val
= wxColourPtr(val
)
261 def GetStipple(self
):
262 val
= gdic
.wxBrush_GetStipple(self
.this
)
263 val
= wxBitmapPtr(val
)
266 val
= gdic
.wxBrush_GetStyle(self
.this
)
269 val
= gdic
.wxBrush_Ok(self
.this
)
272 return "<C wxBrush instance>"
273 class wxBrush(wxBrushPtr
):
274 def __init__(self
,arg0
,*args
) :
275 self
.this
= apply(gdic
.new_wxBrush
,(arg0
.this
,)+args
)
282 def __init__(self
,this
):
286 if self
.thisown
== 1 :
287 gdic
.delete_wxDC(self
.this
)
288 def BeginDrawing(self
):
289 val
= gdic
.wxDC_BeginDrawing(self
.this
)
291 def Blit(self
,arg0
,arg1
,arg2
,arg3
,arg4
,arg5
,arg6
,arg7
):
292 val
= gdic
.wxDC_Blit(self
.this
,arg0
,arg1
,arg2
,arg3
,arg4
.this
,arg5
,arg6
,arg7
)
295 val
= gdic
.wxDC_Clear(self
.this
)
297 def CrossHair(self
,arg0
,arg1
):
298 val
= gdic
.wxDC_CrossHair(self
.this
,arg0
,arg1
)
300 def DestroyClippingRegion(self
):
301 val
= gdic
.wxDC_DestroyClippingRegion(self
.this
)
303 def DeviceToLogicalX(self
,arg0
):
304 val
= gdic
.wxDC_DeviceToLogicalX(self
.this
,arg0
)
306 def DeviceToLogicalXRel(self
,arg0
):
307 val
= gdic
.wxDC_DeviceToLogicalXRel(self
.this
,arg0
)
309 def DeviceToLogicalY(self
,arg0
):
310 val
= gdic
.wxDC_DeviceToLogicalY(self
.this
,arg0
)
312 def DeviceToLogicalYRel(self
,arg0
):
313 val
= gdic
.wxDC_DeviceToLogicalYRel(self
.this
,arg0
)
315 def DrawArc(self
,arg0
,arg1
,arg2
,arg3
,arg4
,arg5
):
316 val
= gdic
.wxDC_DrawArc(self
.this
,arg0
,arg1
,arg2
,arg3
,arg4
,arg5
)
318 def DrawEllipse(self
,arg0
,arg1
,arg2
,arg3
):
319 val
= gdic
.wxDC_DrawEllipse(self
.this
,arg0
,arg1
,arg2
,arg3
)
321 def DrawEllipticArc(self
,arg0
,arg1
,arg2
,arg3
,arg4
,arg5
):
322 val
= gdic
.wxDC_DrawEllipticArc(self
.this
,arg0
,arg1
,arg2
,arg3
,arg4
,arg5
)
324 def DrawIcon(self
,arg0
,arg1
,arg2
):
325 val
= gdic
.wxDC_DrawIcon(self
.this
,arg0
.this
,arg1
,arg2
)
327 def DrawLine(self
,arg0
,arg1
,arg2
,arg3
):
328 val
= gdic
.wxDC_DrawLine(self
.this
,arg0
,arg1
,arg2
,arg3
)
330 def DrawLines(self
,arg0
,*args
):
331 argl
= map(None,args
)
332 try: argl
[0] = argl
[0].this
335 val
= apply(gdic
.wxDC_DrawLines
,(self
.this
,arg0
,)+args
)
337 def DrawPolygon(self
,arg0
,*args
):
338 argl
= map(None,args
)
339 try: argl
[0] = argl
[0].this
342 val
= apply(gdic
.wxDC_DrawPolygon
,(self
.this
,arg0
,)+args
)
344 def DrawPoint(self
,arg0
,arg1
):
345 val
= gdic
.wxDC_DrawPoint(self
.this
,arg0
,arg1
)
347 def DrawRectangle(self
,arg0
,arg1
,arg2
,arg3
):
348 val
= gdic
.wxDC_DrawRectangle(self
.this
,arg0
,arg1
,arg2
,arg3
)
350 def DrawRoundedRectangle(self
,arg0
,arg1
,arg2
,arg3
,*args
):
351 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
353 def DrawSpline(self
,arg0
,*args
):
354 argl
= map(None,args
)
355 try: argl
[0] = argl
[0].this
358 val
= apply(gdic
.wxDC_DrawSpline
,(self
.this
,arg0
,)+args
)
360 def DrawText(self
,arg0
,arg1
,arg2
):
361 val
= gdic
.wxDC_DrawText(self
.this
,arg0
,arg1
,arg2
)
364 val
= gdic
.wxDC_EndDoc(self
.this
)
366 def EndDrawing(self
):
367 val
= gdic
.wxDC_EndDrawing(self
.this
)
370 val
= gdic
.wxDC_EndPage(self
.this
)
372 def FloodFill(self
,arg0
,arg1
,arg2
,*args
):
373 val
= apply(gdic
.wxDC_FloodFill
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
375 def GetBackground(self
):
376 val
= gdic
.wxDC_GetBackground(self
.this
)
377 val
= wxBrushPtr(val
)
380 val
= gdic
.wxDC_GetBrush(self
.this
)
381 val
= wxBrushPtr(val
)
383 def GetCharHeight(self
):
384 val
= gdic
.wxDC_GetCharHeight(self
.this
)
386 def GetCharWidth(self
):
387 val
= gdic
.wxDC_GetCharWidth(self
.this
)
389 def GetClippingBox(self
):
390 val
= gdic
.wxDC_GetClippingBox(self
.this
)
393 val
= gdic
.wxDC_GetFont(self
.this
)
396 def GetLogicalFunction(self
):
397 val
= gdic
.wxDC_GetLogicalFunction(self
.this
)
399 def GetMapMode(self
):
400 val
= gdic
.wxDC_GetMapMode(self
.this
)
402 def GetOptimization(self
):
403 val
= gdic
.wxDC_GetOptimization(self
.this
)
406 val
= gdic
.wxDC_GetPen(self
.this
)
409 def GetPixel(self
,arg0
,arg1
):
410 val
= gdic
.wxDC_GetPixel(self
.this
,arg0
,arg1
)
411 val
= wxColourPtr(val
)
415 val
= gdic
.wxDC_GetSize(self
.this
)
417 def GetTextBackground(self
):
418 val
= gdic
.wxDC_GetTextBackground(self
.this
)
419 val
= wxColourPtr(val
)
421 def GetTextExtent(self
,arg0
):
422 val
= gdic
.wxDC_GetTextExtent(self
.this
,arg0
)
424 def GetTextForeground(self
):
425 val
= gdic
.wxDC_GetTextForeground(self
.this
)
426 val
= wxColourPtr(val
)
428 def LogicalToDeviceX(self
,arg0
):
429 val
= gdic
.wxDC_LogicalToDeviceX(self
.this
,arg0
)
431 def LogicalToDeviceXRel(self
,arg0
):
432 val
= gdic
.wxDC_LogicalToDeviceXRel(self
.this
,arg0
)
434 def LogicalToDeviceY(self
,arg0
):
435 val
= gdic
.wxDC_LogicalToDeviceY(self
.this
,arg0
)
437 def LogicalToDeviceYRel(self
,arg0
):
438 val
= gdic
.wxDC_LogicalToDeviceYRel(self
.this
,arg0
)
441 val
= gdic
.wxDC_MaxX(self
.this
)
444 val
= gdic
.wxDC_MaxY(self
.this
)
447 val
= gdic
.wxDC_MinX(self
.this
)
450 val
= gdic
.wxDC_MinY(self
.this
)
453 val
= gdic
.wxDC_Ok(self
.this
)
455 def SetDeviceOrigin(self
,arg0
,arg1
):
456 val
= gdic
.wxDC_SetDeviceOrigin(self
.this
,arg0
,arg1
)
458 def SetBackground(self
,arg0
):
459 val
= gdic
.wxDC_SetBackground(self
.this
,arg0
.this
)
461 def SetBackgroundMode(self
,arg0
):
462 val
= gdic
.wxDC_SetBackgroundMode(self
.this
,arg0
)
464 def SetClippingRegion(self
,arg0
,arg1
,arg2
,arg3
):
465 val
= gdic
.wxDC_SetClippingRegion(self
.this
,arg0
,arg1
,arg2
,arg3
)
467 def SetPalette(self
,arg0
):
468 val
= gdic
.wxDC_SetPalette(self
.this
,arg0
)
470 def SetBrush(self
,arg0
):
471 val
= gdic
.wxDC_SetBrush(self
.this
,arg0
.this
)
473 def SetFont(self
,arg0
):
474 val
= gdic
.wxDC_SetFont(self
.this
,arg0
.this
)
476 def SetLogicalFunction(self
,arg0
):
477 val
= gdic
.wxDC_SetLogicalFunction(self
.this
,arg0
)
479 def SetMapMode(self
,arg0
):
480 val
= gdic
.wxDC_SetMapMode(self
.this
,arg0
)
482 def SetOptimization(self
,arg0
):
483 val
= gdic
.wxDC_SetOptimization(self
.this
,arg0
)
485 def SetPen(self
,arg0
):
486 val
= gdic
.wxDC_SetPen(self
.this
,arg0
.this
)
488 def SetTextBackground(self
,arg0
):
489 val
= gdic
.wxDC_SetTextBackground(self
.this
,arg0
.this
)
491 def SetTextForeground(self
,arg0
):
492 val
= gdic
.wxDC_SetTextForeground(self
.this
,arg0
.this
)
494 def SetUserScale(self
,arg0
,arg1
):
495 val
= gdic
.wxDC_SetUserScale(self
.this
,arg0
,arg1
)
497 def StartDoc(self
,arg0
):
498 val
= gdic
.wxDC_StartDoc(self
.this
,arg0
)
501 val
= gdic
.wxDC_StartPage(self
.this
)
503 def DrawBitmap(self
,arg0
,arg1
,arg2
,*args
):
504 val
= apply(gdic
.wxDC_DrawBitmap
,(self
.this
,arg0
.this
,arg1
,arg2
,)+args
)
507 return "<C wxDC instance>"
509 def __init__(self
,this
):
515 class wxMemoryDCPtr(wxDCPtr
):
516 def __init__(self
,this
):
519 def SelectObject(self
,arg0
):
520 val
= gdic
.wxMemoryDC_SelectObject(self
.this
,arg0
.this
)
523 return "<C wxMemoryDC instance>"
524 class wxMemoryDC(wxMemoryDCPtr
):
526 self
.this
= gdic
.new_wxMemoryDC()
532 class wxScreenDCPtr(wxDCPtr
):
533 def __init__(self
,this
):
536 def StartDrawingOnTop(self
,arg0
):
537 val
= gdic
.wxScreenDC_StartDrawingOnTop(self
.this
,arg0
.this
)
539 def StartDrawingOnTopRect(self
,*args
):
540 argl
= map(None,args
)
541 try: argl
[0] = argl
[0].this
544 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopRect
,(self
.this
,)+args
)
546 def EndDrawingOnTop(self
):
547 val
= gdic
.wxScreenDC_EndDrawingOnTop(self
.this
)
550 return "<C wxScreenDC instance>"
551 class wxScreenDC(wxScreenDCPtr
):
553 self
.this
= gdic
.new_wxScreenDC()
559 class wxClientDCPtr(wxDCPtr
):
560 def __init__(self
,this
):
564 return "<C wxClientDC instance>"
565 class wxClientDC(wxClientDCPtr
):
566 def __init__(self
,arg0
) :
567 self
.this
= gdic
.new_wxClientDC(arg0
.this
)
573 class wxPaintDCPtr(wxDCPtr
):
574 def __init__(self
,this
):
578 return "<C wxPaintDC instance>"
579 class wxPaintDC(wxPaintDCPtr
):
580 def __init__(self
,arg0
) :
581 self
.this
= gdic
.new_wxPaintDC(arg0
.this
)
587 class wxPostScriptDCPtr(wxDCPtr
):
588 def __init__(self
,this
):
592 return "<C wxPostScriptDC instance>"
593 class wxPostScriptDC(wxPostScriptDCPtr
):
594 def __init__(self
,arg0
,*args
) :
595 argl
= map(None,args
)
596 try: argl
[1] = argl
[1].this
599 self
.this
= apply(gdic
.new_wxPostScriptDC
,(arg0
,)+args
)
607 #-------------- FUNCTION WRAPPERS ------------------
609 def wxEmptyBitmap(arg0
,arg1
,*args
):
610 val
= apply(gdic
.wxEmptyBitmap
,(arg0
,arg1
,)+args
)
611 val
= wxBitmapPtr(val
)
615 def wxNoRefBitmap(arg0
,arg1
):
616 val
= gdic
.wxNoRefBitmap(arg0
,arg1
)
617 val
= wxBitmapPtr(val
)
620 def wxMaskColour(arg0
,arg1
):
621 val
= gdic
.wxMaskColour(arg0
.this
,arg1
.this
)
626 def wxStockCursor(arg0
):
627 val
= gdic
.wxStockCursor(arg0
)
628 val
= wxCursorPtr(val
)
632 def wxNamedColour(arg0
):
633 val
= gdic
.wxNamedColour(arg0
)
634 val
= wxColourPtr(val
)
638 def wxMemoryDCFromDC(arg0
):
639 val
= gdic
.wxMemoryDCFromDC(arg0
.this
)
640 val
= wxMemoryDCPtr(val
)
646 #-------------- VARIABLE WRAPPERS ------------------
649 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
650 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
651 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
652 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
653 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
654 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
655 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
656 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
657 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
658 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
659 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
660 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
661 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
662 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
663 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
664 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
665 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
666 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
667 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
668 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
669 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
670 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
671 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
672 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
673 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
674 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
675 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
676 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
677 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
678 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
679 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
680 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
681 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
682 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
683 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
684 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
685 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
686 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
687 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
688 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
689 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)