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

Definition at line 60 of file TMenuItem.hxx.

Public Member Functions

 TCheckedMenuItem ()=default
 Default constructor. More...
 
 TCheckedMenuItem (const std::string &name, const std::string &title, bool checked=false)
 Create checked menu item. More...
 
virtual ~TCheckedMenuItem ()
 virtual destructor need for vtable, used when vector of TMenuItem* is stored More...
 
bool IsChecked () const
 
void SetChecked (bool on=true)
 Set checked state for the item, default is none. More...
 
- Public Member Functions inherited from ROOT::Experimental::Detail::TMenuItem
 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

bool fChecked = false
 -1 not exists, 0 - off, 1 - on More...
 
- Protected Attributes inherited from ROOT::Experimental::Detail::TMenuItem
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::TCheckedMenuItem:
[legend]

Constructor & Destructor Documentation

◆ TCheckedMenuItem() [1/2]

ROOT::Experimental::Detail::TCheckedMenuItem::TCheckedMenuItem ( )
default

Default constructor.

◆ TCheckedMenuItem() [2/2]

ROOT::Experimental::Detail::TCheckedMenuItem::TCheckedMenuItem ( const std::string &  name,
const std::string &  title,
bool  checked = false 
)
inline

Create checked menu item.

Definition at line 68 of file TMenuItem.hxx.

◆ ~TCheckedMenuItem()

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

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

Definition at line 74 of file TMenuItem.hxx.

Member Function Documentation

◆ IsChecked()

bool ROOT::Experimental::Detail::TCheckedMenuItem::IsChecked ( ) const
inline

Definition at line 79 of file TMenuItem.hxx.

◆ SetChecked()

void ROOT::Experimental::Detail::TCheckedMenuItem::SetChecked ( bool  on = true)
inline

Set checked state for the item, default is none.

Definition at line 77 of file TMenuItem.hxx.

Member Data Documentation

◆ fChecked

bool ROOT::Experimental::Detail::TCheckedMenuItem::fChecked = false
protected

-1 not exists, 0 - off, 1 - on

Definition at line 62 of file TMenuItem.hxx.

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

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