1 #############################################################################
3 ## Purpose: XS for Wx::Button
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Button.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2001, 2003 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 #############################################################################
13 MODULE=Wx PACKAGE=Wx::Button
15 #include <wx/button.h>
21 MATCH_VOIDM_REDISP( newDefault )
22 MATCH_ANY_REDISP( newFull )
23 END_OVERLOAD( "Wx::Button::new" )
29 RETVAL = new wxButton();
30 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
34 newFull( CLASS, parent, id, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxButtonNameStr )
42 wxValidator* validator
45 RETVAL = new wxButton( parent, id, label, pos, size,
46 style, *validator, name );
47 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
52 wxButton::Create( parent, id, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxButtonNameStr )
59 wxValidator* validator
61 C_ARGS: parent, id, label, pos, size, style, *validator, name
66 RETVAL = new wxSize( wxButton::GetDefaultSize() );
71 wxButton::SetDefault()