Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / ItemContainerImmutable.xsp
1 #############################################################################
2 ## Name:        XS/ItemContainerImmutable.xsp
3 ## Purpose:     XS for Wx::ItemContainerImmutable
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     14/08/2007
7 ## RCS-ID:      $Id: ItemContainerImmutable.xsp 2163 2007-08-15 22:46:51Z 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 %typemap{wxItemContainerImmutable*}{simple};
16
17 %name{Wx::ItemContainerImmutable} class wxItemContainerImmutable {
18     unsigned int GetCount() const;
19     bool IsEmpty() const;
20     wxString GetString( unsigned int n );
21
22 %{
23 void
24 wxItemContainerImmutable::GetStrings()
25   PPCODE:
26     PUTBACK;
27     wxPli_stringarray_push( aTHX_ THIS->GetStrings() );
28     SPAGAIN;
29 %}
30
31     void SetString( unsigned int n, const wxString& s );
32
33 %{
34 int
35 wxItemContainerImmutable::FindString( ... )
36   PPCODE:
37     BEGIN_OVERLOAD()
38 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
39         MATCH_REDISP( wxPliOvl_s_b, FindStringCase )
40 #endif
41         MATCH_REDISP( wxPliOvl_s, FindStringNoCase )
42     END_OVERLOAD( Wx::ItemContainerImmutable::FindString )
43 %}
44
45     %name{FindStringNoCase} int FindString( const wxString& s ) const;
46 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
47     %name{FindStringCase} int FindString( const wxString& s, bool bCase = false ) const;
48 #endif
49
50 #if WXPERL_W_VERSION_GE( 2, 6, 0 ) && !defined(WXPERL_IN_COMBOBOX)
51     void SetSelection( int n );
52 #endif
53     int GetSelection() const;
54 #if WXPERL_W_VERSION_GE( 2, 6, 0 ) || defined(WXPERL_IN_COMBOBOX)
55     bool SetStringSelection( const wxString& s );
56 #endif
57     wxString GetStringSelection() const;
58     void Select( int n );
59 };