Gtk2::Ex::GdkBits - miscellaneous Gdk helpers
use Gtk2::Ex::GdkBits;
($x,$y) = Gtk2::Ex::GdkBits::window_get_root_position ($window)
Return two values $x,$y which are the top left corner of $window in root window coordinates.
$x,$y
$window
This is the same as $window->get_origin(), but it's implemented with $window->get_position() calls and thus uses the most recently recorded window positions rather than making an X server round-trip.
$window->get_origin()
$window->get_position()
Gtk2::Ex::GdkBits::window_clear_region ($window, $region)
Clear the area of $region (a Gtk2::Gdk::Region) in $window to the window background pixel or pixmap.
$region
Gtk2::Gdk::Region
Gtk2::Ex::GdkBits::draw_rectangle_corners ($drawable, $gc, $filled, $x1,$y1, $x2,$y2)
Draw a rectangle with corners at $x1,$y1 and $x2,$y2.
$x1
$y1
$x2
$y2
Nothing is exported by default, but the functions can be requested in usual Exporter style,
Exporter
use Gtk2::Ex::GdkBits 'window_clear_region'; window_clear_region ($win, $target_region);
There's no :all tag since this module is meant as a grab-bag of functions and to import as-yet unknown things would be asking for name clashes.
:all
Gtk2::Ex::WidgetBits, Gtk2::Gdk, Gtk2::Gdk::Window, Gtk2::Gdk::Region
http://user42.tuxfamily.org/gtk2-ex-widgetbits/index.html
Copyright 2008, 2009, 2010, 2011, 2012 Kevin Ryde
Gtk2-Ex-WidgetBits is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Gtk2-Ex-WidgetBits is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Gtk2-Ex-WidgetBits. If not, see http://www.gnu.org/licenses/.
To install Gtk2::Ex::WidgetBits, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Ex::WidgetBits
CPAN shell
perl -MCPAN -e shell install Gtk2::Ex::WidgetBits
For more information on module installation, please visit the detailed CPAN module installation guide.