1 #############################################################################
2 ## Name: XS/SpinButton.xs
3 ## Purpose: XS for Wx::SpinButton
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: SpinButton.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2003, 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 #############################################################################
13 #include <wx/spinctrl.h>
14 #include <wx/spinbutt.h>
16 MODULE=Wx_Evt PACKAGE=Wx::SpinEvent
19 wxSpinEvent::new( commandType = wxEVT_NULL, id = 0 )
20 wxEventType commandType
24 wxSpinEvent::GetPosition()
27 wxSpinEvent::SetPosition( pos )
30 MODULE=Wx PACKAGE=Wx::SpinButton
36 MATCH_VOIDM_REDISP( newDefault )
37 MATCH_ANY_REDISP( newFull )
38 END_OVERLOAD( "Wx::SpinButton::new" )
44 RETVAL = new wxSpinButton();
45 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
49 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_HORIZONTAL, name = wxSPIN_BUTTON_NAME )
58 RETVAL = new wxSpinButton( parent, id, pos, size, style, name );
59 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
64 wxSpinButton::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_HORIZONTAL, name = wxSPIN_BUTTON_NAME )
73 wxSpinButton::GetMax()
76 wxSpinButton::GetMin()
79 wxSpinButton::GetValue()
82 wxSpinButton::SetRange( min, max )
87 wxSpinButton::SetValue( value )