112 :
TPad(
"button",title,
x1,y1,
x2,y2,18,2,1),
TAttText(22,0,1,61,0.65)
201 if (cdpad) cdpad->
cd();
280 char *cmethod =
new char[nch+10];
292 out<<
"button = new TButton("<<quote<<
GetTitle()
293 <<quote<<
","<<quote<<cmethod<<quote
306 out<<
" button->SetBorderSize("<<
GetBorderSize()<<
");"<<std::endl;
309 out<<
" button->SetBorderMode("<<
GetBorderMode()<<
");"<<std::endl;
312 if (
GetFraming()) out<<
"button->SetFraming();"<<std::endl;
313 if (
IsEditable()) out<<
"button->SetEditable(kTRUE);"<<std::endl;
315 out<<
" button->Draw();"<<std::endl;
321 while ((obj = next())) {
322 if (!nprim) out<<
" button->cd();"<<std::endl;
327 if (nprim) out<<
" "<<padsav->
GetName()<<
"->cd();"<<std::endl;
static const double x2[5]
static const double x1[5]
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual Float_t GetTextSize() const
Return the text size.
virtual void SetTextAlign(Short_t align=11)
Set the text alignment.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
virtual Color_t GetTextColor() const
Return the text color.
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
virtual Float_t GetTextAngle() const
Return the text angle.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
Save text attributes as C++ statement(s) on output stream out.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Option_t * GetOption() const
To draw Mathematical Formula.
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
@ kNotDeleted
object has not been deleted
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
@ kCanDelete
if object in a list can be deleted
The most important graphics class in the ROOT system.
virtual void HideToolTip(Int_t event)
Hide tool tip depending on the event type.
Double_t fWNDC
Width of pad along X in Normalized Coordinates (NDC)
@ kFraming
Frame is requested.
Double_t fX2
X of upper X coordinate.
Double_t fX1
X of lower X coordinate.
Int_t YtoAbsPixel(Double_t y) const
Int_t XtoAbsPixel(Double_t x) const
Double_t fY1
Y of lower Y coordinate.
const char * GetTitle() const
Returns title of object.
Double_t fYlowNDC
Y bottom left corner of pad in NDC [0,1].
const char * GetName() const
Returns name of object.
virtual Bool_t IsEditable() const
Bool_t fModified
Set to true when pad is modified.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
TCanvas * fCanvas
! Pointer to mother canvas
virtual void PaintModified()
Traverse pad hierarchy and (re)paint only modified pads.
void Modified(Bool_t flag=1)
virtual void SetCursor(ECursor cursor)
Set cursor type.
virtual void Paint(Option_t *option="")
Paint all primitives in pad.
Int_t fLogx
(=0 if X linear scale, =1 if log scale)
virtual TCanvas * GetCanvas() const
TList * fPrimitives
->List of primitives (subpads)
virtual void Update()
Update pad.
virtual Short_t GetBorderMode() const
TList * GetListOfPrimitives() const
virtual Short_t GetBorderSize() const
Int_t fLogy
(=0 if Y linear scale, =1 if log scale)
Double_t fHNDC
Height of pad along Y in Normalized Coordinates (NDC)
Double_t fXlowNDC
X bottom left corner of pad in NDC [0,1].
virtual void SetEditable(Bool_t mode=kTRUE)
Set pad editable yes/no If a pad is not editable:
Double_t fY2
Y of upper Y coordinate.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
static constexpr double cm