1Gtk2::OptionMenu(3)   User Contributed Perl Documentation  Gtk2::OptionMenu(3)
2
3
4

NAME

6       Gtk2::OptionMenu - wrapper for GtkOptionMenu
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::Bin
15                                  +----Gtk2::Button
16                                       +----Gtk2::OptionMenu
17

INTERFACES

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

DEPRECATION WARNING

24       Gtk2::OptionMenu has been marked as deprecated, and should not be used
25       in newly written code.
26
27       You should use Gtk2::ComboBox instead of Gtk2::OptionMenu.
28

METHODS

30   widget = Gtk2::OptionMenu->new
31   integer = $option_menu->get_history
32   $option_menu->set_history ($index)
33       ·   $index (integer)
34
35   widget = $option_menu->get_menu
36   $option_menu->set_menu ($menu)
37       ·   $menu (Gtk2::Widget)
38
39   $option_menu->remove_menu

PROPERTIES

41       'menu' (Gtk2::Menu : default undef : readable / writable / private /
42       static-nick / static-blurb)
43           The menu of options
44

STYLE PROPERTIES

46       'indicator-size' (Gtk2::Requisition : default undef : readable /
47       private / static-nick / static-blurb)
48           Size of dropdown indicator
49
50       'indicator-spacing' (Gtk2::Border : default undef : readable / private
51       / static-nick / static-blurb)
52           Spacing around indicator
53

SIGNALS

55       changed (Gtk2::OptionMenu)
56

SEE ALSO

58       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
59       Gtk2::Container, Gtk2::Bin, Gtk2::Button
60
62       Copyright (C) 2003-2011 by the gtk2-perl team.
63
64       This software is licensed under the LGPL.  See Gtk2 for a full notice.
65
66
67
68perl v5.32.0                      2020-07-28               Gtk2::OptionMenu(3)
Impressum