Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / lib / Wx / RadioBox.pm
1 #############################################################################
2 ## Name:        lib/Wx/RadioBox.pm
3 ## Purpose:     Wx::RadioBox class
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     28/10/2000
7 ## RCS-ID:      $Id: RadioBox.pm 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright:   (c) 2000-2002 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 package Wx::RadioBox;
14
15 use strict;
16
17 sub Enable {
18   my( $this ) = shift;
19
20   Wx::_match( @_, $Wx::_b, 1 )   && ( $this->SUPER::Enable( @_ ), return );
21   Wx::_match( @_, $Wx::_n_b, 2 ) && ( $this->EnableItem( @_ ), return );
22   Wx::_croak Wx::_ovl_error;
23 }
24
25 sub GetLabel {
26   my( $this ) = shift;
27
28   @_ == 0                  && return $this->SUPER::GetLabel();
29   Wx::_match( @_, $Wx::_n, 1 ) && return $this->GetItemLabel( @_ );
30   Wx::_croak Wx::_ovl_error;
31 }
32
33 sub SetLabel {
34   my( $this ) = shift;
35
36   Wx::_match( @_, $Wx::_s, 1 )   && ( $this->SUPER::SetLabel( @_ ), return );
37   Wx::_match( @_, $Wx::_n_s, 2 ) && ( $this->SetItemLabel( @_ ), return );
38   Wx::_croak Wx::_ovl_error;
39 }
40
41 sub Show {
42   my( $this ) = shift;
43
44   Wx::_match( @_, $Wx::_n, 1 )   && ( $this->SUPER::Show( @_ ), return );
45   Wx::_match( @_, $Wx::_n_n, 2 ) && ( $this->ShowItem( @_ ), return );
46   Wx::_croak Wx::_ovl_error;
47 }
48
49 1;
50
51 # Local variables: #
52 # mode: cperl #
53 # End: #