home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / auto / Tk / Ghostscript / BoundingBox.al < prev    next >
Encoding:
Text File  |  1997-08-10  |  332 b   |  15 lines

  1. # NOTE: Derived from ..\blib\lib\Tk\Ghostscript.pm.  Changes made here will be lost.
  2. package Tk::Ghostscript;
  3.  
  4. sub BoundingBox
  5. {
  6.  my $w = shift;
  7.  return @{$w->{'BoundingBox'}} unless (@_);
  8.  croak "Invalid bounding box" . Pretty(\@_) unless (@_ == 4); 
  9.  my @bb = @_;
  10.  $w->{'BoundingBox'} = \@bb;
  11.  $w->ChangeView;
  12. }
  13.  
  14. 1;
  15.