Boost.UI
User Interface Boost library
Classes | Public Types | Public Member Functions | List of all members
boost::ui::menu Class Reference

Menu (list of commands) class. More...

Classes

class  item
 Menu item. More...
 

Public Types

typedef void * native_handle_type
 Implementation-defined menu type.
 

Public Member Functions

 menu (const uistring &text)
 Constructs menu with associated text label with mnemonics. More...
 
void popup (widget &w)
 Popups context menu at current mouse postion related to widget w. More...
 
menuappend (const item &i)
 Appends menu item as subitem.
 
menuoperator<< (const item &i)
 Appends menu item as subitem.
 
menuappend (const menu &i)
 Appends menu as subitem.
 
menuoperator<< (const menu &i)
 Appends menu as subitem.
 
menuappend (const separator &i)
 Appends separator.
 
menuoperator<< (const separator &i)
 Appends separator.
 
native_handle_type native_handle ()
 Returns the implementation-defined underlying menu handle.
 
const native_handle_type native_handle () const
 Returns the implementation-defined underlying menu handle.
 

Detailed Description

Menu (list of commands) class.

See also
Menu (Wikipedia)

Constructor & Destructor Documentation

◆ menu()

boost::ui::menu::menu ( const uistring text)

Constructs menu with associated text label with mnemonics.

See also
Mnemonics (Wikipedia)

Member Function Documentation

◆ popup()

void boost::ui::menu::popup ( widget w)

Popups context menu at current mouse postion related to widget w.

See also
Context menu (Wikipedia)
Modal window (Wikipedia)

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