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"
100 if (
method->GetListOfMethodArgs()->First())
125 else object=
menuitem->GetCalledObject();
145 if ((
method->GetListOfMethodArgs()->First()
146 &&
menuitem->GetSelfObjectPos() < 0 ) ||
147 method->GetListOfMethodArgs()->GetSize() > 1)
150 if (
menuitem->GetSelfObjectPos() < 0) {
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,
189 if ( (function->GetNargs() &&
menuitem->GetSelfObjectPos() < 0) ||
190 function->GetNargs() > 1) {
194 if (
menuitem->GetSelfObjectPos() < 0) {
197 cmd.Form(
"%s((TObject*)0x%zx);",
216 gROOT->SetSelectedPrimitive(
object);
274 else if (!
object &&
method)
279 return methodTitle.
Data();
290 const char*
clname =
object->IsA()->GetContextMenuTitle();
292 clname =
object->ClassName();
327 gROOT->SetSelectedPrimitive(
object);
337 object->Execute(
method->GetName(), params);
368 gROOT->SetSelectedPrimitive(
object);
384 if (!args.
IsNull()) args +=
",";
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
R__EXTERN TGuiFactory * gGuiFactory
Using a TBrowser one can browse all ROOT objects.
void Refresh()
Refresh browser contents.
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.
Each ROOT method (see TMethod) has a linked list of its arguments.
Each ROOT class (see TClass) has a linked list of methods.
The TNamed class is the base class for all named ROOT classes.
Collectable string class.
Monitors objects for deletion and reflects the deletion by reverting the internal pointer to zero.
Mother of all ROOT objects.
void Clear()
Clear string without changing its capacity.
const char * Data() const
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.
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.