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::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.
"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
my $qb = Gtk2::Ex::QuadButton::Scroll->new;
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.
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
The sense of this inverting is the as the
inverted property, so if you set
inverted on a scrollbar then do the same to this QuadButton scroller.
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/.