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

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

✨ Gtk2::ImageView::Zoom ✨

okay bestie, gather round, because we're talking about Gtk2::ImageView::Zoom from the Gtk2::ImageView family β€” it's the module that handles zoom factors, and it's lowkey iconic πŸ’…

(also, hi, this is the Gtk2::ImageView::Zoom(3) manpage, you're in the right place 🫢)


🌸 DESCRIPTION 🌸

So here's the tea: Gtk2::ImageView doesn't just zoom to any random number you feel like β€” no ma'am. It uses a discrete amount of zoom factors to figure out which zoom to set. Very curated. Very intentional. ✨

And with these functions, you can:

  • retrieve info about a zoom factor, and
  • manipulate a zoom factor.

That's it, that's the whole vibe. Let's get into the methods πŸ‘‘


πŸŽ€ METHODS πŸŽ€

  • double = Gtk2::ImageView::Zoom->clamp_zoom ($zoom)
    • $zoom (double)

Returns the zoom factor clamped to the minimum and maximum allowed values. like, it's not gonna let your zoom run wild and free β€” it keeps it in its lane 🚧

  • double = Gtk2::ImageView::Zoom->get_max_zoom

Returns the maximum allowed zoom factor. the ceiling. the limit. the "no further" πŸ’€

  • double = Gtk2::ImageView::Zoom->get_min_zoom

Returns the minimum allowed zoom factor. the floor. the basement. the "you can't get smaller than this" 🧚

  • double = Gtk2::ImageView::Zoom->get_zoom_in ($zoom)
    • $zoom (double)

Returns the zoom factor that is one step larger than the supplied zoom factor. so you hand it a zoom, it hands you back the next zoom up. glow up, but make it numeric ⬆️

  • double = Gtk2::ImageView::Zoom->get_zoom_out ($zoom)
    • $zoom (double)

Returns the zoom factor that is one step smaller than the supplied zoom factor. same deal, opposite direction. shrink era ⬇️


πŸ¦‹ SEE ALSO πŸ¦‹

  • Gtk2::ImageView

(go read that one too, it's the parent vibe fr fr πŸ’–)


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 🫢 no cap, every flag and every fact made it in, we just made it cute. This lil masterpiece came from perl v5.42.0, dated 2025-07-25 β€” so if you're reading it, that's the energy you're getting πŸ’…βœ¨

πŸ“¦ where this page comes from