Gtk2::IconInfo(3)

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

πŸ’– 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 a Glib::Error in $@ 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:

  • Gtk2
  • Glib::Boxed

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