9 #ifndef ROOT7_RObjectDrawable
10 #define ROOT7_RObjectDrawable
17 namespace Experimental {
29 class RObjectDrawable final :
public RDrawable {
31 Internal::RIOShared<TObject> fObj;
37 void CollectShared(Internal::RIOSharedVector_t &vect)
final { vect.emplace_back(&fObj); }
39 std::unique_ptr<RDisplayItem> Display()
const override;
42 RObjectDrawable() : RDrawable(
"tobject") {}
44 RObjectDrawable(
const std::shared_ptr<TObject> &obj,
const std::string &opt) : RDrawable(
"tobject"), fObj(obj), fOpts(opt) {}
47 void PopulateMenu(RMenuItems &) final;
50 void Execute(const std::
string &) final;