JG ROOT Tools libraries
version 5.0 - august 2014
|
#include <RGItem.hh>
Public Member Functions | |
Constructors, affectation, destructor | |
RGItem (const string &s, void *ptr=NULL, const int n=0, const TGPicture *pict=NULL) | |
RGItem (const GItem &item) | |
RGItem (const RGItem &original) | |
RGItem (GItem *p, const bool udat=true) | |
virtual | ~RGItem () |
RGItem & | operator= (const RGItem &original) |
Specific functions | |
void | SetIcon (const TGPicture *icon) |
void | SetIcon (const string &icon_name) |
const TGPicture * | GetIcon () const |
void | SetInfoPtr (void *ptr) |
void * | GetInfoPtr () const |
Overloaded functions | |
bool | operator== (const RGItem &item) |
Protected Attributes | |
const TGPicture * | icon_ptr |
Pointer to the ROOT icon picture. | |
void * | info_ptr |
Pointer for additional information. | |
Private Member Functions | |
GObject (RGItem) | |
This class is derived from GItem, for items that require addidional display information (icon,...)
An additional information pointer is provided, for exemple to store the pointer to ROOT GUI objects referring to this item (this is the case in RGItemTreeList widget).
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Destructor.
|
private |
Macro from GCpp library that defines the following functions:
|
inline |
Set the icon associated to the item.
icon | pointer to ROOT icon picture |
References icon_ptr.
|
inline |
Set the icon associated to the item.
icon_name | name of the ROOT icon picture |
References icon_ptr.
|
inline |
Return the picture pointer of the item icon.
References icon_ptr.
Referenced by RGItemTreeSelector::RecreateTreeSubDisplay().
|
inline |
|
inline |
Return the additionnal information pointer.
References info_ptr.
|
inline |
Comparison operator: it compares the GItem base class.
item | element to compare |