— |
has '+class' => (
default => 'Gtk2::Button' ,
);
has 'action' => (
is => 'rw' ,
isa => GappActionOrArrayRef|Undef,
);
has 'label' => (
is => 'rw' ,
isa => 'Maybe[Str]' ,
);
has 'icon' => (
is => 'rw' ,
isa => 'Maybe[Str]' ,
);
has 'image' => (
is => 'rw' ,
isa => 'Maybe[Gapp::Image]' ,
);
has 'stock_id' => (
is => 'rw' ,
isa => 'Maybe[Str]' ,
);
has 'tooltip' => (
is => 'rw' ,
isa => 'Maybe[Str]' ,
);
before '_construct_gtk_widget' => sub {
my ( $self ) = @_ ;
};
sub BUILDARGS {
my $class = shift ;
my %args = @_ == 1 && is_HashRef( $_ [0] ) ? %{ $_ [0]} : @_ ;
if ( exists $args {label} && ! $args {args} ) {
$args {args} = [ $args {label} ];
$args {constructor} = 'new_with_label' ;
}
__PACKAGE__->SUPER::BUILDARGS( %args );
}
1;
sub get_field_value {
}
sub set_field_value {
}
sub widget_to_stash {
}
sub stash_to_widget {
}
|