1Gtk2::ImageMenuItem(3)User Contributed Perl DocumentationGtk2::ImageMenuItem(3)
2
3
4

NAME

6       Gtk2::ImageMenuItem - wrapper for GtkImageMenuItem
7

HIERARCHY

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

INTERFACES

20         Glib::Object::_Unregistered::AtkImplementorIface
21         Gtk2::Buildable
22         Gtk2::Activatable
23

METHODS

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

PROPERTIES

66       'accel-group' (Gtk2::AccelGroup : default undef : writable / private /
67       static-nick / static-blurb)
68           The Accel Group to use for stock accelerator keys
69
70       'always-show-image' (boolean : default false : readable / writable /
71       construct / private / static-nick / static-blurb)
72           Whether the image will always be shown
73
74       'image' (Gtk2::Widget : default undef : readable / writable / private /
75       static-nick / static-blurb)
76           Child widget to appear next to the menu text
77
78       'use-stock' (boolean : default false : readable / writable / construct
79       / private / static-nick / static-blurb)
80           Whether to use the label text to create a stock menu item
81

SEE ALSO

83       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
84       Gtk2::Container, Gtk2::Bin, Gtk2::Item, Gtk2::MenuItem
85
87       Copyright (C) 2003-2011 by the gtk2-perl team.
88
89       This software is licensed under the LGPL.  See Gtk2 for a full notice.
90
91
92
93perl v5.32.1                      2021-01-27            Gtk2::ImageMenuItem(3)
Impressum