10#define ROOT7_RMenuItem
19namespace Experimental {
107 const std::string &dflt =
"")
154 std::vector<std::unique_ptr<Detail::RMenuItem>>
fItems;
160 void Add(std::unique_ptr<Detail::RMenuItem> &&item) {
fItems.emplace_back(std::move(item)); }
162 void AddMenuItem(
const std::string &
name,
const std::string &title,
const std::string &exec)
164 auto item = std::make_unique<Detail::RMenuItem>(
name, title);
166 Add(std::move(item));
169 void AddChkMenuItem(
const std::string &
name,
const std::string &title,
bool checked,
const std::string &toggle)
171 auto item = std::make_unique<Detail::RCheckedMenuItem>(
name, title, checked);
172 item->SetExec(toggle);
173 Add(std::move(item));
TClass instances represent classes, structs and namespaces in the ROOT type system.