ClanLib
2.3.7
|
Popup menu item. More...
#include <popupmenu_item.h>
Public Member Functions | |
Construction | |
CL_PopupMenuItem () | |
Construct a null instance. More... | |
CL_PopupMenuItem (int id) | |
Constructs a PopupMenuItem. More... | |
CL_PopupMenuItem (const CL_SharedPtr< CL_PopupMenuItem_Impl > &impl) | |
Constructs a PopupMenuItem. More... | |
virtual | ~CL_PopupMenuItem () |
Attributes | |
CL_StringRef | get_text () const |
Get Text. More... | |
CL_StringRef | 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... | |
CL_PopupMenu | get_submenu () |
Get Submenu. More... | |
bool | is_checkable () const |
Is Checkable. More... | |
bool | is_checked () const |
Is Checked. More... | |
CL_PixelBuffer | get_icon () const |
Get Icon. More... | |
Events | |
CL_Callback_v0 & | func_clicked () |
Func clicked. More... | |
Operations | |
void | set_id (int id) |
Set id. More... | |
void | set_text (const CL_StringRef &text) |
Set text. More... | |
void | set_icon (const CL_PixelBuffer &image) |
Set icon. More... | |
void | set_submenu (CL_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 CL_StringRef &str) |
Set accelerator text. More... | |
void | set_checkable (bool checkable) |
Set checkable. More... | |
void | set_checked (bool checked) |
Set checked. More... | |
Popup menu item.
CL_PopupMenuItem::CL_PopupMenuItem | ( | ) |
Construct a null instance.
CL_PopupMenuItem::CL_PopupMenuItem | ( | int | id) |
Constructs a PopupMenuItem.
id | = value |
CL_PopupMenuItem::CL_PopupMenuItem | ( | const CL_SharedPtr< CL_PopupMenuItem_Impl > & | impl) |
Constructs a PopupMenuItem.
CL_PopupMenuItem_Impl | = Shared Ptr |
|
virtual |
CL_Callback_v0& CL_PopupMenuItem::func_clicked | ( | ) |
Func clicked.
CL_StringRef CL_PopupMenuItem::get_accelerator_text | ( | ) | const |
Get Accelerator text.
CL_PixelBuffer CL_PopupMenuItem::get_icon | ( | ) | const |
Get Icon.
int CL_PopupMenuItem::get_id | ( | ) | const |
Get Id.
CL_PopupMenu CL_PopupMenuItem::get_submenu | ( | ) |
Get Submenu.
CL_StringRef CL_PopupMenuItem::get_text | ( | ) | const |
Get Text.
bool CL_PopupMenuItem::has_submenu | ( | ) | const |
Has submenu.
bool CL_PopupMenuItem::is_checkable | ( | ) | const |
Is Checkable.
bool CL_PopupMenuItem::is_checked | ( | ) | const |
Is Checked.
bool CL_PopupMenuItem::is_disabled | ( | ) | const |
Is Disabled.
|
inline |
Returns true if this object is invalid.
bool CL_PopupMenuItem::is_separator | ( | ) | const |
Is Separator.
void CL_PopupMenuItem::set_accelerator_text | ( | const CL_StringRef & | str) |
Set accelerator text.
str | = String Ref |
void CL_PopupMenuItem::set_checkable | ( | bool | checkable) |
Set checkable.
checkable | = bool |
void CL_PopupMenuItem::set_checked | ( | bool | checked) |
Set checked.
checked | = bool |
void CL_PopupMenuItem::set_enabled | ( | bool | enabled) |
Set enabled.
enabled | = bool |
void CL_PopupMenuItem::set_icon | ( | const CL_PixelBuffer & | image) |
Set icon.
image | = Pixel Buffer |
void CL_PopupMenuItem::set_id | ( | int | id) |
Set id.
id | = value |
void CL_PopupMenuItem::set_separator | ( | bool | separator) |
Set separator.
separator | = bool |
void CL_PopupMenuItem::set_submenu | ( | CL_PopupMenu & | submenu) |
Set submenu.
submenu | = Popup Menu |
void CL_PopupMenuItem::set_text | ( | const CL_StringRef & | text) |
Set text.
text | = String Ref |
void CL_PopupMenuItem::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.