summaryrefslogtreecommitdiff
path: root/Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al
diff options
context:
space:
mode:
authorStaszek Wawrykiewicz <staw@gust.org.pl>2006-12-18 03:24:34 +0000
committerStaszek Wawrykiewicz <staw@gust.org.pl>2006-12-18 03:24:34 +0000
commitfbf4a6e8014789c67a381e0b4f05de5bdadbce24 (patch)
tree20cc48dd29799a673fe0a628e825114d823493b1 /Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al
parent34c11d2616bb32772199abf210ae88d99665a824 (diff)
perltl added
git-svn-id: svn://tug.org/texlive/trunk@2778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al')
-rw-r--r--Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al29
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al b/Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al
new file mode 100644
index 00000000000..83ab7a3241c
--- /dev/null
+++ b/Master/perltl/site/lib/auto/Tk/Wm/FullScreen.al
@@ -0,0 +1,29 @@
+# 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 130 "blib\lib\Tk/Wm.pm (autosplit into blib\lib\auto\Tk\Wm\FullScreen.al)"
+sub FullScreen
+{
+ my $w = shift;
+ my $over = (@_) ? shift : 0;
+ my $width = $w->screenwidth;
+ my $height = $w->screenheight;
+ $w->GeometryRequest($width,$height);
+ $w->overrideredirect($over & 1);
+ $w->Post(0,0);
+ $w->update;
+ if ($over & 2)
+ {
+ my $x = $w->rootx;
+ my $y = $w->rooty;
+ $width -= 2*$x;
+ $height -= $x + $y;
+ $w->GeometryRequest($width,$height);
+ $w->update;
+ }
+}
+
+# end of Tk::Wm::FullScreen
+1;