clan::ToolBarItem Class Reference

Toolbar menu item. More...

#include <toolbar_item.h>

Public Member Functions

Construction
 ToolBarItem ()
 Construct a null instance. More...
 
 ToolBarItem (int id)
 Constructs a ToolBarItem. More...
 
 ToolBarItem (const std::shared_ptr< ToolBarItem_Impl > &impl)
 Constructs a ToolBarItem. More...
 
virtual ~ToolBarItem ()
 
Attributes
std::string get_text () const
 Get Text. More...
 
int get_id () const
 Get Id. More...
 
bool is_null () const
 Returns true if this object is invalid. More...
 
void throw_if_null () const
 Throw an exception if this object is invalid. More...
 
bool is_disabled () const
 Is Disabled. More...
 
bool is_toggling () const
 Is Toggling. More...
 
bool is_pressed () const
 Is Pressed. More...
 
Operations
void set_id (int id)
 Set id. More...
 
void set_text (const std::string &text)
 Set text. More...
 
void set_icon (const Sprite &image, int frame=0)
 Set icon. More...
 
void set_toggling (bool toggling)
 Controls if buttons stay down when pressed. More...
 
void set_pressed (bool value)
 Set pressed. More...
 

Implementation

class ToolBar
 
class ToolBar_Impl
 

Detailed Description

Toolbar menu item.


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