125 const char *defcanvas =
gROOT->GetDefCanvasName();
136 Constructor(cdef, cdef, 1);
243 static Int_t ww = 500;
244 static Int_t wh = 500;
245 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
261 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
264 if (!name[0] ||
gROOT->IsBatch()) {
265 fWindowTopX = fWindowTopY = 0;
280 if (form < 1 || form > 5) form = 1;
345 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title; arr[4] =&ww; arr[5] = &wh;
360 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
363 if (!name[0] ||
gROOT->IsBatch()) {
364 fWindowTopX = fWindowTopY = 0;
407 :
TPad(), fDoubleBuffer(0)
430 arr[1] =
this; arr[2] = (
void*)name; arr[3] = (
void*)title;
431 arr[4] = &wtopx; arr[5] = &wtopy; arr[6] = &ww; arr[7] = &wh;
446 Warning(
"Constructor",
"Deleting canvas with same name: %s",name);
449 if (!name[0] ||
gROOT->IsBatch()) {
450 fWindowTopX = fWindowTopY = 0;
539 if (fCw !=0 && fCh !=0) {
577 gROOT->GetListOfCanvases()->Add(
this);
693 while ((obj=
next())) {
733 if (padsave) cansave = (
TCanvas*)
gPad->GetCanvas();
737 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
759 gROOT->GetListOfCanvases()->Remove(
this);
765 if (cansave ==
this) {
810 if (old) {
gROOT->GetListOfCanvases()->Remove(old);
delete old;}
812 if (fWindowWidth == 0) {
813 if (fCw !=0) fWindowWidth = fCw+4;
814 else fWindowWidth = 800;
820 if (
gROOT->IsBatch()) {
843 const char *defcanvas =
gROOT->GetDefCanvasName();
850 cdef =
Form(
"%s",defcanvas);
855 newCanvas->
Draw(option);
872 if (pad ==
this) pad = selpad;
873 if (padsav == 0 || pad == 0 || pad ==
this) {
904 while ((obj=
next())) {
906 clone = obj->
Clone();
907 pad->GetListOfPrimitives()->Add(clone,next.
GetOption());
912 if (padsav) padsav->
cd();
924 const Int_t kTMAX=256;
925 static char atext[kTMAX];
938 snprintf(atext, kTMAX,
"%c", (
char) px);
940 snprintf(atext, kTMAX,
"%d,%d", px, py);
1023 if (
gROOT->GetEditorMode()) {
1071 if (padsav && padsav->
GetCanvas() ==
this) {
1081 if (padsav) padsav->
cd();
1089 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1153 pad =
Pick(px, py, prevSelObj);
1195 pad =
Pick(px, py, prevSelObj);
1263 pad =
Pick(px, py, prevSelObj);
1307 pad =
Pick(px, py, prevSelObj);
1340 pad =
Pick(px, py, prevSelObj);
1357 pad =
Pick(px, py, prevSelObj);
1392 std::cout <<
"Canvas Name=" <<
GetName()<<
" Title="<<
GetTitle()<<
" Option="<<option<<std::endl;
1403 const char *defcanvas =
gROOT->GetDefCanvasName();
1409 cdef =
new char[strlen(defcanvas)+15];
1411 strlcpy(cdef,
Form(
"%s_n%d", defcanvas, n++),strlen(defcanvas)+15);
1418 ::Info(
"TCanvas::MakeDefCanvas",
" created default TCanvas with name %s",cdef);
1497 Emit(
"Picked(TPad*,TObject*,Int_t)", args);
1511 Emit(
"Selected(TVirtualPad*,TObject*,Int_t)", args);
1526 Emit(
"ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", args);
1536 if ((!
gROOT->IsLineProcessing()) && (!
gVirtualX->IsCmdThread())) {
1559 if (fXsizeUser && fYsizeUser) {
1570 nww =
fCw; nwh = twh;
1582 nww =
fCw; nwh = twh;
1604 if (padsav) padsav->
cd();
1639 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1642 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1645 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1647 if (
gROOT->GetEditHistograms()) {
1648 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1651 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1654 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1657 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1662 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1691 Int_t lenfile = strlen(filename);
1694 const char *cname =
GetName();
1699 fname = (
char*)filename;
1702 Int_t nch = strlen(cname);
1704 strlcpy(lcname,cname,10);
1705 for (
Int_t k=1;k<=nch;k++) {
if (lcname[nch-k] ==
' ') lcname[nch-k] = 0;}
1706 if (lcname[0] == 0) {invalid =
kTRUE; strlcpy(lcname,
"c1",10); nch = 2;}
1709 fname =
new char[nch+3];
1710 strlcpy(fname,cname,nch+3);
1711 strncat(fname,
".C",2);
1715 Error(
"SaveSource",
"Cannot open file: %s",fname);
1716 if (!lenfile)
delete [] fname;
1722 out.precision(precision);
1730 Error(
"SaveSource",
"Cannot open TCanvas");
1734 w =
UInt_t((fWindowWidth - editorWidth)/cx);
1747 out <<
"void " << mname(s,p-s) <<
"()" <<std::endl;
1748 out <<
"{"<<std::endl;
1749 out <<
"//=========Macro generated from canvas: "<<
GetName()<<
"/"<<
GetTitle()<<std::endl;
1750 out <<
"//========= ("<<t.
AsString()<<
") by ROOT version"<<
gROOT->GetVersion()<<std::endl;
1753 out <<std::endl<<
" gStyle->SetCanvasPreferGL(kTRUE);"<<std::endl<<std::endl;
1758 <<quote<<
", "<<quote<<
GetTitle()<<quote<<
","<<w<<
","<<h<<
");"<<std::endl;
1761 out<<
" TCanvas *"<<cname<<
" = new TCanvas("<<quote<<
GetName()<<quote<<
", "<<quote<<
GetTitle()
1764 out<<
",-"<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1766 out<<
","<<topx<<
","<<topy<<
","<<w<<
","<<h<<
");"<<std::endl;
1770 out<<
" gStyle->SetOptFit(1);"<<std::endl;
1773 out<<
" gStyle->SetOptStat(0);"<<std::endl;
1776 out<<
" gStyle->SetOptTitle(0);"<<std::endl;
1778 if (
gROOT->GetEditHistograms()) {
1779 out<<
" gROOT->SetEditHistograms();"<<std::endl;
1782 out<<
" "<<
GetName()<<
"->ToggleEventStatus();"<<std::endl;
1785 out<<
" "<<
GetName()<<
"->ToggleToolTips();"<<std::endl;
1790 out<<
" "<<
GetName()<<
"->SetHighLightColor(ci);" << std::endl;
1800 out<<
" "<<
GetName()<<
"->SetSelected("<<
GetName()<<
");"<<std::endl;
1802 out<<
" "<<
GetName()<<
"->ToggleToolBar();"<<std::endl;
1806 out <<
"}"<<std::endl;
1808 Info(
"SaveSource",
"C++ Macro file: %s has been generated", fname);
1815 if (!lenfile)
delete [] fname;
1824 if (
gROOT->IsBatch())
1863 fDoubleBuffer = mode;
1868 if (fDoubleBuffer) {
1884 Error(
"SetAspectRatio",
"cannot fix aspect ratio, height of canvas is 0");
1953 void TCanvas::Streamer(
TBuffer &b)
1981 if (!colcur)
return;
2011 if (v>7) b.
ClassMember(
"fWindowHeight",
"UInt_t");
2027 if (v>7) b.
ClassMember(
"kResizeOpaque",
"Bool_t");
2029 if (v>7) b.
ClassMember(
"fHighLightColor",
"Color_t");
2034 if (v>7) b.
ClassMember(
"kShowEventStatus",
"Bool_t");
2043 fBatch =
gROOT->IsBatch();
2084 b << (
UInt_t)(w-editorWidth);
2172 gPad->GetGLDevice() != -1);
2188 if ((*
gThreadXAR)(
"CUPD", 2, arr, 0))
return;
2252 if (!
UseGL() || fBatch)
2257 Error(
"CreatePainter",
"GL Painter creation failed! Will use default!");
virtual void Clear(Option_t *="")
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void RunAutoExec()
Execute the list of TExecs in the current pad.
void EnterLeave(TPad *prevSelPad, TObject *prevSelObj)
Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the curre...
Bool_t IsFolder() const
Is folder ?
virtual void SetGridx(Int_t value=1)
Ssiz_t Last(char c) const
Find last occurrence of a character c.
void FeedbackMode(Bool_t set)
Turn rubberband feedback mode on or off.
R__EXTERN TGuiFactory * gBatchGuiFactory
virtual void SetPad(const char *name, const char *title, Double_t xlow, Double_t ylow, Double_t xup, Double_t yup, Color_t color=35, Short_t bordersize=5, Short_t bordermode=-1)
Set all pad parameters.
virtual void SetTickx(Int_t value=1)
static Int_t DecreaseDirLevel()
Decrease the indentation level for ls().
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
virtual void ClassBegin(const TClass *, Version_t=-1)=0
TList * fPrimitives
Pointer to mother canvas.
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
virtual void ResizePad(Option_t *option="")
Compute pad conversion coefficients.
virtual TCanvas * GetCanvas() const
TPad * fSelectedPad
Drawing option of selected object.
virtual void SetCursor(ECursor cursor)
Set cursor.
Bool_t GetPadGridX() const
TCanvas(const TCanvas &canvas)
TContextMenu * fContextMenu
Window system specific canvas implementation.
Int_t GetCanvasBorderMode() const
virtual void Copy(TAttPad &attpad) const
copy function
virtual void ToggleEventStatus()
Toggle event statusbar.
Bool_t fDrawn
True when rendering is with GL.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
TPad * fPadSave
Pad containing currently click-selected object.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
TVirtualPadPainter * GetCanvasPainter()
Access and (probably) creation of pad painter.
Bool_t GetCanvasPreferGL() const
virtual void Paint(Option_t *option="")
Paint all primitives in pad.
void SetTitle(const char *title="")
Set canvas title.
virtual void Delete(Option_t *option="")
Remove all objects from the array AND delete all heap based objects.
void Build()
Build a canvas. Called by all constructors.
Manages default Pad attributes.
Int_t GetPadTickX() const
R__EXTERN TStyle * gStyle
TVirtualPadPainter * fPainter
Set to True when the Draw method is called.
virtual Option_t * GetOption() const
TObject * fSelected
Canvas identifier.
static void SaveColor(std::ostream &out, Int_t ci)
Save a color with index > 228 as a C++ statement(s) on output stream out.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual void SetBorderMode(Short_t bordermode)
static Bool_t fgIsFolder
Canvas (pad) painter.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
Int_t fCanvasID
Last Y mouse position in canvas.
static TVirtualPadPainter * PadPainter(Option_t *opt="")
Create a pad painter of specified type.
void Copy(TAttLine &attline) const
Copy this line attributes to a new TAttLine.
Buffer base class used for serializing objects.
virtual void CopyPixmap()
Copy the pixmap of the pad to the canvas.
virtual void SetWindowTitle(const char *newTitle)
static const char * filename()
virtual Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass *clss)=0
virtual void ToggleToolTips()
Toggle tooltip display.
void PaintBorder(Color_t color, Bool_t tops)
Paint the pad border.
void Copy(TAttFill &attfill) const
Copy this fill attributes to a new TAttFill.
void ToLower()
Change string to lower-case.
Int_t fSelectedX
Currently click-selected object.
virtual void Size(Float_t xsizeuser=0, Float_t ysizeuser=0)
Set the canvas scale in centimeters.
virtual void PaintModified()
Traverse pad hierarchy and (re)paint only modified pads.
R__EXTERN TVirtualMutex * gROOTMutex
virtual void InitPainter()
Empty definition.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
R__EXTERN TApplication * gApplication
void Constructor()
Canvas default constructor.
virtual UInt_t WriteVersion(const TClass *cl, Bool_t useBcnt=kFALSE)=0
void DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject *selected)
Report name and title of primitive below the cursor.
virtual Short_t GetBorderMode() const
UInt_t GetWindowHeight() const
void Flush()
Flush canvas buffers.
virtual void SetTopMargin(Float_t topmargin)
Set Pad top margin in fraction of the pad height.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
Search for an object at pixel position px,py.
void SetCanvasColor(Color_t color=19)
Bool_t HasMenuBar() const
virtual void ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject *selected)
Emit ProcessedEvent() signal.
virtual void ClassMember(const char *, const char *=0, Int_t=-1, Int_t=-1)=0
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual void Browse(TBrowser *b)
Browse.
TString fSelectedOpt
Y of selected object.
Fill Area Attributes class.
Int_t GetWindowTopY()
Returns current top y position of window on screen.
virtual void SetFixedAspectRatio(Bool_t fixed=kTRUE)
Fix canvas aspect ratio to current value if fixed is true.
virtual void Cleared(TVirtualPad *pad)
Emit pad Cleared signal.
virtual void Paint(Option_t *option="")
Paint canvas.
static TVirtualPadEditor * GetPadEditor(Bool_t load=kTRUE)
Returns the pad editor dialog. Static method.
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
virtual void Close(Option_t *option="")
Delete all primitives in pad and pad itself.
R__EXTERN Int_t(* gThreadXAR)(const char *xact, Int_t nb, void **ar, Int_t *iret)
Float_t GetPadBottomMargin() const
Bool_t IsBeingResized() const
void HighLight(Color_t col=kRed, Bool_t set=kTRUE)
Highlight pad.
virtual void ShowEditor(Bool_t show=kTRUE)
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
UChar_t mod R__LOCKGUARD2(gSrvAuthenticateMutex)
TCanvas * fCanvas
pointer to mother of the list
TPad * fClickSelectedPad
Pad containing currently selected object.
void SetCanvasBorderSize(Width_t size=1)
void DeleteCanvasPainter()
assert on IsBatch() == false?
void Clear(Option_t *option="")
Remove all primitives from the canvas.
virtual void Pop()
Pop on object drawn in a pad to the top of the display list.
virtual void ShowToolBar(Bool_t show=kTRUE)
UInt_t GetWw() const
Get Ww.
virtual ~TCanvas()
Canvas destructor.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void SetLogx(Int_t value=1)
Set Lin/Log scale for X.
static ENewType IsCallingNew()
Static method returning the defConstructor flag passed to TClass::New().
virtual void ShowMenuBar(Bool_t show=kTRUE)
TVirtualPad is an abstract base class for the Pad and Canvas classes.
R__EXTERN TGuiFactory * gGuiFactory
static void SetFolder(Bool_t isfolder=kTRUE)
If isfolder=kTRUE, the canvas can be browsed like a folder by default a canvas is not browsable...
void SaveSource(const char *filename="", Option_t *option="")
Save primitives in this canvas as a C++ macro file.
void Emit(const char *signal)
Acitvate signal without args.
static TCanvasInit gCanvasInit
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
const char * GetName() const
Returns name of object.
virtual Color_t GetHighLightColor() const
Get highlight color.
Bool_t fRetained
True when Updating the canvas.
virtual void CopyPixmaps()
Copy the sub-pixmaps of the pad to the canvas.
Int_t GetPadTickY() const
Int_t GetOptTitle() const
Float_t GetPadRightMargin() const
Using a TBrowser one can browse all ROOT objects.
void DisconnectWidget()
Used by friend class TCanvasImp.
virtual Bool_t CheckObject(const TObject *obj)=0
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void CopyPixmaps()
Copy the canvas pixmap of the pad to the canvas.
virtual void ToggleToolBar()
Toggle toolbar.
Int_t fSelectedY
X of selected object.
void SetCanvasBorderMode(Int_t mode=1)
virtual void SetBottomMargin(Float_t bottommargin)
Set Pad bottom margin in fraction of the pad height.
static void NeedGraphicsLibs()
Static method.
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
virtual TObject * DrawClone(Option_t *option="") const
Draw a clone of this canvas A new canvas is created that is a clone of this canvas.
virtual void SetFillColor(Color_t fcolor)
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
virtual void SetTicky(Int_t value=1)
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void ls(Option_t *option="") const
List all primitives in pad.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual void UseCurrentStyle()
Force a copy of current style for all objects in pad.
virtual Color_t GetFillColor() const
Bool_t GetShowToolTips() const
TObject * GetObject() const
Bool_t TestBit(UInt_t f) const
The most important graphics class in the ROOT system.
char * Form(const char *fmt,...)
void CreatePainter()
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpaint...
virtual Short_t GetBorderSize() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this pad on the C++ source file out.
static TCanvas * MakeDefCanvas()
Static function to build a default canvas.
virtual const char * GetName() const
Returns name of object.
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetByteCount(UInt_t cntpos, Bool_t packInVersion=kFALSE)=0
virtual void ToggleEditor()
Toggle editor.
Bool_t fUpdating
True when in batchmode.
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
void Destructor()
Actual canvas destructor.
UInt_t GetWindowWidth() const
Int_t GetCanvasDefW() const
virtual void ShowStatusBar(Bool_t show=kTRUE)
virtual void SelectDrawable(Int_t device)=0
char * StrDup(const char *str)
Duplicate the string str.
static void CreateApplication()
Static function used to create a default application environment.
Float_t GetPadLeftMargin() const
Int_t GetWindowTopX()
Returns current top x position of window on screen.
const char * GetTitle() const
Returns title of object.
void InitializeGraphics()
Initialize the graphics environment.
TCanvasImp * fCanvasImp
Pointer to saved pad in HandleInput.
Option_t * GetOption() const
Int_t GetCanvasDefX() const
virtual Int_t GetSize() const
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Returns string containing info about the object at position (px,py).
const Size_t kDefaultCanvasSize
Int_t GetCanvasDefY() const
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to an event at (px,py).
virtual const char * GetName() const
Returns name of object.
virtual void SetGridy(Int_t value=1)
Wrapper around a TObject so it can be stored in a TList.
void SetCanvasSize(UInt_t ww, UInt_t wh)
Set Width and Height of canvas to ww and wh respectively.
virtual void SetFillStyle(Style_t fstyle)
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
Bool_t IsBatch() const
Is pad in batch mode ?
static RooMathCoreReg dummy
void Init()
Initialize the TCanvas members. Called by all constructors.
virtual void SetRGB(Float_t r, Float_t g, Float_t b)
Initialize this color and its associated colors.
Bool_t IsGrayscale()
Check whether this canvas is to be drawn in grayscale mode.
virtual TCanvasImp * CreateCanvasImp(TCanvas *c, const char *title, UInt_t width, UInt_t height)
Create a batch version of TCanvasImp.
The color creation and management class.
void Browse(TBrowser *b)
Browse this collection (called by TBrowser).
void SetWindowSize(UInt_t ww, UInt_t wh)
virtual void SetTicks(Int_t valuex=1, Int_t valuey=1)
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
virtual void SetName(const char *name)
Bool_t GetShowToolBar() const
Mother of all ROOT objects.
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
void Clear(Option_t *option="")
Delete all pad primitives.
virtual void Draw(Option_t *option="")
Draw a canvas.
static Int_t IncreaseDirLevel()
Increase the indentation level for ls().
virtual void SetDoubleBuffer(Int_t mode=1)
Set Double Buffer On/Off.
void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitives in this canvas in C++ macro file with GUI.
TList * GetListOfPrimitives() const
virtual TObject * DrawClonePad()
Draw a clone of this canvas into the current pad In an interactive session, select the destination/cu...
void EmbedInto(Int_t winid, Int_t ww, Int_t wh)
Embedded a canvas into a TRootEmbeddedCanvas.
virtual void ShowToolTips(Bool_t show=kTRUE)
virtual void Add(TObject *obj)
virtual void LockPainter()
Empty definition.
virtual void ClassEnd(const TClass *)=0
Int_t fEventX
Type of current or last handled event.
virtual void ls(Option_t *option="") const
List all pads.
void SetSelected(TObject *obj)
Set selected canvas.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void Close(Option_t *option="")
Close canvas.
virtual void EditorBar()
Get editor bar.
R__EXTERN TVirtualPS * gVirtualPS
TVirtualPad * GetSelectedPad() const
virtual Int_t InitWindow()
Width_t GetCanvasBorderSize() const
Implement TVirtualPadPainter which abstracts painting operations.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
TObject * fClickSelected
Currently selected object.
Int_t fEventY
Last X mouse position in canvas.
Bool_t GetShowEventStatus() const
Bool_t GetPadGridY() const
void SetBatch(Bool_t batch=kTRUE)
Toggle batch mode.
virtual UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
virtual void SetBorderSize(Short_t bordersize)
virtual void Update()
Update canvas pad buffers.
virtual void SetStatusText(const char *text=0, Int_t partidx=0)
Int_t fGLDevice
Off-screen pixmap identifier.
Bool_t fBatch
Context menu pointer.
Float_t GetPadTopMargin() const
const char * AsString() const
Return the date & time as a string (ctime() format).
virtual void SetCanvasSize(UInt_t w, UInt_t h)
Double_t fX1
tool tip associated with box
virtual void SetLogz(Int_t value=1)
Set Lin/Log scale for Z.
virtual const char * GetTitle() const
Returns title of object.
Float_t GetScreenFactor() const
Color_t GetHighLightColor() const
Get highlight color.
Int_t GetCanvasDefH() const
virtual void Closed()
Emit Closed signal.
Color_t GetCanvasColor() const
void Modified(Bool_t flag=1)
To make it possible to use GL for 2D graphic in a TPad/TCanvas.
UInt_t GetWh() const
Get Wh.
virtual void Picked(TPad *selpad, TObject *selected, Int_t event)
Emit Picked() signal.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
void SetGrayscale(Bool_t set=kTRUE)
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
virtual void SetLeftMargin(Float_t leftmargin)
Set Pad left margin in fraction of the pad width.
virtual void SetLogy(Int_t value=1)
Set Lin/Log scale for Y.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.