29 SetObjectID(prefix + std::to_string(GetIndex()) +
"_" + GetObjectID());
38 return std::to_string(hash);
void SetObjectID(const std::string &id)
static std::string ObjectIDFromPtr(const void *ptr)
Construct fillid using pointer value.
void SetObjectIDAsPtr(const void *ptr)
Assign id using arbitrary pointer value Typically drawable pointer should be used here.
virtual void BuildFullId(const std::string &prefix)
Build full id, including prefix and object index.
Base class for drawable entities: objects that can be painted on a RPad.
RAttrMap fAttr
attributes values
std::string fCssClass
user defined drawable class, can later go inside map
std::string fId
optional object identifier, may be used in CSS as well
RIndirectDisplayItem()=default
UInt_t Hash(ECaseCompare cmp=kExact) const
Return hash value.