Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / Listbook.xsp
1 #############################################################################
2 ## Name:        XS/Listbook.xsp
3 ## Purpose:     XS++ for Wx::Listbook
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     21/12/2003
7 ## RCS-ID:      $Id: Listbook.xsp 2079 2007-07-08 21:18:04Z mbarbon $
8 ## Copyright:   (c) 2003, 2005-2006 Mattia Barbon
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 %typemap{wxListbook*}{simple};
16
17 %{
18 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
19
20 #include <wx/listbook.h>
21 %}
22
23 %name{Wx::Listbook} class wxListbook
24 {
25     %name{newDefault} wxListbook()
26         %code{% RETVAL = new wxListbook();
27                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
28              %};
29     %name{newFull} wxListbook(wxWindow *parent,
30                               wxWindowID id = wxID_ANY,
31                               const wxPoint& pos = wxDefaultPosition,
32                               const wxSize& size = wxDefaultSize,
33                               long style = 0,
34                               const wxString& name = wxEmptyString)
35         %code{% RETVAL = new wxListbook( parent, id, pos, size, style, name );
36                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
37              %};
38
39     bool Create(wxWindow *parent,
40                 wxWindowID id = wxID_ANY,
41                 const wxPoint& pos = wxDefaultPosition,
42                 const wxSize& size = wxDefaultSize,
43                 long style = 0,
44                 const wxString& name = wxEmptyString);
45
46 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
47     wxListView* GetListView();
48 #endif
49 };
50
51 %{
52 void
53 new( ... )
54   PPCODE:
55     BEGIN_OVERLOAD()
56         MATCH_VOIDM_REDISP( newDefault )
57         MATCH_ANY_REDISP( newFull )
58     END_OVERLOAD( "Wx::Listbook::new" )
59 %}
60
61 %{
62 #endif
63 %}