Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / SpinCtrl.xs
1 #############################################################################
2 ## Name:        XS/SpinCtrl.xs
3 ## Purpose:     XS for Wx::SpinCtrl
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     08/11/2000
7 ## RCS-ID:      $Id: SpinCtrl.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
15 MODULE=Wx PACKAGE=Wx::SpinCtrl
16
17 void
18 new( ... )
19   PPCODE:
20     BEGIN_OVERLOAD()
21         MATCH_VOIDM_REDISP( newDefault )
22         MATCH_ANY_REDISP( newFull )
23     END_OVERLOAD( "Wx::SpinCtrl::new" )
24
25 wxSpinCtrl*
26 newDefault( CLASS )
27     PlClassName CLASS
28   CODE:
29     RETVAL = new wxSpinCtrl();
30     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
31   OUTPUT: RETVAL
32
33 wxSpinCtrl*
34 newFull( CLASS, parent, id = wxID_ANY, value = wxEmptyString, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_ARROW_KEYS, min = 0, max = 100, initial = 0, name = wxT("spinCtrl") )
35     PlClassName CLASS
36     wxWindow* parent
37     wxWindowID id
38     wxString value
39     wxPoint pos
40     wxSize size
41     long style
42     int min
43     int max
44     int initial
45     wxString name
46   CODE:
47     RETVAL = new wxSpinCtrl( parent, id, value, pos, size,
48         style, min, max, initial, name );
49     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
50   OUTPUT:
51     RETVAL
52
53 bool
54 wxSpinCtrl::Create( parent, id = wxID_ANY, value = wxEmptyString, pos = wxDefaultPosition, size = wxDefaultSize, style = wxSP_ARROW_KEYS, min = 0, max = 100, initial = 0, name = wxT("spinCtrl") )
55     wxWindow* parent
56     wxWindowID id
57     wxString value
58     wxPoint pos
59     wxSize size
60     long style
61     int min
62     int max
63     int initial
64     wxString name
65
66 int
67 wxSpinCtrl::GetMin()
68
69 int
70 wxSpinCtrl::GetMax()
71
72 int
73 wxSpinCtrl::GetValue()
74
75 void
76 wxSpinCtrl::SetRange( min, max )
77     int min
78     int max
79
80 void
81 wxSpinCtrl::SetValue( text )
82     wxString text
83
84 #if !defined(__WXGTK__)
85
86 void
87 wxSpinCtrl::SetSelection( from, to )
88     long from
89     long to
90
91 #endif