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

Public Member Functions

 item_proxy (::nana::toolbar *, std::size_t pos)
 
bool enable () const
 
item_proxyenable (bool enable_state)
 
item_proxytooltype (tool_type type)
 Sets the tool style. More...
 
bool istoggle () const
 Returns true if the tool style is toggle. More...
 
bool toggle () const
 Gets the tool toggle state (only if tool style is toggle). More...
 
item_proxytoggle (bool toggle_state)
 Sets the tool toggle state (only if tool style is toggle). More...
 
std::string toggle_group () const
 Returns the toggle group associated with the tool (only if tool style is toggle). More...
 
item_proxytoggle_group (const ::std::string &group)
 Adds the tool to a toggle group (only if tool style is toggle). More...
 
item_proxytextout (bool show)
 Show/Hide the text inside the button. More...
 

Constructor & Destructor Documentation

nana::drawerbase::toolbar::item_proxy::item_proxy ( ::nana::toolbar t,
std::size_t  pos 
)

Member Function Documentation

bool nana::drawerbase::toolbar::item_proxy::enable ( ) const
item_proxy & nana::drawerbase::toolbar::item_proxy::enable ( bool  enable_state)
bool nana::drawerbase::toolbar::item_proxy::istoggle ( ) const

Returns true if the tool style is toggle.

item_proxy & nana::drawerbase::toolbar::item_proxy::textout ( bool  show)

Show/Hide the text inside the button.

bool nana::drawerbase::toolbar::item_proxy::toggle ( ) const

Gets the tool toggle state (only if tool style is toggle).

item_proxy & nana::drawerbase::toolbar::item_proxy::toggle ( bool  toggle_state)

Sets the tool toggle state (only if tool style is toggle).

std::string nana::drawerbase::toolbar::item_proxy::toggle_group ( ) const

Returns the toggle group associated with the tool (only if tool style is toggle).

item_proxy & nana::drawerbase::toolbar::item_proxy::toggle_group ( const ::std::string group)

Adds the tool to a toggle group (only if tool style is toggle).

item_proxy & nana::drawerbase::toolbar::item_proxy::tooltype ( tool_type  type)

Sets the tool style.