blob: a699cee6920406ac1d4533fc59f960dc11dfb8a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# NOTE: Derived from blib\lib\Tk/Wm.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Tk::Wm;
#line 84 "blib\lib\Tk/Wm.pm (autosplit into blib\lib\auto\Tk\Wm\AnchorAdjust.al)"
sub AnchorAdjust
{
my ($anchor,$X,$Y,$w,$h) = @_;
$anchor = 'c' unless (defined $anchor);
$Y += ($anchor =~ /s/) ? $h : ($anchor =~ /n/) ? 0 : $h/2;
$X += ($anchor =~ /e/) ? $w : ($anchor =~ /w/) ? 0 : $w/2;
return ($X,$Y);
}
# end of Tk::Wm::AnchorAdjust
1;
|