Gtk2::Ex::QuadButton::Scroll -- buttons up, down, left, right scrolling adjustment objects
use Gtk2::Ex::QuadButton::Scroll; my $qb = Gtk2::Ex::QuadButton::Scroll->new (vadjustment => $vadj, hadjustment => $hadj, vinverted => 1);
Gtk2::Ex::QuadButton::Scroll is a subclass of Gtk2::Ex::QuadButton,
Gtk2::Ex::QuadButton::Scroll
Gtk2::Ex::QuadButton
Gtk2::Widget Gtk2::DrawingArea Gtk2::Ex::QuadButton Gtk2::Ex::QuadButton::Scroll
This is a QuadButton which applies the up, left, etc clicks to given vertical and horizontal Gtk2::Adjustment objects. Those adjusters will usually be to control some sort of display widget.
Gtk2::Adjustment
"Inverted" settings swap the up/down or left/right direction of the clicks, for a display widget which goes up the page instead of down, or left instead of right.
$qb = Gtk2::Ex::QuadButton::Scroll->new (key=>value,...)
Create and return a new QuadButton::Scroll widget. Optional key/value pairs set initial properties per Glib::Object->new.
QuadButton::Scroll
Glib::Object->new
my $qb = Gtk2::Ex::QuadButton::Scroll->new;
hadjustment
undef
vadjustment
The adjustment objects to change when the users clicks the button up, right, etc. If undef then clicks in the respective horizontal or vertical direction do nothing.
hinverted
vinverted
Swap the direction the respective adjustments are moved. Normally a left click decreases hadjustment and a right click increases it, but with hinverted it's the other way around. Similarly vinverted for vadjustment.
The sense of this inverting is the as the Gtk2::Scrollbar inverted property, so if you set inverted on a scrollbar then do the same to this QuadButton scroller.
Gtk2::Scrollbar
inverted
Gtk2::Ex::QuadButton, Gtk2::Adjustment, Gtk2::Scrollbar
http://user42.tuxfamily.org/gtk2-ex-quadbutton/index.html
Copyright 2010, 2011 Kevin Ryde
Gtk2-Ex-QuadButton 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-QuadButton 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-QuadButton. If not, see http://www.gnu.org/licenses/.
To install Gtk2::Ex::QuadButton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Ex::QuadButton
CPAN shell
perl -MCPAN -e shell install Gtk2::Ex::QuadButton
For more information on module installation, please visit the detailed CPAN module installation guide.