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"
130 menuitem->
SetCall(
nullptr,
"");
155 cmd.
Form(
"((TContextMenu *)0x%zx)->Execute((TObject *)0x%zx,"
156 "(TMethod *)0x%zx,\"\");",
157 (
size_t)
this,(
size_t)
object,(
size_t)method);
168 cmd.
Form(
"((TContextMenu *)0x%zx)->Execute((TObject *)0x%zx,"
169 "(TMethod *)0x%zx,(TObject*)0x%zx);",
170 (
size_t)
this,(
size_t)
object,(
size_t)method,
189 function->GetNargs() > 1) {
196 cmd.
Form(
"%s((TObject*)0x%zx);",
212 if (
object && toggle) {
215 gROOT->SetSelectedPrimitive(
object);
254 argTitle +=
" [default: ";
261 return argTitle.
Data();
271 if (
object && method)
273 else if (!
object && method)
278 return methodTitle.
Data();
289 const char* clname =
object->IsA()->GetContextMenuTitle();
291 clname =
object->ClassName();
294 popupTitle.
Form(
" %s ", clname);
296 popupTitle.
Form(
" %s::%s ", clname,
object->GetName());
298 if (popupTitle.
Length() > 60) {
305 return popupTitle.
Data();
326 gROOT->SetSelectedPrimitive(
object);
336 object->Execute(method->
GetName(), params);
367 gROOT->SetSelectedPrimitive(
object);
377 object->Execute((
TMethod*)method, params);
383 if (!args.
IsNull()) args +=
",";
int Int_t
Signed integer 4 bytes (int)
R__EXTERN TGuiFactory * gGuiFactory
Using a TBrowser one can browse all ROOT objects.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Global functions class (global functions are obtained from CINT).
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
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.
TObject()
TObject constructor.
void Clear()
Clear string without changing its capacity.
const char * Data() 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.
R__ALWAYS_INLINE bool HasBeenDeleted(const TObject *obj)
Check if the TObject's memory has been deleted.