Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / GraphicsRenderer.xsp
1 #############################################################################
2 ## Name:        XS/GraphicsRenderer.xsp
3 ## Purpose:     XS for Wx::GraphicsRenderer
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     30/09/2007
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 #############################################################################
12
13 %module{Wx};
14
15 #if wxUSE_GRAPHICS_CONTEXT
16
17 #include <wx/graphics.h>
18
19 %name{Wx::GraphicsRenderer} class wxGraphicsRenderer
20 {
21 %{
22 wxGraphicsRenderer*
23 GetDefaultRenderer()
24   CODE:
25     RETVAL = wxGraphicsRenderer::GetDefaultRenderer();
26   OUTPUT: RETVAL
27
28 void
29 CreateContext( ... )
30   PPCODE:
31     BEGIN_OVERLOAD()
32         MATCH_REDISP_FUNCTION( wxPliOvl_wwin, CreateFromWindow )
33         MATCH_REDISP_FUNCTION( wxPliOvl_wdc, CreateFromDC )
34     END_OVERLOAD( "Wx::GraphicsRenderer::CreateContext" )
35 %}
36
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,
51                                                       wxDouble radius,
52                                                       const wxColour &oColor, const wxColour &cColor );
53 #define wxBLACKPtr (wxColour*)wxBLACK
54     const wxGraphicsFont& CreateFont( const wxFont& font,
55                                       const wxColour& col = wxBLACKPtr );
56 };
57
58 #endif