Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class menu

boost::ui::menu — Menu (list of commands) class.

Synopsis

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


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

  // member classes/structs/unions

  // 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()> &);
  };

  // construct/copy/destruct
  menu();
  menu(const uistring &);
  ~menu();

  // public member functions
  void popup(widget &);
};

Description

See Also:

Menu (Wikipedia)

menu public construct/copy/destruct

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

    See Also:

    Mnemonics (Wikipedia)

  3. ~menu();

menu public member functions

  1. void popup(widget & w);
    Popups context menu at current mouse postion related to widget w.

    See Also:

    Context menu (Wikipedia)

    See Also:

    Modal window (Wikipedia)


PrevUpHomeNext