34#if defined(__GNUC__) && (__GNUC__ >= 5 || (__GNUC__ >= 4 && ((__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ >= 1) || (__GNUC_MINOR__ >= 3)))) && !__INTEL_COMPILER
35#pragma GCC diagnostic ignored "-Wstrict-aliasing"
131 menuitem->
SetCall(
nullptr,
"");
156 cmd.
Form(
"((TContextMenu *)0x%zx)->Execute((TObject *)0x%zx,"
157 "(TMethod *)0x%zx,\"\");",
158 (
size_t)
this,(
size_t)
object,(
size_t)method);
169 cmd.
Form(
"((TContextMenu *)0x%zx)->Execute((TObject *)0x%zx,"
170 "(TMethod *)0x%zx,(TObject*)0x%zx);",
171 (
size_t)
this,(
size_t)
object,(
size_t)method,
197 cmd.
Form(
"%s((TObject*)0x%zx);",
213 if (
object && toggle) {
216 gROOT->SetSelectedPrimitive(
object);
255 argTitle +=
" [default: ";
262 return argTitle.
Data();
272 if (
object && method)
274 else if (!
object && method)
279 return methodTitle.
Data();
292 clname =
object->ClassName();
295 popupTitle.
Form(
" %s ", clname);
297 popupTitle.
Form(
" %s::%s ", clname,
object->GetName());
299 if (popupTitle.
Length() > 60) {
306 return popupTitle.
Data();
327 gROOT->SetSelectedPrimitive(
object);
337 object->Execute(method->
GetName(), params);
368 gROOT->SetSelectedPrimitive(
object);
378 object->Execute((
TMethod*)method, params);
384 if (!args.
IsNull()) args +=
",";
winID h TVirtualViewer3D TVirtualGLPainter p
R__EXTERN TGuiFactory * gGuiFactory
Using a TBrowser one can browse all ROOT objects.
void Refresh()
Refresh browser contents.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
const char * GetContextMenuTitle() const
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Global functions class (global functions are obtained from CINT).
virtual TContextMenuImp * CreateContextMenuImp(TContextMenu *c, const char *name, const char *title)
Create a batch version of TContextMenuImp.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
Each ROOT method (see TMethod) has a linked list of its arguments.
const char * GetDefault() const
Get default value of method argument.
Each ROOT class (see TClass) has a linked list of methods.
virtual TList * GetListOfMethodArgs()
Returns methodarg list and additionally updates fDataMember in TMethod by calling FindDataMember();.
TClass * IsA() const override
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Collectable string class.
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero.
TObject * GetObject() const
void SetObject(TObject *obj, Bool_t fixMustCleanupBit=kTRUE)
Set obj as the spy target.
Mother of all ROOT objects.
void Clear()
Clear string without changing its capacity.
const char * Data() const
virtual TClass * IsA() const
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
This class defines toggling facility for both - object's method or variables.
virtual void Toggle()
Toggles the Values and State of this object and connected data!
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual void Modified(Bool_t flag=1)=0
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
virtual TVirtualPad * GetPadSave() const =0
R__ALWAYS_INLINE bool HasBeenDeleted(const TObject *obj)
Check if the TObject's memory has been deleted.