![]() |

A Gtk::OptionMenu is a widget that allows the user to choose from a list of valid choices. The Gtk::OptionMenu displays the selected choice. When activated the GtkOptionMenu displays a popup Gtk::Menu which allows the user to make a new choice.
Public Member Functions | ||||
| int | get_history () const | |||
| Retrieves the index of the currently selected menu item. | ||||
| const Menu* | get_menu () const | |||
| Menu* | get_menu () | |||
| const GtkOptionMenu* | gobj () const | |||
| Provides access to the underlying C GtkObject. | ||||
| GtkOptionMenu* | gobj () | |||
| Provides access to the underlying C GtkObject. | ||||
| OptionMenu () | ||||
| void | remove_menu () | |||
| void | set_history (guint index) | |||
| void | set_menu (Menu& menu) | |||
| Glib::SignalProxy0<void> | signal_changed () | |||
| ||||
| virtual | ~OptionMenu () | |||
Related Functions | ||||
| (Note that these are not member functions.) | ||||
| Gtk::OptionMenu* | wrap (GtkOptionMenu* object, bool take_copy=false) | |||
| ||||
| virtual Gtk::OptionMenu::~OptionMenu | ( | ) | [virtual] |
| Gtk::OptionMenu::OptionMenu | ( | ) |
| int Gtk::OptionMenu::get_history | ( | ) | const |
Retrieves the index of the currently selected menu item.
The menu items are numbered from top to bottom, starting with 0.
| const Menu* Gtk::OptionMenu::get_menu | ( | ) | const |
| Menu* Gtk::OptionMenu::get_menu | ( | ) |
| const GtkOptionMenu* Gtk::OptionMenu::gobj | ( | ) | const [inline] |
| GtkOptionMenu* Gtk::OptionMenu::gobj | ( | ) | [inline] |
| void Gtk::OptionMenu::remove_menu | ( | ) |
| void Gtk::OptionMenu::set_history | ( | guint | index | ) |
| void Gtk::OptionMenu::set_menu | ( | Menu& | menu | ) |
| Glib::SignalProxy0< void > Gtk::OptionMenu::signal_changed | ( | ) |
void changed()
| Gtk::OptionMenu* wrap | ( | GtkOptionMenu * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| object | The C instance |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |