- or download this
if ($pspec->get_name eq 'collapsed_box_height') {
return $self->{collapsed_box_height};
...
} elsif ($pspec->get_name eq 'max_vert_distance') {
return $self->{max_vert_distance};
}
- or download this
my %props = map { $_->{name} => 1 } $self->list_properties;
return $self->{$pspec->get_name}
if exists $props{$pspec->get_name};
- or download this
return $self->{$pspec->get_name}
if exists $self->{$pspec->get_name};
- or download this
my $draw = shift;
my $gc = shift;
...
my $y = shift;
my $w = shift;
my $h = shift;
- or download this
my ($draw, $gc, $text, $x, $y, $w, $h) = @_;
- or download this
my %args;
@args{qw(draw gc text x y w h)} = @_;