9#ifndef ROOT7_Browsable_TObjectElement
10#define ROOT7_Browsable_TObjectElement
18namespace Experimental {
46 virtual std::string
GetMTime()
const {
return ""; }
53 TObjectElement(std::unique_ptr<RHolder> &obj,
const std::string &
name =
"",
bool _hide_childs =
false);
58 std::string
GetName()
const override;
71 std::string
GetTitle()
const override;
77 std::unique_ptr<RHolder>
GetObject()
override;
89 std::unique_ptr<RItem>
CreateItem()
const override;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Basic element of browsable hierarchy.
EActionKind
Possible actions on double-click.
Access to TObject basic properties for RBrowsable.
std::unique_ptr< RHolder > GetObject() override
Return copy of TObject holder - if possible.
bool IsSame(TObject *obj) const
const TClass * GetClass() const
Returns class for contained object.
std::unique_ptr< RHolder > fObject
bool CheckValid() override
Returns true if object is still valid.
bool IsCapable(EActionKind) const override
Check object capability.
static std::unique_ptr< RLevelIter > GetCollectionIter(const TCollection *)
Creates iterator for TCollection object.
virtual ~TObjectElement()=default
void SetObject(TObject *obj)
Constructor with std::unique_ptr<RHolder> as argument.
std::string GetTitle() const override
Title of TObject.
virtual const TObject * CheckObject() const
Check if object still exists.
std::unique_ptr< RLevelIter > GetChildsIter() override
Create iterator for childs elements if any.
virtual Long64_t GetSize() const
bool IsObject(void *) override
Returns true if holding specified object.
void SetName(const std::string &name)
virtual std::string GetMTime() const
EActionKind GetDefaultAction() const override
Provides default action which can be performed with the object.
std::string GetName() const override
Name of TObject.
bool IsFolder() const override
Returns true if object can have child elements.
void SetHideChilds(bool on)
Set flag to hide all potential object childs.
bool IsHideChilds() const
Is flag to hide all potential object childs set.
void ForgetObject() const
Forget object, use when it was deleted behind the scene.
std::unique_ptr< RItem > CreateItem() const override
Create item.
TClass instances represent classes, structs and namespaces in the ROOT type system.
Collection abstract base class.
Mother of all ROOT objects.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.