home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _9a595205abaf42ecc8e1fbd213c27da6 < prev    next >
Text File  |  2004-06-01  |  675b  |  30 lines

  1. # NOTE: Derived from blib\lib\Tk\Wm.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Tk::Wm;
  5.  
  6. #line 138 "blib\lib\Tk\Wm.pm (autosplit into blib\lib\auto\Tk\Wm\FullScreen.al)"
  7. sub FullScreen
  8. {
  9.  my $w = shift;
  10.  my $over = (@_) ? shift : 0;
  11.  my $width  = $w->screenwidth;
  12.  my $height = $w->screenheight;
  13.  $w->GeometryRequest($width,$height);
  14.  $w->overrideredirect($over & 1);
  15.  $w->Post(0,0);
  16.  $w->update;
  17.  if ($over & 2)
  18.   {
  19.    my $x = $w->rootx;
  20.    my $y = $w->rooty;
  21.    $width -= 2*$x;
  22.    $height -= $x + $y;
  23.    $w->GeometryRequest($width,$height);
  24.    $w->update;
  25.   }
  26. }
  27.  
  28. # end of Tk::Wm::FullScreen
  29. 1;
  30.