Class Index Cross Index Namespace Index

Class Gtk::MenuShell


Contained in: Gtk
Derived from: Gtk::Container
Derived by: Gtk::Menu Gtk::MenuBar

#include <gtk--/menushell.h>


public function member index:

void accelerate(Window&);
signal void activate_current(gboolean);
void activate_item(MenuItem& menu_item, bool force_deactivate);
void append(MenuItem& menu_item);
signal void cancel();
emitable signal void deactivate();
void deselect();
AccelGroup* get_accel_group() const;
GtkMenuShell* gtkobj();
const GtkMenuShell* gtkobj() const;
void insert(MenuItem& menu_item, gint position);
static bool isA(Object* object);
MenuList& items();
const MenuList& items() const;
signal void move_current(GtkMenuDirectionType);
void prepend(MenuItem& menu_item);
void select_item(MenuItem& menu_item);
signal void selection_done();
virtual ~MenuShell();
 

protected function member index:

MenuShell(void);
virtual void activate_current_impl(gboolean p0);
virtual void cancel_impl();
virtual void deactivate_impl();
virtual gint event_impl(GdkEvent*);
virtual void move_current_impl(GtkMenuDirectionType p0);
virtual void realize_impl();
virtual void selection_done_impl();
 

Description:



Function Member Descriptions:

Gtk::MenuShell::accelerate - assign the menu to a window

void accelerate(Window&);
Use this function to assign a popup menu to act as keyboard accelerators for a window. A popup menu is one which acts without a parent.

This function has no gtk+ equivelent. In gtk+, you create an accelerator group and then create items with the group then later assign the group to the window. To automate this and save passing arround the group, assignment of accelerators is held off until you assign the menu to its window.

It is not necessary to call this on menubars as they perform this automatically.



Gtk::MenuShell::append - (deprecated) append a MenuItem

void append(MenuItem& menu_item);

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

GtkMenuShell* gtkobj();

Gtk::MenuShell::insert - (deprecated) insert a MenuItem

void insert(MenuItem& menu_item, gint position);

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

static bool isA(Object* object);

Gtk::MenuShell::prepend - (deprecated) prepend a MenuItem

void prepend(MenuItem& menu_item);


Variable Member Descriptions: