Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / EditableListBox.xsp
1 #############################################################################
2 ## Name:        XS/EditableListBox.xsp
3 ## Purpose:     XS++ for Wx::EditableListBox
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     12/08/2007
7 ## RCS-ID:      $Id: EditableListBox.xsp 2139 2007-08-12 13:33:17Z mbarbon $
8 ## Copyright:   (c) 2007 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 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
16
17 #include <wx/editlbox.h>
18
19 %typemap{wxEditableListBox*}{simple};
20 %typemap{wxListCtrl*}{simple};
21 %typemap{wxBitmapButton*}{simple};
22
23 %name{Wx::EditableListBox} class wxEditableListBox
24 {
25
26 %{
27 void
28 new( ... )
29   PPCODE:
30     BEGIN_OVERLOAD()
31         MATCH_VOIDM_REDISP( newDefault )
32         MATCH_ANY_REDISP( newFull )
33     END_OVERLOAD( "Wx::EditableListBox::new" )
34 %}
35
36     %name{newDefault} wxEditableListBox()
37         %code{% RETVAL = new wxEditableListBox();
38                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
39                 %};
40     %name{newFull} wxEditableListBox( wxWindow *parent,
41                                       wxWindowID id, const wxString& label,
42                                       const wxPoint& pos = wxDefaultPosition,
43                                       const wxSize& size = wxDefaultSize,
44                                       long style = wxEL_DEFAULT_STYLE,
45                                       const wxString& name = wxEditableListBoxNameStr )
46         %code{% RETVAL = new wxEditableListBox( parent, id, label, pos, size,
47                                                 style, name );
48                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
49                 %};
50
51     bool Create( wxWindow *parent,
52                  wxWindowID id, const wxString& label,
53                  const wxPoint& pos = wxDefaultPosition,
54                  const wxSize& size = wxDefaultSize,
55                  long style = wxEL_DEFAULT_STYLE,
56                  const wxString& name = wxEditableListBoxNameStr );
57
58     void SetStrings( const wxArrayString& strings );
59
60 %{
61 void
62 wxEditableListBox::GetStrings()
63   PPCODE:
64     wxArrayString strings;
65     THIS->GetStrings( strings );
66     PUTBACK;
67     wxPli_stringarray_push( aTHX_ strings );
68     SPAGAIN;
69 %} 
70
71     wxListCtrl* GetListCtrl();
72     wxBitmapButton* GetDelButton();
73     wxBitmapButton* GetNewButton();
74     wxBitmapButton* GetUpButton();
75     wxBitmapButton* GetDownButton();
76     wxBitmapButton* GetEditButton();
77 };
78
79 #endif