Gtk2::I...MenuItem(3)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to Gtk2::I...MenuItem(3) β€” the User Contributed Perl Documentation page for Gtk2::ImageMenuItem, which is literally just a wrapper for GtkImageMenuItem. that's it. that's the whole name. no cap. πŸŽ€


🌈 HIERARCHY 🌈

the family tree, and yes she comes from a long line of iconics:

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::Container
                    +----Gtk2::Bin
                         +----Gtk2::Item
                              +----Gtk2::MenuItem
                                   +----Gtk2::ImageMenuItem

like look at that lineage. main character energy from the very top. πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

she's got range, she implements:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::Activatable

✨ METHODS ✨

πŸ’… widget = Gtk2::ImageMenuItem->new ($label=undef)

  • $label (string)

πŸ’… widget = Gtk2::ImageMenuItem->new_from_stock ($stock_id, $accel_group=undef)

  • $stock_id (string)
  • $accel_group (Gtk2::AccelGroup or undef)

πŸ’… widget = Gtk2::ImageMenuItem->new_with_label ($label=undef)

  • $label (string)

πŸ’… widget = Gtk2::ImageMenuItem->new_with_mnemonic ($label=undef)

  • $label (string)

πŸ’… $image_menu_item->set_accel_group ($accel_group)

  • $accel_group (Gtk2::AccelGroup)
Since: gtk+ 2.16

πŸ’… boolean = $image_menu_item->get_always_show_image

Since: gtk+ 2.16

πŸ’… $image_menu_item->set_always_show_image ($always_show)

  • $always_show (boolean)
Since: gtk+ 2.16

πŸ’… widget = $image_menu_item->get_image

πŸ’… $image_menu_item->set_image ($image)

  • $image (Gtk2::Widget)

πŸ’… boolean = $image_menu_item->get_use_stock

Since: gtk+ 2.16

πŸ’… $image_menu_item->set_use_stock ($use_stock)

  • $use_stock (boolean)
Since: gtk+ 2.16

🌸 PROPERTIES 🌸

  • 'accel-group' (Gtk2::AccelGroup : default undef : writable / private / static-nick / static-blurb) β€” the Accel Group to use for stock accelerator keys. πŸ”₯
  • 'always-show-image' (boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β€” whether the image will always be shown. iconic behaviour tbh. πŸ’…
  • 'image' (Gtk2::Widget : default undef : readable / writable / private / static-nick / static-blurb) β€” child widget to appear next to the menu text. πŸŽ€
  • 'use-stock' (boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β€” whether to use the label text to create a stock menu item. ✨

🫢 SEE ALSO 🫢

the whole friend group, go say hi:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Bin
  • Gtk2::Item
  • Gtk2::MenuItem

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


and that's the whole page bestie, you ate it up πŸ’–

this was perl v5.42.0, dated 2025-07-25, straight from Gtk2::I...MenuItem(3) β€” love that for us, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from