class TButton: public TPad, public TAttText

  A TButton object is a user interface object.
  A TButton has a name and an associated action.
  When the button is clicked with the left mouse button, the cooresponding
  action is executed.
  A Tbutton can be created by direct invokation of the constructors
  or via the graphics editor.
  The Action can be set via TButton::SetMethod.
  The action can be any command. Examples of actions:
     "34+78" When the button is clicked, the result of addition is printed.
     ".x macro.C" . Clicking the button executes the macro macro.C
  The action can be modified at any time via TButton::SetMethod.

  To modify the layout/size/contents of one or several buttons
  in a canvas, you must set the canvas editable via TCanvas::SetEditable.
  By default a TCanvas is editable.
  By default a TDialogCanvas is not editable.
  TButtons are in general placed in a TDialogCanvas.

  A TButton being a TPad, one can draw graphics primitives in it
  when the TCanvas/TDialogCanvas is editable.

       Example of a macro creating a dialogcanvas with buttons
void but() {
   example of a dialogcanvas with a few buttons

   TDialogCanvas *dialog = new TDialogCanvas("dialog","",200,300);

 Create first button. Clicking on this button will execute 34+56
   TButton *but1 = new TButton("button1","34+56",.05,.8,.45,.88);
   but1->Draw();

 Create second button. Clicking on this button will create a new canvas
   TButton *but2 = new TButton("canvas","c2 = new TCanvas(\"c2\")",.55,.8,.95,.88);
   but2->Draw();

 Create third button. Clicking on this button will invoke the browser
   but3 = new TButton("Browser","br = new TBrowser(\"br\")",0.25,0.54,0.75,0.64);
   but3->SetFillColor(42);
   but3->Draw();

 Create last button with no name. Instead a graph is draw inside the button
 Clicking on this button will invoke the macro $ROOTSYS/tutorials/graphs/graph.C
   button = new TButton("",".x tutorials/graphs/graph.C",0.15,0.15,0.85,0.38);
   button->SetFillColor(42);
   button->Draw();
   button->SetEditable(kTRUE);
   button->cd();

   Double_t x[8] = {0.08,0.21,0.34,0.48,0.61,0.7,0.81,0.92};
   Double_t y[8] = {0.2,0.65,0.4,0.34,0.24,0.43,0.75,0.52};
   TGraph *graph = new TGraph(8,x,y);
   graph->SetMarkerColor(4);
   graph->SetMarkerStyle(21);
   graph->Draw("lp");

   dialog->cd();
}

   Executing the macro above produces the following dialogcanvas

/* */

Function Members (Methods)

