Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / SpinButton.xs
1 #############################################################################
2 ## Name:        XS/SpinButton.xs
3 ## Purpose:     XS for Wx::SpinButton
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     08/11/2000
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 #############################################################################
12
13 #include <wx/spinctrl.h>
14 #include <wx/spinbutt.h>
15
16 MODULE=Wx_Evt PACKAGE=Wx::SpinEvent
17
18 wxSpinEvent*
19 wxSpinEvent::new( commandType = wxEVT_NULL, id = 0 )
20     wxEventType commandType
21     int id
22
23 int
24 wxSpinEvent::GetPosition()
25
26 void
27 wxSpinEvent::SetPosition( pos )
28     int pos
29
30 MODULE=Wx PACKAGE=Wx::SpinButton
31
32 void
33 new( ... )
34   PPCODE:
35     BEGIN_OVERLOAD()
36         MATCH_VOIDM_REDISP( newDefault )
37         MATCH_ANY_REDISP( newFull )
38     END_OVERLOAD( "Wx::SpinButton::new" )
39
40 wxSpinButton*
41 newDefault( CLASS )
42     PlClassName CLASS
43   CODE:
44     RETVAL = new wxSpinButton();
45     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
46   OUTPUT: RETVAL
47
48 wxSpinButton*
49 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_HORIZONTAL, name = wxSPIN_BUTTON_NAME )
50     PlClassName CLASS
51     wxWindow* parent
52     wxWindowID id
53     wxPoint pos
54     wxSize size
55     long style
56     wxString name
57   CODE:
58     RETVAL = new wxSpinButton( parent, id, pos, size, style, name );
59     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
60   OUTPUT:
61     RETVAL
62
63 bool
64 wxSpinButton::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_HORIZONTAL, name = wxSPIN_BUTTON_NAME )
65     wxWindow* parent
66     wxWindowID id
67     wxPoint pos
68     wxSize size
69     long style
70     wxString name
71
72 int
73 wxSpinButton::GetMax()
74
75 int
76 wxSpinButton::GetMin()
77
78 int
79 wxSpinButton::GetValue()
80
81 void
82 wxSpinButton::SetRange( min, max )
83     int min
84     int max
85
86 void
87 wxSpinButton::SetValue( value )
88     int value