Logo ROOT   6.21/01
Reference Guide
ROOT::Experimental::RMenuItems Class Reference

List of items for object context menu.

Author
Sergey Linev
Date
2017-06-29
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 151 of file RMenuItem.hxx.

Public Member Functions

void Add (std::unique_ptr< Detail::RMenuItem > &&item)
 
void AddChkMenuItem (const std::string &name, const std::string &title, bool checked, const std::string &toggle)
 
void AddMenuItem (const std::string &name, const std::string &title, const std::string &exec)
 
void PopulateObjectMenu (void *obj, TClass *cl)
 
void SetId (const std::string &id)
 
auto Size () const
 

Protected Attributes

std::string fId
 object identifier More...
 
std::vector< std::unique_ptr< Detail::RMenuItem > > fItems
 list of items in the menu More...
 

#include <ROOT/RMenuItem.hxx>

Member Function Documentation

◆ Add()

void ROOT::Experimental::RMenuItems::Add ( std::unique_ptr< Detail::RMenuItem > &&  item)
inline

Definition at line 160 of file RMenuItem.hxx.

◆ AddChkMenuItem()

void ROOT::Experimental::RMenuItems::AddChkMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked,
const std::string &  toggle 
)
inline

Definition at line 169 of file RMenuItem.hxx.

◆ AddMenuItem()

void ROOT::Experimental::RMenuItems::AddMenuItem ( const std::string &  name,
const std::string &  title,
const std::string &  exec 
)
inline

Definition at line 162 of file RMenuItem.hxx.

◆ PopulateObjectMenu()

void ROOT::Experimental::RMenuItems::PopulateObjectMenu ( void obj,
TClass cl 
)

Definition at line 20 of file RMenuItem.cxx.

◆ SetId()

void ROOT::Experimental::RMenuItems::SetId ( const std::string &  id)
inline

Definition at line 156 of file RMenuItem.hxx.

◆ Size()

auto ROOT::Experimental::RMenuItems::Size ( ) const
inline

Definition at line 158 of file RMenuItem.hxx.

Member Data Documentation

◆ fId

std::string ROOT::Experimental::RMenuItems::fId
protected

object identifier

Definition at line 153 of file RMenuItem.hxx.

◆ fItems

std::vector<std::unique_ptr<Detail::RMenuItem> > ROOT::Experimental::RMenuItems::fItems
protected

list of items in the menu

Definition at line 154 of file RMenuItem.hxx.


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