| 1 | package Gtk2::Ex::FormFactory::HBox; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use base qw( Gtk2::Ex::FormFactory::Container ); | ||
| 6 | |||
| 7 | sub get_type { "hbox" } | ||
| 8 | |||
| 9 | sub get_homogenous { shift->{homogenous} } | ||
| 10 | sub get_spacing { shift->{spacing} } | ||
| 11 | sub get_no_frame { shift->{no_frame} } | ||
| 12 | |||
| 13 | sub set_homogenous { shift->{homogenous} = $_[1] } | ||
| 14 | sub set_spacing { shift->{spacing} = $_[1] } | ||
| 15 | sub set_no_frame { shift->{no_frame} = $_[1] } | ||
| 16 | |||
| 17 | sub new { | ||
| 18 | my $class = shift; | ||
| 19 | my %par = @_; | ||
| 20 | my ($homogenous, $spacing, $no_frame) = | ||
| 21 | @par{'homogenous','spacing','no_frame'}; | ||
| 22 | |||
| 23 | my $self = $class->SUPER::new(@_); | ||
| 24 | |||
| 25 | $self->set_homogenous($homogenous); | ||
| 26 | $self->set_spacing($spacing); | ||
| 27 | $self->set_no_frame($no_frame); | ||
| 28 | |||
| 29 | return $self; | ||
| 30 | } | ||
| 31 | |||
| 32 | 1; | ||
| 33 | |||
| 34 | __END__ |