Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Browsable::RItem Class Reference

Representation of single item in the browser.

Definition at line 24 of file RItem.hxx.

Public Member Functions

 RItem ()=default
 
 RItem (const std::string &_name, int _nchilds=0, const std::string &_icon="")
 
virtual ~RItem ()=default
 
virtual bool Compare (const RItem *b, const std::string &) const
 
const std::string & GetIcon () const
 
const std::string & GetName () const
 
const std::string & GetSize () const
 
const std::string & GetTitle () const
 
virtual bool IsFolder () const
 
virtual bool IsHidden () const
 
void SetChecked (bool on=true)
 
void SetExpanded (bool on=true)
 
void SetIcon (const std::string &_icon)
 
void SetName (const std::string &_name)
 
void SetSize (const std::string &_size)
 
void SetSize (Long64_t _size)
 
void SetTitle (const std::string &_title)
 

Protected Attributes

bool checked {false}
 is checked, not yet used
 
bool expanded {false}
 is expanded
 
std::string fsize
 item size
 
std::string icon
 icon associated with item
 
std::string name
 item name
 
int nchilds {0}
 number of childs
 
std::string title
 item title
 

#include <ROOT/Browsable/RItem.hxx>

Inheritance diagram for ROOT::Experimental::Browsable::RItem:
[legend]

Constructor & Destructor Documentation

◆ RItem() [1/2]

ROOT::Experimental::Browsable::RItem::RItem ( )
default

◆ RItem() [2/2]

ROOT::Experimental::Browsable::RItem::RItem ( const std::string &  _name,
int  _nchilds = 0,
const std::string &  _icon = "" 
)
inline

Definition at line 36 of file RItem.hxx.

◆ ~RItem()

virtual ROOT::Experimental::Browsable::RItem::~RItem ( )
virtualdefault

Member Function Documentation

◆ Compare()

virtual bool ROOT::Experimental::Browsable::RItem::Compare ( const RItem b,
const std::string &   
) const
inlinevirtual

Reimplemented in ROOT::Experimental::Browsable::RSysFileItem.

Definition at line 70 of file RItem.hxx.

◆ GetIcon()

const std::string & ROOT::Experimental::Browsable::RItem::GetIcon ( ) const
inline

Definition at line 41 of file RItem.hxx.

◆ GetName()

const std::string & ROOT::Experimental::Browsable::RItem::GetName ( ) const
inline

Definition at line 40 of file RItem.hxx.

◆ GetSize()

const std::string & ROOT::Experimental::Browsable::RItem::GetSize ( ) const
inline

Definition at line 43 of file RItem.hxx.

◆ GetTitle()

const std::string & ROOT::Experimental::Browsable::RItem::GetTitle ( ) const
inline

Definition at line 42 of file RItem.hxx.

◆ IsFolder()

virtual bool ROOT::Experimental::Browsable::RItem::IsFolder ( ) const
inlinevirtual

Reimplemented in ROOT::Experimental::Browsable::RSysFileItem.

Definition at line 44 of file RItem.hxx.

◆ IsHidden()

virtual bool ROOT::Experimental::Browsable::RItem::IsHidden ( ) const
inlinevirtual

Reimplemented in ROOT::Experimental::Browsable::RSysFileItem.

Definition at line 45 of file RItem.hxx.

◆ SetChecked()

void ROOT::Experimental::Browsable::RItem::SetChecked ( bool  on = true)
inline

Definition at line 47 of file RItem.hxx.

◆ SetExpanded()

void ROOT::Experimental::Browsable::RItem::SetExpanded ( bool  on = true)
inline

Definition at line 48 of file RItem.hxx.

◆ SetIcon()

void ROOT::Experimental::Browsable::RItem::SetIcon ( const std::string &  _icon)
inline

Definition at line 52 of file RItem.hxx.

◆ SetName()

void ROOT::Experimental::Browsable::RItem::SetName ( const std::string &  _name)
inline

Definition at line 50 of file RItem.hxx.

◆ SetSize() [1/2]

void ROOT::Experimental::Browsable::RItem::SetSize ( const std::string &  _size)
inline

Definition at line 53 of file RItem.hxx.

◆ SetSize() [2/2]

void ROOT::Experimental::Browsable::RItem::SetSize ( Long64_t  _size)
inline

Definition at line 55 of file RItem.hxx.

◆ SetTitle()

void ROOT::Experimental::Browsable::RItem::SetTitle ( const std::string &  _title)
inline

Definition at line 51 of file RItem.hxx.

Member Data Documentation

◆ checked

bool ROOT::Experimental::Browsable::RItem::checked {false}
protected

is checked, not yet used

Definition at line 31 of file RItem.hxx.

◆ expanded

bool ROOT::Experimental::Browsable::RItem::expanded {false}
protected

is expanded

Definition at line 32 of file RItem.hxx.

◆ fsize

std::string ROOT::Experimental::Browsable::RItem::fsize
protected

item size

Definition at line 30 of file RItem.hxx.

◆ icon

std::string ROOT::Experimental::Browsable::RItem::icon
protected

icon associated with item

Definition at line 28 of file RItem.hxx.

◆ name

std::string ROOT::Experimental::Browsable::RItem::name
protected

item name

Definition at line 26 of file RItem.hxx.

◆ nchilds

int ROOT::Experimental::Browsable::RItem::nchilds {0}
protected

number of childs

Definition at line 27 of file RItem.hxx.

◆ title

std::string ROOT::Experimental::Browsable::RItem::title
protected

item title

Definition at line 29 of file RItem.hxx.

Libraries for ROOT::Experimental::Browsable::RItem:

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