1Gtk2::ImageMenuItem(3)User Contributed Perl DocumentationGtk2::ImageMenuItem(3)
2
3
4
6 Gtk2::ImageMenuItem - wrapper for GtkImageMenuItem
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Container
14 +----Gtk2::Bin
15 +----Gtk2::Item
16 +----Gtk2::MenuItem
17 +----Gtk2::ImageMenuItem
18
20 Glib::Object::_Unregistered::AtkImplementorIface
21 Gtk2::Buildable
22 Gtk2::Activatable
23
25 widget = Gtk2::ImageMenuItem->new ($label=undef)
26 · $label (string)
27
28 widget = Gtk2::ImageMenuItem->new_from_stock ($stock_id,
29 $accel_group=undef)
30 · $stock_id (string)
31
32 · $accel_group (Gtk2::AccelGroup or undef)
33
34 widget = Gtk2::ImageMenuItem->new_with_label ($label=undef)
35 · $label (string)
36
37 widget = Gtk2::ImageMenuItem->new_with_mnemonic ($label=undef)
38 · $label (string)
39
40 $image_menu_item->set_accel_group ($accel_group)
41 · $accel_group (Gtk2::AccelGroup)
42
43 Since: gtk+ 2.16
44
45 boolean = $image_menu_item->get_always_show_image
46 Since: gtk+ 2.16
47
48 $image_menu_item->set_always_show_image ($always_show)
49 · $always_show (boolean)
50
51 Since: gtk+ 2.16
52
53 widget = $image_menu_item->get_image
54 $image_menu_item->set_image ($image)
55 · $image (Gtk2::Widget)
56
57 boolean = $image_menu_item->get_use_stock
58 Since: gtk+ 2.16
59
60 $image_menu_item->set_use_stock ($use_stock)
61 · $use_stock (boolean)
62
63 Since: gtk+ 2.16
64
66 'accel-group' (Gtk2::AccelGroup : default undef : writable / private)
67 The Accel Group to use for stock accelerator keys
68
69 'always-show-image' (boolean : default false : readable / writable /
70 construct / private)
71 Whether the image will always be shown
72
73 'image' (Gtk2::Widget : default undef : readable / writable / private)
74 Child widget to appear next to the menu text
75
76 'use-stock' (boolean : default false : readable / writable / construct
77 / private)
78 Whether to use the label text to create a stock menu item
79
81 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
82 Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem
83
85 Copyright (C) 2003-2011 by the gtk2-perl team.
86
87 This software is licensed under the LGPL. See Gtk2 for a full notice.
88
89
90
91perl v5.28.0 2018-07-18 Gtk2::ImageMenuItem(3)