This utility macro executes the macro "macro" given as first argument and save a capture in a png file.
This macro is used by stressGUI to execute and compare the output of the GUI tutorials.
{
enum EErrorCodes {
kSuccess,
kScriptDirNotFound,
kCannotRunScript,
kNumErrorCodes
};
return kCannotRunScript;
return kScriptDirNotFound;
if (comp)
cmd += "+";
return kCannotRunScript;
if (winGetParent ==
gClient->GetDefaultRoot())
if (save) {
delete img;
}
}
}
if (!
gEnv->GetValue(
"X11.Sync", 0))
}
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
ROOT GUI Window base class.
virtual void MapRaised()
map raised
const TGWindow * GetParent() const
virtual void RaiseWindow()
raise window
An abstract interface to image processing library.
static TImage * Create()
Create an image.
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
- Author
- Bertrand Bellenot
Definition in file exec_macro.C.