public:
TButton()
TButton(const char* title, const char* method, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual~TButton()
virtual voidTPad::AbsCoordinates(Bool_t set)
virtual Double_tTPad::AbsPixeltoX(Int_t px)
virtual voidTPad::AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y)
virtual Double_tTPad::AbsPixeltoY(Int_t py)
voidTObject::AbstractMethod(const char* method) const
virtual voidTPad::AddExec(const char* name, const char* command)
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
virtual voidTPad::AutoExec()
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTPad::Browse(TBrowser* b)
virtual TLegend*TPad::BuildLegend(Double_t x1 = 0.5, Double_t y1 = 0.67, Double_t x2 = 0.88, Double_t y2 = 0.88, const char* title = "")MENU
virtual TVirtualPad*TPad::cd(Int_t subpadnumber = 0)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTPad::Clear(Option_t* option = "")
virtual Int_tTPad::Clip(Float_t* x, Float_t* y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt)
virtual Int_tTPad::Clip(Double_t* x, Double_t* y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt)
virtual Int_tTPad::ClippingCode(Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2)
virtual Int_tTPad::ClipPolygon(Int_t n, Double_t* x, Double_t* y, Int_t nn, Double_t* xc, Double_t* yc, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidTPad::Close(Option_t* option = "")
virtual voidTPad::Closed()SIGNAL
virtual voidTPad::CloseToolTip(TObject* tip)
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidTObject::Copy(TObject& object) const
virtual voidTPad::CopyPixmap()
virtual voidTPad::CopyPixmaps()
virtual TObject*TPad::CreateToolTip(const TBox* b, const char* text, Long_t delayms)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTPad::DeleteExec(const char* name)
virtual voidTPad::DeleteToolTip(TObject* tip)
virtual voidTQObject::Destroyed()SIGNAL
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual voidDivide(Int_t nx = 1, Int_t ny = 1, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0)
virtual voidDraw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual voidTPad::DrawClassObject(const TObject* obj, Option_t* option = "")
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
static voidTPad::DrawColorTable()
virtual voidTPad::DrawCrosshair()
virtual TH1F*TPad::DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char* title = "")
virtual voidTObject::Dump() constMENU
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTPad::ExecuteEventAxis(Int_t event, Int_t px, Int_t py, TAxis* axis)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TPad::FindObject(const char* name) const
virtual TObject*TPad::FindObject(const TObject* obj) const
virtual Double_tTPad::GetAbsHNDC() const
virtual Double_tTPad::GetAbsWNDC() const
virtual Double_tTPad::GetAbsXlowNDC() const
virtual Double_tTPad::GetAbsYlowNDC() const
Float_tTAttPad::GetAfile() const
virtual Double_tTPad::GetAspectRatio() const
Float_tTAttPad::GetAstat() const
virtual Short_tTPad::GetBorderMode() const
virtual Short_tTPad::GetBorderSize() const
Float_tTAttPad::GetBottomMargin() const
virtual TCanvas*TPad::GetCanvas() const
virtual Int_tTPad::GetCanvasID() const
Int_tTPad::GetCrosshair() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Int_tTPad::GetEvent() const
virtual Int_tTPad::GetEventX() const
virtual Int_tTPad::GetEventY() const
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual TFrame*TPad::GetFrame()
Int_tTAttPad::GetFrameBorderMode() const
Width_tTAttPad::GetFrameBorderSize() const
Color_tTAttPad::GetFrameFillColor() const
Style_tTAttPad::GetFrameFillStyle() const
Color_tTAttPad::GetFrameLineColor() const
Style_tTAttPad::GetFrameLineStyle() const
Width_tTAttPad::GetFrameLineWidth() const
virtual Bool_tGetFraming()
virtual Int_tTPad::GetGLDevice()
virtual Bool_tTPad::GetGridx() const
virtual Bool_tTPad::GetGridy() const
virtual Color_tTPad::GetHighLightColor() const
virtual Double_tTPad::GetHNDC() const
virtual const char*TObject::GetIconName() const
Float_tTAttPad::GetLeftMargin() const
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
virtual TList*TPad::GetListOfExecs() const
virtual TList*TPad::GetListOfPrimitives() const
TList*TQObject::GetListOfSignals() const
virtual Int_tTPad::GetLogx() const
virtual Int_tTPad::GetLogy() const
virtual Int_tTPad::GetLogz() const
static Int_tTPad::GetMaxPickDistance()
virtual const char*GetMethod() const
virtual TVirtualPad*TPad::GetMother() const
virtual const char*TPad::GetName() const
virtual Int_tTPad::GetNumber() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual TVirtualPad*TPad::GetPad(Int_t subpadnumber) const
virtual Int_tTPad::GetPadPaint() const
virtual voidTPad::GetPadPar(Double_t& xlow, Double_t& ylow, Double_t& xup, Double_t& yup)
virtual TObject*TPad::GetPadPointer() const
virtual TVirtualPad*TPad::GetPadSave() const
virtual Double_tTPad::GetPhi() const
virtual Int_tTPad::GetPixmapID() const
virtual TObject*TPad::GetPrimitive(const char* name) const
virtual voidTPad::GetRange(Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2)
virtual voidTPad::GetRangeAxis(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax)
Float_tTAttPad::GetRightMargin() const
virtual TObject*TPad::GetSelected() const
virtual TVirtualPad*TPad::GetSelectedPad() const
virtual Short_tTAttText::GetTextAlign() const
virtual Float_tTAttText::GetTextAngle() const
virtual Color_tTAttText::GetTextColor() const
virtual Font_tTAttText::GetTextFont() const
virtual Float_tTAttText::GetTextSize() const
virtual Double_tTPad::GetTheta() const
virtual Int_tTPad::GetTickx() const
virtual Int_tTPad::GetTicky() const
virtual const char*TPad::GetTitle() const
Float_tTAttPad::GetTopMargin() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_tTPad::GetUxmax() const
virtual Double_tTPad::GetUxmin() const
virtual Double_tTPad::GetUymax() const
virtual Double_tTPad::GetUymin() const
virtual TView*TPad::GetView() const
virtual TObject*TPad::GetView3D() const
virtual TVirtualViewer3D*TPad::GetViewer3D(Option_t* type = "")
virtual TVirtualPad*TPad::GetVirtCanvas() const
virtual UInt_tTPad::GetWh() const
virtual Double_tTPad::GetWNDC() const
virtual UInt_tTPad::GetWw() const
virtual Double_tTPad::GetX1() const
virtual Double_tTPad::GetX2() const
Float_tTAttPad::GetXfile() const
virtual Double_tTPad::GetXlowNDC() const
Float_tTAttPad::GetXstat() const
virtual Double_tTPad::GetY1() const
virtual Double_tTPad::GetY2() const
Float_tTAttPad::GetYfile() const
virtual Double_tTPad::GetYlowNDC() const
Float_tTAttPad::GetYstat() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual Bool_tTPad::HasCrosshair() const
virtual Bool_tTPad::HasFixedAspectRatio() const
virtual ULong_tTPad::Hash() const
virtual voidTPad::HighLight(Color_t col = kRed, Bool_t set = kTRUE)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTPad::IsBatch() const
Bool_tTVirtualPad::IsBeingResized() const
virtual Bool_tTPad::IsEditable() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTPad::IsFolder() const
virtual Bool_tTPad::IsModified() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTPad::IsRetained() const
virtual Bool_tTObject::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
virtual Bool_tTPad::IsVertical() const
Bool_tTObject::IsZombie() const
static voidTQObject::LoadRQ_OBJECT()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTPad::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual voidTPad::Modified(Bool_t flag = 1)SIGNAL
virtual voidTAttLine::Modify()
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual Bool_tTPad::OpaqueMoving() const
virtual Bool_tTPad::OpaqueResizing() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
static TVirtualPad*&TVirtualPad::Pad()
virtual Double_tTPad::PadtoX(Double_t x) const
virtual Double_tTPad::PadtoY(Double_t y) const
virtual voidPaint(Option_t* option = "")
virtual voidTPad::PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t* option = "")
virtual voidTPad::PaintFillArea(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintFillArea(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
voidTPad::PaintFillAreaHatches(Int_t n, Double_t* x, Double_t* y, Int_t FillStyle)
voidTPad::PaintHatches(Double_t dy, Double_t angle, Int_t nn, Double_t* xx, Double_t* yy)
virtual voidTPad::PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidTPad::PaintLine3D(Float_t* p1, Float_t* p2)
virtual voidTPad::PaintLine3D(Double_t* p1, Double_t* p2)
virtual voidTPad::PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2)
virtual voidPaintModified()
virtual voidTPad::PaintPadFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
virtual voidTPad::PaintPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyLine(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyLine3D(Int_t n, Double_t* p)
virtual voidTPad::PaintPolyLineNDC(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option = "")
virtual voidTPad::PaintPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "")
virtual voidTPad::PaintText(Double_t x, Double_t y, const char* text)
virtual voidTPad::PaintTextNDC(Double_t u, Double_t v, const char* text)
virtual TPad*TPad::Pick(Int_t px, Int_t py, TObjLink*& pickobj)
virtual Double_tTPad::PixeltoX(Int_t px)
virtual voidTPad::PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y)
virtual Double_tTPad::PixeltoY(Int_t py)
virtual voidTPad::Pop()
virtual voidTPad::Print(const char* filename = "") const
virtual voidTPad::Print(const char* filename, Option_t* option)
virtual voidRange(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidTPad::RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax)
virtual voidTPad::RangeAxisChanged()SIGNAL
virtual voidTPad::RangeChanged()SIGNAL
virtual Int_tTObject::Read(const char* name)
virtual voidTPad::RecursiveRemove(TObject* obj)
virtual voidTPad::RedrawAxis(Option_t* option = "")
virtual voidTPad::ReleaseViewer3D(Option_t* type = "")
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttPad::ResetAttPad(Option_t* option = "")
virtual voidTAttText::ResetAttText(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual voidTPad::ResetToolTip(TObject* tip)
virtual voidTPad::ResetView3D(TObject* view = 0)
virtual voidTPad::ResizePad(Option_t* option = "")
virtual voidTPad::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
virtual voidTAttText::SaveTextAttributes(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)
virtual voidTAttPad::SetAfile(Float_t afile)
virtual voidTAttPad::SetAstat(Float_t astat)
virtual voidTPad::SetAttFillPS(Color_t color, Style_t style)
virtual voidTPad::SetAttLinePS(Color_t color, Style_t style, Width_t lwidth)
virtual voidTPad::SetAttMarkerPS(Color_t color, Style_t style, Size_t msize)
virtual voidTPad::SetAttTextPS(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetBorderMode(Short_t bordermode)
virtual voidTPad::SetBorderSize(Short_t bordersize)MENU
virtual voidTAttPad::SetBottomMargin(Float_t bottommargin)
virtual voidTPad::SetCanvas(TCanvas* c)
virtual voidTPad::SetCanvasSize(UInt_t ww, UInt_t wh)
virtual voidTPad::SetCopyGLDevice(Bool_t copy)
virtual voidTPad::SetCrosshair(Int_t crhair = 1)TOGGLE
virtual voidTPad::SetCursor(ECursor cursor)
virtual voidTPad::SetDoubleBuffer(Int_t mode = 1)
virtual voidTPad::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTPad::SetEditable(Bool_t mode = kTRUE)TOGGLE
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidTAttFill::SetFillColor(Color_t fcolor)
virtual voidTPad::SetFillStyle(Style_t fstyle)
virtual voidTPad::SetFixedAspectRatio(Bool_t fixed = kTRUE)TOGGLE
voidTAttPad::SetFrameBorderMode(Int_t mode = 1)
voidTAttPad::SetFrameBorderSize(Width_t size = 1)
voidTAttPad::SetFrameFillColor(Color_t color = 1)
voidTAttPad::SetFrameFillStyle(Style_t styl = 0)
voidTAttPad::SetFrameLineColor(Color_t color = 1)
voidTAttPad::SetFrameLineStyle(Style_t styl = 0)
voidTAttPad::SetFrameLineWidth(Width_t width = 1)
virtual voidSetFraming(Bool_t f = 1)
virtual voidSetGrid(Int_t valuex = 1, Int_t valuey = 1)
virtual voidTPad::SetGridx(Int_t value = 1)TOGGLE
virtual voidTPad::SetGridy(Int_t value = 1)TOGGLE
virtual voidTAttPad::SetLeftMargin(Float_t leftmargin)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidTAttLine::SetLineColor(Color_t lcolor)
virtual voidTAttLine::SetLineStyle(Style_t lstyle)
virtual voidTAttLine::SetLineWidth(Width_t lwidth)
virtual voidSetLogx(Int_t value = 1)
virtual voidSetLogy(Int_t value = 1)
virtual voidTPad::SetLogz(Int_t value = 1)TOGGLE
static voidTPad::SetMaxPickDistance(Int_t maxPick = 5)
virtual voidSetMethod(const char* method)MENU
virtual voidSetName(const char* name)
virtual voidTPad::SetNumber(Int_t number)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTPad::SetPad(Double_t xlow, Double_t ylow, Double_t xup, Double_t yup)
virtual voidTPad::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)
virtual voidTPad::SetPhi(Double_t phi = 30)
virtual voidTAttPad::SetRightMargin(Float_t rightmargin)
virtual voidTPad::SetSelected(TObject* obj)
virtual voidTAttText::SetTextAlign(Short_t align = 11)
virtual voidTAttText::SetTextAngle(Float_t tangle = 0)MENU
virtual voidTAttText::SetTextAttributes()MENU
virtual voidTAttText::SetTextColor(Color_t tcolor = 1)
virtual voidTAttText::SetTextFont(Font_t tfont = 62)
virtual voidTAttText::SetTextSize(Float_t tsize = 1)
virtual voidTAttText::SetTextSizePixels(Int_t npixels)
virtual voidTPad::SetTheta(Double_t theta = 30)
virtual voidTPad::SetTicks(Int_t valuex = 1, Int_t valuey = 1)
virtual voidTPad::SetTickx(Int_t value = 1)TOGGLE
virtual voidTPad::SetTicky(Int_t value = 1)TOGGLE
virtual voidTPad::SetTitle(const char* title = "")
virtual voidTPad::SetToolTipText(const char* text, Long_t delayms = 1000)
virtual voidTAttPad::SetTopMargin(Float_t topmargin)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidTPad::SetVertical(Bool_t vert = kTRUE)
virtual voidTPad::SetView(TView* view = 0)
virtual voidTPad::SetViewer3D(TVirtualViewer3D* viewer3d)
virtual voidTAttPad::SetXfile(Float_t xfile)
virtual voidTAttPad::SetXstat(Float_t xstat)
virtual voidTAttPad::SetYfile(Float_t yfile)
virtual voidTAttPad::SetYstat(Float_t ystat)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTPad::Update()
virtual voidTPad::UseCurrentStyle()MENU
virtual Int_tTPad::UtoAbsPixel(Double_t u) const
virtual Int_tTPad::UtoPixel(Double_t u) const
virtual Int_tTPad::VtoAbsPixel(Double_t v) const
virtual Int_tTPad::VtoPixel(Double_t v) const
virtual TObject*TPad::WaitPrimitive(const char* pname = "", const char* emode = "")
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidx3d(Option_t* option = "")
virtual Int_tTPad::XtoAbsPixel(Double_t x) const
virtual Double_tTPad::XtoPad(Double_t x) const
virtual Int_tTPad::XtoPixel(Double_t x) const
virtual voidTPad::XYtoAbsPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const
virtual voidTPad::XYtoPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const
virtual Int_tTPad::YtoAbsPixel(Double_t y) const
virtual Double_tTPad::YtoPad(Double_t y) const
virtual Int_tTPad::YtoPixel(Double_t y) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
voidTPad::DestroyExternalViewer3D()
virtual Int_tTPad::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual void*TVirtualPad::GetSender()
virtual const char*TQObject::GetSenderClassName() const
virtual voidTPad::HideToolTip(Int_t event)
voidTObject::MakeZombie()
voidTPad::PaintBorder(Color_t color, Bool_t tops)
virtual voidTPad::PaintBorderPS(Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t bmode, Int_t bsize, Int_t dark, Int_t light)
voidTPad::PaintDate()
virtual voidTPad::SetBatch(Bool_t batch = kTRUE)
private:
TButton(const TButton& org)
TButton&operator=(const TButton& rhs)

Data Members

public:
enum TPad::[unnamed] { kFraming
kHori
kClipFrame
kPrintingPS
kCannotMove
kClearAfterCR
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Bool_tTPad::fAbsCoordUse absolute coordinates
Double_tTPad::fAbsHNDCAbsolute Height of pad along Y in NDC
Double_tTPad::fAbsPixeltoXkConversion coefficient for absolute pixel to X World
Double_tTPad::fAbsPixeltoYkConversion coefficient for absolute pixel to Y World
Double_tTPad::fAbsWNDCAbsolute Width of pad along X in NDC
Double_tTPad::fAbsXlowNDCAbsolute X top left corner of pad in NDC [0,1]
Double_tTPad::fAbsYlowNDCAbsolute Y top left corner of pad in NDC [0,1]
Float_tTAttPad::fAfileAlignment for the file name
Double_tTPad::fAspectRatioratio of w/h in case of fixed ratio
Float_tTAttPad::fAstatAlignment for the statistics
Short_tTPad::fBorderModeBordermode (-1=down, 0 = no border, 1=up)
Short_tTPad::fBorderSizepad bordersize in pixels
Float_tTAttPad::fBottomMarginBottomMargin
TCanvas*TPad::fCanvas! Pointer to mother canvas
Bool_tTPad::fCopyGLDevice!
Int_tTPad::fCrosshairCrosshair type (0 if no crosshair requested)
Int_tTPad::fCrosshairPosPosition of crosshair
Bool_tTPad::fEditableTrue if canvas is editable
Bool_tTPad::fEmbeddedGL!
TList*TPad::fExecsList of commands to be executed when a pad event occurs
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Bool_tTPad::fFixedAspectRatioTrue if fixed aspect ratio
TFrame*TPad::fFrame! Pointer to 2-D frame (if one exists)
Int_tTAttPad::fFrameBorderModepad frame border mode
Width_tTAttPad::fFrameBorderSizepad frame border size
Color_tTAttPad::fFrameFillColorpad frame fill color
Style_tTAttPad::fFrameFillStylepad frame fill style
Color_tTAttPad::fFrameLineColorpad frame line color
Style_tTAttPad::fFrameLineStylepad frame line style
Width_tTAttPad::fFrameLineWidthpad frame line width
Int_tTPad::fGLDevice! OpenGL off-screen pixmap identifier
Bool_tTPad::fGridxSet to true if grid along X
Bool_tTPad::fGridySet to true if grid along Y
Double_tTPad::fHNDCHeight of pad along Y in NDC
Float_tTAttPad::fLeftMarginLeftMargin
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
Int_tTPad::fLogx(=0 if X linear scale, =1 if log scale)
Int_tTPad::fLogy(=0 if Y linear scale, =1 if log scale)
Int_tTPad::fLogz(=0 if Z linear scale, =1 if log scale)
TStringfMethodMethod to be executed by this button
Bool_tTPad::fModifiedSet to true when pad is modified
TPad*TPad::fMother! pointer to mother of the list
TStringTPad::fNamePad name
Int_tTPad::fNumberpad number identifier
Int_tTPad::fPadPaintSet to 1 while painting the pad
TObject*TPad::fPadPointer! free pointer
TObject*TPad::fPadView3D! 3D View of this TPad
Double_tTPad::fPhiphi angle to view as lego/surface
Double_tTPad::fPixeltoXxworld = fPixeltoXk + fPixeltoX*xpixel
Double_tTPad::fPixeltoXkConversion coefficient for pixel to X World
Double_tTPad::fPixeltoYyworld = fPixeltoYk + fPixeltoY*ypixel
Double_tTPad::fPixeltoYkConversion coefficient for pixel to Y World
Int_tTPad::fPixmapID! Off-screen pixmap identifier
TList*TPad::fPrimitives->List of primitives (subpads)
Bool_tTVirtualPad::fResizing!true when resizing the pad
Float_tTAttPad::fRightMarginRightMargin
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
Short_tTAttText::fTextAlignText alignment
Float_tTAttText::fTextAngleText angle
Color_tTAttText::fTextColorText color index
Font_tTAttText::fTextFontText font number
Float_tTAttText::fTextSizeText size
Double_tTPad::fThetatheta angle to view as lego/surface
Int_tTPad::fTickxSet to 1 if tick marks along X
Int_tTPad::fTickySet to 1 if tick marks along Y
TStringTPad::fTitlePad title
Float_tTAttPad::fTopMarginTopMargin
Double_tTPad::fUtoAbsPixelkConversion coefficient for U NDC to absolute pixel
Double_tTPad::fUtoPixelxpixel = fUtoPixelk + fUtoPixel*undc
Double_tTPad::fUtoPixelkConversion coefficient for U NDC to pixel
Double_tTPad::fUxmaxMaximum value on the X axis
Double_tTPad::fUxminMinimum value on the X axis
Double_tTPad::fUymaxMaximum value on the Y axis
Double_tTPad::fUyminMinimum value on the Y axis
TView*TPad::fView! Pointer to 3-D view (if one exists)
TVirtualViewer3D*TPad::fViewer3D! Current 3D viewer
Double_tTPad::fVtoAbsPixelkConversion coefficient for V NDC to absolute pixel
Double_tTPad::fVtoPixelypixel = fVtoPixelk + fVtoPixel*vndc
Double_tTPad::fVtoPixelkConversion coefficient for V NDC to pixel
Double_tTPad::fWNDCWidth of pad along X in NDC
Double_tTPad::fX1X of lower X coordinate
Double_tTPad::fX2X of upper X coordinate
Float_tTAttPad::fXfileX position where to draw the file name
Double_tTPad::fXlowNDCX bottom left corner of pad in NDC [0,1]
Float_tTAttPad::fXstatX position where to draw the statistics
Double_tTPad::fXtoAbsPixelkConversion coefficient for X World to absolute pixel
Double_tTPad::fXtoPixelxpixel = fXtoPixelk + fXtoPixel*xworld
Double_tTPad::fXtoPixelkConversion coefficient for X World to pixel
Double_tTPad::fY1Y of lower Y coordinate
Double_tTPad::fY2Y of upper Y coordinate
Float_tTAttPad::fYfileX position where to draw the file name
Double_tTPad::fYlowNDCY bottom left corner of pad in NDC [0,1]
Float_tTAttPad::fYstatX position where to draw the statistics
Double_tTPad::fYtoAbsPixelkConversion coefficient for Y World to absolute pixel
Double_tTPad::fYtoPixelypixel = fYtoPixelk + fYtoPixel*yworld
Double_tTPad::fYtoPixelkConversion coefficient for Y World to pixel
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static Int_tTPad::fgMaxPickDistanceMaximum Pick Distance
private:
Bool_tfFocusedIf cursor is in...
Bool_tfFramingTrue if you want a frame to be painted when pressed

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TButton(const TButton& org)
 Button default constructor.
TButton(const char* title, const char* method, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Button normal constructor.

   Note that the button coordinates x1,y1,x2,y2 are always in the range [0,1]
~TButton()
 Button default destructor.
void Draw(Option_t* option = "")
 Draw this button with its current attributes.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
 Execute action corresponding to one event.

  This member function is called when a Button object is clicked.
void Paint(Option_t* option = "")
 Paint this button with its current attributes.
void PaintModified()
 Paint is modified.
void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Set world coordinate system for the pad.
void SavePrimitive(ostream& out, Option_t* option = "")
 Save primitive as a C++ statement(s) on output stream out
void SetFraming(Bool_t f = 1)
 if framing is set, button will be highlighted
void Divide(Int_t nx = 1, Int_t ny = 1, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0)
{ }
void SetGrid(Int_t valuex = 1, Int_t valuey = 1)
{ }
void SetLogx(Int_t value = 1)
{ }
void SetLogy(Int_t value = 1)
{ }
void x3d(Option_t* option = "")
{ }
TButton(const TButton& org)
TButton & operator=(const TButton& rhs)
const char * GetMethod()
{ return fMethod.Data(); }
void SetBorderMode(Short_t bordermode)
{ fBorderMode = bordermode; }
Bool_t GetFraming()
{ return fFraming; }
void SetMethod(const char* method)
{ fMethod=method; }
void SetName(const char* name)
{ fName = name; }

Author: Rene Brun 01/07/96
Last change: root/gpad:$Id: TButton.h 20882 2007-11-19 11:31:26Z rdm $
Last generated: 2008-06-25 08:35
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.