Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class item

boost::ui::menu::item — Menu item.

Synopsis

// In header: <boost/ui/menu.hpp>



// Menu item.

class item : private noncopyable {
public:
  // types
  typedef void * native_handle_type;  // Implementation-defined menu item type. 

  // construct/copy/destruct
  item(const uistring &);

  // public member functions
  template<typename F, class ... Args> item & on_press(F &&, Args &&...);

  // private member functions
  void on_press_raw(const boost::function< void()> &);
};

Description

item public construct/copy/destruct

  1. item(const uistring & text);
    Constructs menu item with associated text label with mnemonics.

    See Also:

    Mnemonics (Wikipedia)

item public member functions

  1. template<typename F, class ... Args> item & on_press(F && f, Args &&... args);
    Connects menu item press handler.

item private member functions

  1. void on_press_raw(const boost::function< void()> & handler);

PrevUpHomeNext