Class Index Cross Index Namespace Index

Class Gtk::OptionMenu

OptionMenu
Contained in: Gtk
Derived from: Gtk::Button
Derived by: none

#include <gtk--/optionmenu.h>


public function member index:

OptionMenu();
Menu* get_menu() const;
GtkOptionMenu* gtkobj();
const GtkOptionMenu* gtkobj() const;
static bool isA(Object* object);
void remove_menu();
void set_history(guint index);
void set_menu(Menu& menu);
void set_menu(Menu* menu);
virtual ~OptionMenu();
 

Description:

This widget is a container for a single level (i.e. no sub menus) menu. It effectively creates a multiple choice widget, with the current choice displayed.


Function Member Descriptions:

Gtk::OptionMenu::gtkobj - Returns the underlaying gtk+ object.

GtkOptionMenu* gtkobj();

Gtk::OptionMenu::isA - Returns true if object is this type.

static bool isA(Object* object);

Gtk::OptionMenu::set_menu - Give the widget a menu to controll.

void set_menu(Menu& menu);
This effectively "packs" a menu into the widget. The first item in the menu is displayed.