clan::PopupMenuItem Class Reference

Popup menu item. More...

#include <popupmenu_item.h>

Public Member Functions

Construction
 PopupMenuItem ()
 Construct a null instance. More...
 
 PopupMenuItem (int id)
 Constructs a PopupMenuItem. More...
 
 PopupMenuItem (const std::shared_ptr< PopupMenuItem_Impl > &impl)
 Constructs a PopupMenuItem. More...
 
virtual ~PopupMenuItem ()
 
Attributes
std::string get_text () const
 Get Text. More...
 
std::string get_accelerator_text () const
 Get Accelerator 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 has_submenu () const
 Has submenu. More...
 
bool is_disabled () const
 Is Disabled. More...
 
bool is_separator () const
 Is Separator. More...
 
PopupMenu get_submenu ()
 Get Submenu. More...
 
bool is_checkable () const
 Is Checkable. More...
 
bool is_checked () const
 Is Checked. More...
 
PixelBuffer get_icon () const
 Get Icon. More...
 
Events
Callback_v0func_clicked ()
 Func clicked. More...
 
Operations
void set_id (int id)
 Set id. More...
 
void set_text (const std::string &text)
 Set text. More...
 
void set_icon (const PixelBuffer &image)
 Set icon. More...
 
void set_submenu (PopupMenu &submenu)
 Set submenu. More...
 
void set_enabled (bool enabled)
 Set enabled. More...
 
void set_separator (bool separator)
 Set separator. More...
 
void set_accelerator_text (const std::string &str)
 Set accelerator text. More...
 
void set_checkable (bool checkable)
 Set checkable. More...
 
void set_checked (bool checked)
 Set checked. More...
 

Detailed Description

Popup menu item.


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