Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / RadioButton.xs
1 #############################################################################
2 ## Name:        XS/RadioButton.xs
3 ## Purpose:     XS for Wx::RadioButton
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     08/11/2000
7 ## RCS-ID:      $Id: RadioButton.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 #############################################################################
12
13 #include <wx/radiobut.h>
14
15 MODULE=Wx PACKAGE=Wx::RadioButton
16
17 void
18 new( ... )
19   PPCODE:
20     BEGIN_OVERLOAD()
21         MATCH_VOIDM_REDISP( newDefault )
22         MATCH_ANY_REDISP( newFull )
23     END_OVERLOAD( "Wx::RadioButton::new" )
24
25 wxRadioButton*
26 newDefault( CLASS )
27     PlClassName CLASS
28   CODE:
29     RETVAL = new wxRadioButton();
30     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
31   OUTPUT: RETVAL
32
33 wxRadioButton*
34 newFull( CLASS, parent, id, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxRadioButtonNameStr )
35     PlClassName CLASS
36     wxWindow* parent
37     wxWindowID id
38     wxString label
39     wxPoint pos
40     wxSize size
41     long style
42     wxValidator* validator
43     wxString name
44   CODE:
45     RETVAL = new wxRadioButton( parent, id, label, pos, size, 
46         style, *validator, name );
47     wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
48   OUTPUT:
49     RETVAL
50
51 bool
52 wxRadioButton::Create( parent, id, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxRadioButtonNameStr )
53     wxWindow* parent
54     wxWindowID id
55     wxString label
56     wxPoint pos
57     wxSize size
58     long style
59     wxValidator* validator
60     wxString name
61   C_ARGS: parent, id, label, pos, size, style, *validator, name
62
63 bool
64 wxRadioButton::GetValue()
65
66 void
67 wxRadioButton::SetValue( value )
68     bool value