Gtk2::IconInfo(3)
π Gtk2::IconInfo β the manual page, but make it cute
okay bestie, welcome to Gtk2::IconInfo(3) πΈ this one lives in the User Contributed Perl Documentation section of the manual, and it is exactly what it sounds like: a lil wrapper for GtkIconInfo β¨
π NAME π
Gtk2::IconInfo β a wrapper for GtkIconInfo, periodt π
π¦ HIERARCHY π¦
it's giving descended-from-Glib energy:
Glib::Boxed
+----Gtk2::IconInfo
so yeah, Gtk2::IconInfo is a child of Glib::Boxed, iykyk π«Ά
β¨ METHODS β¨
π iconinfo = Gtk2::IconInfo->new_for_pixbuf ($icon_theme, $pixbuf)
constructing a fresh one, bestie π§ here's what you gotta hand over:
$icon_theme(Gtk2::IconTheme) β the icon theme, obviously$pixbuf(Gtk2::Gdk::Pixbuf) β and the pixbuf, of course
Since: gtk+ 2.14 β (yes it's been iconic for a while)
π list = $icon_info->get_attach_points
hands you back the attach points as an interleaved list of x and y coordinates π₯ so like, x, y, x, y, x, y β you get the vibe.
π integer = $icon_info->get_base_size
just the base size, as an integer, no drama π
π pixbuf or undef = $icon_info->get_builtin_pixbuf
gives you a pixbuf, or undef if there isn't one π«Ά
π string or undef = $icon_info->get_display_name
a string, or undef β display name tingz β¨
π rectangle = $icon_info->get_embedded_rect
returns a rectangle, that's the whole sentence, she's simple and she knows it π
π string or undef = $icon_info->get_filename
string or undef, the filename if it's there π
π pixbuf or undef = $icon_info->load_icon
the main character method fr fr, she loads the icon and gives you a pixbuf or undef π
π heads up: may croak with aGlib::Errorin$@on failure. so like, wrap her, bestie.
π $icon_info->set_raw_coordinates ($raw_coordinates)
sets the raw coordinates. one arg:
$raw_coordinates(boolean) β true/false vibes only π
π SEE ALSO π
go read these next, they're the friend group:
Gtk2Glib::Boxed
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team π
This software is licensed under the LGPL. See Gtk2 for a full notice. no cap.
aaaand that's the whole page, bestie π¦ this was Gtk2::IconInfo(3) from perl v5.42.0, dated 2025-07-25 β slay, mwah, go forth and wrap your icons π
πβ¨
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms