Ardour  8.7-15-gadf511264b
Gtk::Menu_Helpers::StockMenuElem Class Reference

#include <menu_elems.h>

Inheritance diagram for Gtk::Menu_Helpers::StockMenuElem:
[legend]

Public Member Functions

 StockMenuElem (const Gtk::StockID &stock_id, const CallSlot &slot=CallSlot())
 
 StockMenuElem (const Gtk::StockID &stock_id, const AccelKey &key, const CallSlot &slot=CallSlot())
 
 StockMenuElem (const Gtk::StockID &stock_id, Gtk::Menu &submenu)
 
 StockMenuElem (const Gtk::StockID &stock_id, const AccelKey &key, Gtk::Menu &submenu)
 
- Public Member Functions inherited from Gtk::Menu_Helpers::Element
 Element ()
 
 Element (MenuItem &child)
 
 ~Element ()
 
const Glib::RefPtr< MenuItem > & get_child () const
 

Additional Inherited Members

- Public Types inherited from Gtk::Menu_Helpers::Element
typedef sigc::slot< void > CallSlot
 
- Protected Member Functions inherited from Gtk::Menu_Helpers::Element
void set_child (MenuItem *pChild)
 
void set_accel_key (const AccelKey &accel_key)
 
- Protected Attributes inherited from Gtk::Menu_Helpers::Element
Glib::RefPtr< MenuItemchild_
 

Detailed Description

Definition at line 161 of file tk/ytkmm/ytkmm/gtkmm/menu_elems.h.

Constructor & Destructor Documentation

◆ StockMenuElem() [1/4]

Gtk::Menu_Helpers::StockMenuElem::StockMenuElem ( const Gtk::StockID stock_id,
const CallSlot slot = CallSlot() 
)

Create a non-accelerated MenuItem from a stock item

Parameters
stock_idThe ID of the stock item
slotUse sigc::mem_fun() to specify a signal handler

◆ StockMenuElem() [2/4]

Gtk::Menu_Helpers::StockMenuElem::StockMenuElem ( const Gtk::StockID stock_id,
const AccelKey key,
const CallSlot slot = CallSlot() 
)

Create an accelerated MenuItem from a stock item

Parameters
stock_idThe ID of the stock item
keyThe accelerator key combination
slotUse sigc::mem_fun() to specify a signal handler

◆ StockMenuElem() [3/4]

Gtk::Menu_Helpers::StockMenuElem::StockMenuElem ( const Gtk::StockID stock_id,
Gtk::Menu submenu 
)

Create a non-accelerated MenuItem from a stock item with a submenu

Parameters
stock_idThe ID of the stock item
submenuThe sub menu

◆ StockMenuElem() [4/4]

Gtk::Menu_Helpers::StockMenuElem::StockMenuElem ( const Gtk::StockID stock_id,
const AccelKey key,
Gtk::Menu submenu 
)

Create an accelerated MenuItem from a stock item with a submenu

Parameters
stock_idThe ID of the stock item
keyThe accelerator key combination
submenuThe sub menu

The documentation for this class was generated from the following file: