Help for this page

Select Code to Download


  1. 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};
    }
    
  2. or download this
    my %props = map { $_->{name} => 1 } $self->list_properties;
    return $self->{$pspec->get_name}
      if exists $props{$pspec->get_name};
    
  3. or download this
    return $self->{$pspec->get_name}
      if exists $self->{$pspec->get_name};
    
  4. or download this
    my $draw = shift;
    my $gc = shift;
    ...
    my $y = shift;
    my $w = shift;
    my $h = shift;
    
  5. or download this
    my ($draw, $gc, $text, $x, $y, $w, $h) = @_;
    
  6. or download this
    my %args;
    @args{qw(draw gc text x y w h)} = @_;