Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::drawerbase::menu::menu_item_type::item_proxy Class Reference

This class is used as parameter of menu event function. More...

Public Member Functions

 item_proxy (std::size_t pos,::nana::menu *)
 
item_proxyenabled (bool)
 
bool enabled () const
 
item_proxycheck_style (checks)
 
item_proxychecked (bool)
 
bool checked () const
 
item_proxytext (std::string title_utf8)
 
std::string text () const
 
std::size_t index () const
 

Detailed Description

This class is used as parameter of menu event function.

Examples:
example_menu.cpp, menu_debug.cpp, menu_popuper.cpp, and notepad.cpp.

Constructor & Destructor Documentation

nana::drawerbase::menu::menu_item_type::item_proxy::item_proxy ( std::size_t  pos,
::nana::menu  
)

Member Function Documentation

menu_item_type::item_proxy & nana::drawerbase::menu::menu_item_type::item_proxy::check_style ( checks  style)
menu_item_type::item_proxy & nana::drawerbase::menu::menu_item_type::item_proxy::checked ( bool  ck)
Examples:
notepad.cpp.
bool nana::drawerbase::menu::menu_item_type::item_proxy::checked ( ) const
menu_item_type::item_proxy & nana::drawerbase::menu::menu_item_type::item_proxy::enabled ( bool  v)
bool nana::drawerbase::menu::menu_item_type::item_proxy::enabled ( ) const
std::size_t nana::drawerbase::menu::menu_item_type::item_proxy::index ( ) const
menu_item_type::item_proxy & nana::drawerbase::menu::menu_item_type::item_proxy::text ( std::string  title_utf8)
std::string nana::drawerbase::menu::menu_item_type::item_proxy::text ( ) const