Gtk2::I...MenuItem(3)
π 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::AtkImplementorIfaceGtk2::BuildableGtk2::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::AccelGroupor 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:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BinGtk2::ItemGtk2::MenuItem
π COPYRIGHT π
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
- 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