Gtk2::I...ew::Nav(3)
π Gtk2::ImageView::Nav β the manual page, but make it cute
okay bestie, buckle up β this is the page for Gtk2::ImageView::Nav, and it lives in the User Contributed Perl Documentation corner of your system. It's giving "little popup map that knows where you are" energy and honestly? iconic. πΊοΈβ¨
π HIERARCHY
the family tree, and yes she has main character energy all the way down:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Window
+----Gtk2::ImageView::Nav
like, six generations of ancestors just for a thumbnail window. the way that she's a Gtk2::Window at heart π₯Ή
π§ INTERFACES
she also implements:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
slay, accessible and 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. lowkey genius, highkey useful π
this class is used by Gtk2::ImageView::ScrollWin itself. it is probably not very useful for clients of this library. ngl, that's just what the docs say, don't come for me π
Gtk2::ImageView::Nav has the same keybindings that Gtk2::ImageView has. all keypresses that it receives are passed along to the view. so like, muscle memory carries over, periodt. β¨οΈβ¨
π METHODS
widget = $view->new
returns a new Gtk2::ImageView::Nav for showing thumbnails of the view. the pixbuf is by default undef. brand new baby, no pixbuf yet πΌ
$nav->grab
yes that's the whole method. just grab. she said "I'm taking the mouse and keyboard, thanks" π
pixbuf = $nav->get_pixbuf
returns the downscaled pixbuf of the view's pixbuf that this Gtk2::ImageView::Nav shows, or undef if that pixbuf has not been created yet.
the pixbuf is by default undef. π«Ά
$nav->release
that's it. that's the method. release the grab, bestie. ποΈ
$nav->show_and_grab ($center_x, $center_y)
$center_x(integer)$center_y(integer)
returns the Gtk2::ImageView::Nav centered around the point (center_x, center_y) and grabs mouse and keyboard events. the grab continues until a button release event is received which causes the widget to hide. so like, click, drag, let go, bye bye πβ¨
π PROPERTIES
'view'(Gtk2::ImageView: defaultundef: writable / construct-only) β Image View to navigate. that's the whole thing. she navigates. π§
π¦ SEE ALSO
go read these too, they're all part of the friend group:
Gtk2::ImageView, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Window
π COPYRIGHT
Copyright (C) 2007 by Jeffrey Ratcliffe.
This software is licensed under the GPL-3; see Gtk2::ImageView for a full notice.
and that's the whole page, bestie!! this lil writeup came from the User Contributed Perl Documentation, generated with perl v5.42.0 on 2025-07-25. thanks for reading, ily, go forth and navigate πβ¨π
π¦ where this page comes from
- fedora 43: perl-Gtk2-ImageView 0.05-35.fc43 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms