phoenix::CheckItem

A checkable menu item.

struct CheckItem : Action {
  function<void ()> onToggle;

  bool checked();
  void setChecked(bool checked = true);
  void setText(const string &text);
};

function<void ()> CheckItem::onToggle;

Called when the state of a check item is toggled, eg by clicking it.

bool CheckItem::checked();

Returns true if the check item is currently checked.

void CheckItem::setChecked(bool checked = true);

Modifies the check state of a check item.

void CheckItem::setText(const string &text);

Sets the text of a check item.