1 #############################################################################
2 ## Name: XS/GraphicsRenderer.xsp
3 ## Purpose: XS for Wx::GraphicsRenderer
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: GraphicsRenderer.xsp 2300 2007-12-24 17:02:32Z mbarbon $
8 ## Copyright: (c) 2007 Klaas Hartmann
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
15 #if wxUSE_GRAPHICS_CONTEXT
17 #include <wx/graphics.h>
19 %name{Wx::GraphicsRenderer} class wxGraphicsRenderer
25 RETVAL = wxGraphicsRenderer::GetDefaultRenderer();
32 MATCH_REDISP_FUNCTION( wxPliOvl_wwin, CreateFromWindow )
33 MATCH_REDISP_FUNCTION( wxPliOvl_wdc, CreateFromDC )
34 END_OVERLOAD( "Wx::GraphicsRenderer::CreateContext" )
37 %name{CreateFromDC} wxGraphicsContext* CreateContext( const wxWindowDC& dc );
38 %name{CreateFromWindow} wxGraphicsContext* CreateContext( wxWindow* window );
39 wxGraphicsContext* CreateMeasuringContext();
40 const wxGraphicsPath& CreatePath();
41 const wxGraphicsMatrix& CreateMatrix( wxDouble a=1.0, wxDouble b=0.0,
42 wxDouble c=0.0, wxDouble d=1.0,
43 wxDouble tx=0.0, wxDouble ty=0.0 );
44 const wxGraphicsPen& CreatePen( const wxPen& pen );
45 const wxGraphicsBrush& CreateBrush( const wxBrush& brush );
46 const wxGraphicsBrush& CreateLinearGradientBrush( wxDouble x1, wxDouble y1,
47 wxDouble x2, wxDouble y2,
48 const wxColour&c1, const wxColour&c2 );
49 const wxGraphicsBrush& CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
50 wxDouble xc, wxDouble yc,
52 const wxColour &oColor, const wxColour &cColor );
53 #define wxBLACKPtr (wxColour*)wxBLACK
54 const wxGraphicsFont& CreateFont( const wxFont& font,
55 const wxColour& col = wxBLACKPtr );