Gtk2::I...ew::Zoom(3)
β¨ 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 π
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
- 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