phoenix::Item
A menu item.
struct Item : Action {
function<void ()> onActivate;
void setImage(const image &image);
void setText(const string &text);
};
function<void ()> Item::onActivate;
Called when a menu item is clicked.
void Item::setImage(const image &image);
Sets an icon to be displayed to the left of the menu item. The image is automatically resized to fit in the menu.
Use setImage(image()) to remove the icon from the menu.
void Item::setText(const string &text);
Sets the text of a menu item.