1 #############################################################################
2 ## Name: XS/SearchCtrl.xsp
3 ## Purpose: XS++ for Wx::SearchCtrl
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: SearchCtrl.xsp 2140 2007-08-12 13:35:52Z 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 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 8, 3 )
17 #include <wx/srchctrl.h>
20 %typemap{wxSearchCtrl*}{simple};
22 %name{Wx::SearchCtrl} class wxSearchCtrl
30 MATCH_VOIDM_REDISP( newDefault )
31 MATCH_ANY_REDISP( newFull )
32 END_OVERLOAD( "Wx::SearchCtrl::new" )
35 %name{newDefault} wxSearchCtrl()
36 %code{% RETVAL = new wxSearchCtrl();
37 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
39 %name{newFull} wxSearchCtrl( wxWindow *parent,
41 const wxString& label = wxEmptyString,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
45 const wxValidator& validator = wxDefaultValidatorPtr,
46 const wxString& name = wxSearchCtrlNameStr )
47 %code{% RETVAL = new wxSearchCtrl( parent, id, label, pos, size,
48 style, *validator, name );
49 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
52 bool Create( wxWindow *parent,
53 wxWindowID id, const wxString& value = wxEmptyString,
54 const wxPoint& pos = wxDefaultPosition,
55 const wxSize& size = wxDefaultSize,
57 const wxValidator& validator = wxDefaultValidatorPtr,
58 const wxString& name = wxSearchCtrlNameStr );
60 void SetMenu( wxMenu *menu );
62 void ShowSearchButton( bool show );
63 bool IsSearchButtonVisible() const;
65 void ShowCancelButton( bool show );
66 bool IsCancelButtonVisible() const;
68 void SetDescriptiveText( const wxString& text );
69 wxString GetDescriptiveText() const;