Gtk2::ImageView::Nav.3pm

Langue: en

Version: 2010-05-02 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Gtk2::ImageView::Nav - Navigation window showing a thumbnailed overview of a Gtk2::ImageView.

HIERARCHY

   Glib::Object
   +----Glib::InitiallyUnowned
        +----Gtk2::Object
             +----Gtk2::Widget
                  +----Gtk2::Container
                       +----Gtk2::Bin
                            +----Gtk2::Window
                                 +----Gtk2::ImageView::Nav
 
 

INTERFACES

   Glib::Object::_Unregistered::AtkImplementorIface
   Gtk2::Buildable
 
 

DESCRIPTION

Gtk2::ImageView::Nav is a popup window that shows a downscaled preview of the pixbuf that Gtk2::ImageView is showing. The user can drag around a rectangle which indicates the current view of the image.

This class is used by Gtk2::ImageView::ScrollWin itself. It is probably not very useful for clients of this library.

Gtk2::ImageView::Nav has the same keybindings that Gtk2::ImageView has. All keypresses that it receives are passed along to the view.

METHODS

widget = $view->new

Creates a new Gtk2::ImageView::Nav for showing thumbnails of the view. The pixbuf is by default NULL.
view : a Gtk2::ImageView.

Returns

a new Gtk2::ImageView::Nav showing the view.

$nav->grab

pixbuf = $nav->get_pixbuf

Returns the downscaled pixbuf of the views pixbuf that this Gtk2::ImageView::Nav shows, or NULL if that pixbuf has not been created yet.
The pixbuf is by default NULL.
nav : a Gtk2::ImageView::Nav.

Returns

the pixbuf in the navigation area this image navigator shows, or NULL if none exist.

$nav->release

$nav->show_and_grab ($center_x, $center_y)

*
$center_x (integer)
*
$center_y (integer)

Show the Gtk2::ImageView::Nav centered around the point (center_x, center_y) and grab mouse and keyboard events. The grab continues until a button release event is received which causes the widget to hide.
nav : a Gtk2::ImageView::Nav.
center_x : x coordinate of center position
center_y : y coordinate of center position

Returns

the pixbuf in the navigation area this image navigator shows, or NULL if none exist.

PROPERTIES

'view' (Gtk2::ImageView : writable / construct-only)
Image View to navigate

SEE ALSO

Gtk2::ImageView, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window Copyright (C) 2007 by Jeffrey Ratcliffe.

This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice.

POD ERRORS

Hey! The above document had some coding errors, which are explained below:
Around line 51:
You forgot a '=back' before '=head3'
Around line 60:
=back without =over
Around line 83:
You forgot a '=back' before '=head3'
Around line 92:
=back without =over
Around line 125:
You forgot a '=back' before '=head3'
Around line 134:
=back without =over