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 / Table / see.al
CommitLineData
86530b38
AT
1# NOTE: Derived from blib/lib/Tk/Table.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Tk::Table;
5
6#line 501 "blib/lib/Tk/Table.pm (autosplit into blib/lib/auto/Tk/Table/see.al)"
7sub see
8{
9 my $t = shift;
10 my ($row,$col) = (@_ == 2) ? @_ : @{$t->{Slave}{$_[0]->PathName}};
11 my $see = 1;
12 if (($row -= $t->cget('-fixedrows')) >= 0)
13 {
14 if ($row < $t->{Top})
15 {
16 $t->{Top} = $row;
17 $t->QueueLayout(4);
18 $see = 0;
19 }
20 elsif ($row >= $t->{Bottom})
21 {
22 $t->{Top} += ($row - $t->{Bottom}+1);
23 $t->QueueLayout(4);
24 $see = 0;
25 }
26 }
27 if (($col -= $t->cget('-fixedcolumns')) >= 0)
28 {
29 if ($col < $t->{Left})
30 {
31 $t->{Left} = $col;
32 $t->QueueLayout(4);
33 $see = 0;
34 }
35 elsif ($col >= $t->{Right})
36 {
37 $t->{Left} += ($col - $t->{Right}+1);
38 $t->QueueLayout(4);
39 $see = 0;
40 }
41 }
42 return $see;
43}
44
451;
46# end of Tk::Table::see