Jeffrey Ratcliffe > Gtk2-ImageView-0.04 > ImageNav.xs

Download:
Gtk2-ImageView-0.04.tar.gz

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: Gtk2-ImageView-0.05

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.

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.

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.

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.