Gtk2::I...ew::Nav(3)

πŸ“¦
version 0.05 Β· 2 versions
, in fedora 43

πŸ’… 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::AtkImplementorIface
  • Gtk2::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 🍼

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. 🫢

that's it. that's the method. release the grab, bestie. πŸ•ŠοΈ

  • $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 : default undef : 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 (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