Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / auto / Tk / Wm / AnchorAdjust.al
CommitLineData
86530b38
AT
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.
4package Tk::Wm;
5
6#line 84 "blib/lib/Tk/Wm.pm (autosplit into blib/lib/auto/Tk/Wm/AnchorAdjust.al)"
7sub AnchorAdjust
8{
9 my ($anchor,$X,$Y,$w,$h) = @_;
10 $anchor = 'c' unless (defined $anchor);
11 $Y += ($anchor =~ /s/) ? $h : ($anchor =~ /n/) ? 0 : $h/2;
12 $X += ($anchor =~ /e/) ? $w : ($anchor =~ /w/) ? 0 : $w/2;
13 return ($X,$Y);
14}
15
16# end of Tk::Wm::AnchorAdjust
171;