Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Protected Attributes | List of all members
ROOT::Experimental::Detail::TMenuItem Class Reference

Class contains info for producing menu item on the JS side.

Definition at line 32 of file TMenuItem.hxx.

Public Member Functions

 TMenuItem ()=default
 Default constructor. More...
 
 TMenuItem (const std::string &name, const std::string &title)
 Create menu item with the name and title name used to display item in the object context menu, title shown as hint info for that item. More...
 
virtual ~TMenuItem ()
 virtual destructor need for vtable, used when vector of TMenuItem* is stored More...
 
const std::string & GetExec () const
 Returns execution string for the menu item. More...
 
const std::string & GetName () const
 Returns menu item name. More...
 
void SetExec (const std::string &exec)
 Set execution string with all required arguments, which will be executed when menu item is selected. More...
 

Protected Attributes

std::string fExec
 execute when item is activated More...
 
std::string fName
 name of the menu item More...
 
std::string fTitle
 title of menu item More...
 

#include <ROOT/TMenuItem.hxx>

Inheritance diagram for ROOT::Experimental::Detail::TMenuItem:
[legend]

Constructor & Destructor Documentation

◆ TMenuItem() [1/2]

ROOT::Experimental::Detail::TMenuItem::TMenuItem ( )
default

Default constructor.

◆ TMenuItem() [2/2]

ROOT::Experimental::Detail::TMenuItem::TMenuItem ( const std::string &  name,
const std::string &  title 
)
inline

Create menu item with the name and title name used to display item in the object context menu, title shown as hint info for that item.

Definition at line 44 of file TMenuItem.hxx.

◆ ~TMenuItem()

virtual ROOT::Experimental::Detail::TMenuItem::~TMenuItem ( )
inlinevirtual

virtual destructor need for vtable, used when vector of TMenuItem* is stored

Definition at line 47 of file TMenuItem.hxx.

Member Function Documentation

◆ GetExec()

const std::string& ROOT::Experimental::Detail::TMenuItem::GetExec ( ) const
inline

Returns execution string for the menu item.

Definition at line 57 of file TMenuItem.hxx.

◆ GetName()

const std::string& ROOT::Experimental::Detail::TMenuItem::GetName ( ) const
inline

Returns menu item name.

Definition at line 54 of file TMenuItem.hxx.

◆ SetExec()

void ROOT::Experimental::Detail::TMenuItem::SetExec ( const std::string &  exec)
inline

Set execution string with all required arguments, which will be executed when menu item is selected.

Definition at line 51 of file TMenuItem.hxx.

Member Data Documentation

◆ fExec

std::string ROOT::Experimental::Detail::TMenuItem::fExec
protected

execute when item is activated

Definition at line 36 of file TMenuItem.hxx.

◆ fName

std::string ROOT::Experimental::Detail::TMenuItem::fName
protected

name of the menu item

Definition at line 34 of file TMenuItem.hxx.

◆ fTitle

std::string ROOT::Experimental::Detail::TMenuItem::fTitle
protected

title of menu item

Definition at line 35 of file TMenuItem.hxx.

Libraries for ROOT::Experimental::Detail::TMenuItem:
[legend]

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