A Canvas may be subdivided into independent graphical areas: the Pads. A canvas has a default pad which has the name of the canvas itself. An example of a Canvas layout is sketched in the picture below.
*********************************************************************** * Menus bar for Canvas * *********************************************************************** * * * ************************************ ************************* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Pad 1 * * Pad 2 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ************************************ ************************* * * * ***********************************************************************This canvas contains two pads named P1 and P2. Both Canvas, P1 and P2 can be moved, grown, shrinked using the normal rules of the Display manager.
The image below shows a canvas with 4 pads:
A graphical editor may be started from the canvas "View" menu under the menu entry "Toolbar".
An interactive HELP is available by clicking on the HELP button at the top right of the canvas. It gives a short explanation about the canvas' menus.
A canvas may be automatically divided into pads via TPad::Divide.
At creation time, in interactive mode, the canvas size defines the size of the canvas window (including the window manager's decoration). To define precisely the graphics area size of a canvas, the following four lines of code should be used:
{ Double_t w = 600; Double_t h = 600; TCanvas * c1 = new TCanvas("c", "c", w, h); c->SetWindowSize(w + (w - c->GetWw()), h + (h - c->GetWh())); }in batch mode simply do:
c->SetCanvasSize(w,h);
TCanvas(Bool_t build = kTRUE) | |
TCanvas(const char* name, const char* title = "", Int_t form = 1) | |
TCanvas(const char* name, const char* title, Int_t ww, Int_t wh) | |
TCanvas(const char* name, Int_t ww, Int_t wh, Int_t winid) | |
TCanvas(const char* name, const char* title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh) | |
virtual | ~TCanvas() |
virtual void | TPad::AbsCoordinates(Bool_t set) |
virtual Double_t | TPad::AbsPixeltoX(Int_t px) |
virtual void | TPad::AbsPixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y) |
virtual Double_t | TPad::AbsPixeltoY(Int_t py) |
void | TObject::AbstractMethod(const char* method) const |
virtual void | TPad::AddExec(const char* name, const char* command) |
virtual void | TObject::AppendPad(Option_t* option = "") |
static Bool_t | TQObject::AreAllSignalsBlocked() |
Bool_t | TQObject::AreSignalsBlocked() const |
virtual void | TPad::AutoExec() |
static Bool_t | TQObject::BlockAllSignals(Bool_t b) |
Bool_t | TQObject::BlockSignals(Bool_t b) |
virtual void | 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* | cd(Int_t subpadnumber = 0) |
virtual void | TQObject::ChangedBy(const char* method)SIGNAL |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | Clear(Option_t* option = "") |
virtual void | Cleared(TVirtualPad* pad)SIGNAL |
void | ClearPadSave() |
virtual Int_t | TPad::Clip(Float_t* x, Float_t* y, Float_t xclipl, Float_t yclipb, Float_t xclipr, Float_t yclipt) |
virtual Int_t | TPad::Clip(Double_t* x, Double_t* y, Double_t xclipl, Double_t yclipb, Double_t xclipr, Double_t yclipt) |
virtual Int_t | TPad::ClippingCode(Double_t x, Double_t y, Double_t xcl1, Double_t ycl1, Double_t xcl2, Double_t ycl2) |
virtual Int_t | TPad::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 void | Close(Option_t* option = "") |
virtual void | Closed()SIGNAL |
virtual void | TPad::CloseToolTip(TObject* tip) |
void | TQObject::CollectClassSignalLists(TList& list, TClass* cls) |
virtual Int_t | TObject::Compare(const TObject* obj) const |
Bool_t | TQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot) |
static Bool_t | TQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot) |
static Bool_t | TQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot) |
virtual void | TQObject::Connected(const char*) |
void | Constructor() |
void | Constructor(const char* name, const char* title, Int_t form) |
void | Constructor(const char* name, const char* title, Int_t ww, Int_t wh) |
void | Constructor(const char* name, const char* title, Int_t wtopx, Int_t wtopy, Int_t ww, Int_t wh) |
virtual void | TObject::Copy(TObject& object) const |
virtual void | TPad::CopyPixmap() |
virtual TObject* | TPad::CreateToolTip(const TBox* b, const char* text, Long_t delayms) |
virtual void | Delete(Option_t* = "") |
void | DeleteCanvasPainter() |
virtual void | TPad::DeleteExec(const char* name) |
virtual void | TPad::DeleteToolTip(TObject* tip) |
virtual void | TQObject::Destroyed()SIGNAL |
void | Destructor() |
Bool_t | TQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0) |
static Bool_t | TQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0) |
static Bool_t | TQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0) |
virtual void | TQObject::Disconnected(const char*) |
void | DisconnectWidget() |
Int_t | TAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2) |
virtual void | TPad::Divide(Int_t nx = 1, Int_t ny = 1, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0)MENU |
virtual void | TPad::DivideSquare(Int_t n, Float_t xmargin = 0.01, Float_t ymargin = 0.01, Int_t color = 0) |
virtual void | Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() constMENU |
virtual void | TPad::DrawClassObject(const TObject* obj, Option_t* option = "") |
virtual TObject* | DrawClone(Option_t* option = "") constMENU |
virtual TObject* | DrawClonePad()MENU |
static void | TPad::DrawColorTable() |
virtual void | TPad::DrawCrosshair() |
virtual TH1F* | TPad::DrawFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, const char* title = "") |
virtual void | TObject::Dump() constMENU |
virtual void | EditorBar() |
void | EmbedInto(Int_t winid, Int_t ww, Int_t wh) |
void | TQObject::Emit(const char* signal) |
void | TQObject::Emit(const char* signal, Long_t* paramArr) |
void | TQObject::Emit(const char* signal, const char* params) |
void | TQObject::Emit(const char* signal, Double_t param) |
void | TQObject::Emit(const char* signal, Long_t param) |
void | TQObject::Emit(const char* signal, Long64_t param) |
void | TQObject::Emit(const char* signal, Bool_t param) |
void | TQObject::Emit(const char* signal, Char_t param) |
void | TQObject::Emit(const char* signal, UChar_t param) |
void | TQObject::Emit(const char* signal, Short_t param) |
void | TQObject::Emit(const char* signal, UShort_t param) |
void | TQObject::Emit(const char* signal, Int_t param) |
void | TQObject::Emit(const char* signal, UInt_t param) |
void | TQObject::Emit(const char* signal, ULong_t param) |
void | TQObject::Emit(const char* signal, ULong64_t param) |
void | TQObject::Emit(const char* signal, Float_t param) |
void | TQObject::EmitVA(const char* signal, Int_t nargs) |
void | TQObject::EmitVA(const char* signal, Int_t nargs, va_list va) |
void | EnterLeave(TPad* prevSelPad, TObject* prevSelObj) |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
virtual void | TPad::EventPave()SIGNAL |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TPad::ExecuteEventAxis(Int_t event, Int_t px, Int_t py, TAxis* axis) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
void | FeedbackMode(Bool_t set) |
virtual TObject* | TPad::FindObject(const char* name) const |
virtual TObject* | TPad::FindObject(const TObject* obj) const |
void | Flush() |
void | ForceUpdate() |
virtual Double_t | TPad::GetAbsHNDC() const |
virtual Double_t | TPad::GetAbsWNDC() const |
virtual Double_t | TPad::GetAbsXlowNDC() const |
virtual Double_t | TPad::GetAbsYlowNDC() const |
Float_t | TAttPad::GetAfile() const |
virtual Double_t | TPad::GetAspectRatio() const |
Float_t | TAttPad::GetAstat() const |
Bool_t | GetAutoExec() const |
virtual Rectangle_t | TPad::GetBBox() |
virtual TPoint | TPad::GetBBoxCenter() |
virtual Short_t | TPad::GetBorderMode() const |
virtual Short_t | TPad::GetBorderSize() const |
Float_t | TAttPad::GetBottomMargin() const |
virtual TCanvas* | TPad::GetCanvas() const |
virtual Int_t | GetCanvasID() const |
virtual TCanvasImp* | GetCanvasImp() const |
TVirtualPadPainter* | GetCanvasPainter() |
virtual void | GetCanvasPar(Int_t& wtopx, Int_t& wtopy, UInt_t& ww, UInt_t& wh) |
TObject* | GetClickSelected() const |
TVirtualPad* | GetClickSelectedPad() const |
TContextMenu* | GetContextMenu() const |
Int_t | TPad::GetCrosshair() const |
const char* | GetDISPLAY() const |
Int_t | GetDoubleBuffer() const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual Int_t | GetEvent() const |
virtual Int_t | GetEventX() const |
virtual Int_t | GetEventY() const |
virtual Color_t | TAttFill::GetFillColor() const |
virtual Style_t | TAttFill::GetFillStyle() const |
virtual TFrame* | TPad::GetFrame() |
Int_t | TAttPad::GetFrameBorderMode() const |
Width_t | TAttPad::GetFrameBorderSize() const |
Color_t | TAttPad::GetFrameFillColor() const |
Style_t | TAttPad::GetFrameFillStyle() const |
Color_t | TAttPad::GetFrameLineColor() const |
Style_t | TAttPad::GetFrameLineStyle() const |
Width_t | TAttPad::GetFrameLineWidth() const |
virtual Int_t | TPad::GetGLDevice() |
virtual Bool_t | TPad::GetGridx() const |
virtual Bool_t | TPad::GetGridy() const |
virtual Color_t | GetHighLightColor() const |
virtual Double_t | TPad::GetHNDC() const |
virtual const char* | TObject::GetIconName() const |
Float_t | TAttPad::GetLeftMargin() const |
virtual Color_t | TAttLine::GetLineColor() const |
virtual Style_t | TAttLine::GetLineStyle() const |
virtual Width_t | TAttLine::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_t | TPad::GetLogx() const |
virtual Int_t | TPad::GetLogy() const |
virtual Int_t | TPad::GetLogz() const |
static Int_t | TPad::GetMaxPickDistance() |
virtual TVirtualPad* | TPad::GetMother() const |
virtual const char* | TPad::GetName() const |
virtual Int_t | TPad::GetNumber() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual TVirtualPad* | TPad::GetPad(Int_t subpadnumber) const |
virtual Int_t | TPad::GetPadPaint() const |
virtual void | TPad::GetPadPar(Double_t& xlow, Double_t& ylow, Double_t& xup, Double_t& yup) |
virtual TObject* | TPad::GetPadPointer() const |
virtual TVirtualPad* | GetPadSave() const |
virtual TVirtualPadPainter* | TPad::GetPainter() |
virtual Double_t | TPad::GetPhi() const |
virtual Int_t | TPad::GetPixmapID() const |
virtual TObject* | TPad::GetPrimitive(const char* name) const |
virtual void | TPad::GetRange(Double_t& x1, Double_t& y1, Double_t& x2, Double_t& y2) |
virtual void | TPad::GetRangeAxis(Double_t& xmin, Double_t& ymin, Double_t& xmax, Double_t& ymax) |
Float_t | TAttPad::GetRightMargin() const |
virtual TObject* | GetSelected() const |
Option_t* | GetSelectedOpt() const |
virtual TVirtualPad* | GetSelectedPad() const |
Int_t | GetSelectedX() const |
Int_t | GetSelectedY() const |
Bool_t | GetShowEditor() const |
Bool_t | GetShowEventStatus() const |
Bool_t | GetShowToolBar() const |
Bool_t | GetShowToolTips() const |
virtual Double_t | TPad::GetTheta() const |
virtual Int_t | TPad::GetTickx() const |
virtual Int_t | TPad::GetTicky() const |
virtual const char* | TPad::GetTitle() const |
Float_t | TAttPad::GetTopMargin() const |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Double_t | TPad::GetUxmax() const |
virtual Double_t | TPad::GetUxmin() const |
virtual Double_t | TPad::GetUymax() const |
virtual Double_t | TPad::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_t | GetWh() const |
UInt_t | GetWindowHeight() const |
Int_t | GetWindowTopX() |
Int_t | GetWindowTopY() |
UInt_t | GetWindowWidth() const |
virtual Double_t | TPad::GetWNDC() const |
virtual UInt_t | GetWw() const |
virtual Double_t | TPad::GetX1() const |
virtual Double_t | TPad::GetX2() const |
Float_t | TAttPad::GetXfile() const |
virtual Double_t | TPad::GetXlowNDC() const |
Size_t | GetXsizeReal() const |
Size_t | GetXsizeUser() const |
Float_t | TAttPad::GetXstat() const |
virtual Double_t | TPad::GetY1() const |
virtual Double_t | TPad::GetY2() const |
Float_t | TAttPad::GetYfile() const |
virtual Double_t | TPad::GetYlowNDC() const |
Size_t | GetYsizeReal() const |
Size_t | GetYsizeUser() const |
Float_t | TAttPad::GetYstat() const |
virtual void | HandleInput(EEventType button, Int_t x, Int_t y) |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual Bool_t | TQObject::HasConnection(const char* signal_name) const |
virtual Bool_t | TPad::HasCrosshair() const |
virtual Bool_t | TPad::HasFixedAspectRatio() const |
virtual ULong_t | TPad::Hash() const |
Bool_t | HasMenuBar() const |
virtual Bool_t | TPad::HasViewer3D() const |
virtual void | TPad::HighLight(Color_t col = kRed, Bool_t set = kTRUE) |
virtual void | TQObject::HighPriority(const char* signal_name, const char* slot_name = 0) |
void | Iconify() |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() constMENU |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | IsBatch() const |
Bool_t | TVirtualPad::IsBeingResized() const |
virtual Bool_t | TPad::IsEditable() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | IsFolder() const |
Bool_t | IsGrayscale() |
virtual Bool_t | TPad::IsModified() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | IsRetained() const |
virtual Bool_t | TObject::IsSortable() const |
virtual Bool_t | TAttFill::IsTransparent() const |
virtual Bool_t | TPad::IsVertical() const |
Bool_t | TObject::IsZombie() const |
static void | TQObject::LoadRQ_OBJECT() |
virtual void | TQObject::LowPriority(const char* signal_name, const char* slot_name = 0) |
virtual void | ls(Option_t* option = "") const |
static TCanvas* | MakeDefCanvas() |
void | TObject::MayNotUse(const char* method) const |
virtual void | TQObject::Message(const char* msg)SIGNAL |
virtual void | TPad::Modified(Bool_t flag = 1)SIGNAL |
virtual void | TAttLine::Modify() |
void | MoveOpaque(Int_t set = 1) |
virtual Bool_t | TObject::Notify() |
virtual Int_t | TQObject::NumberOfConnections() const |
virtual Int_t | TQObject::NumberOfSignals() const |
void | TObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const |
virtual Bool_t | OpaqueMoving() const |
virtual Bool_t | OpaqueResizing() const |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::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 Bool_t | TVirtualPad::PadInHighlightMode() const |
virtual Bool_t | TVirtualPad::PadInSelectionMode() const |
virtual Double_t | TPad::PadtoX(Double_t x) const |
virtual Double_t | TPad::PadtoY(Double_t y) const |
virtual void | Paint(Option_t* option = "") |
virtual void | TPad::PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t* option = "") |
virtual void | TPad::PaintFillArea(Int_t n, Float_t* x, Float_t* y, Option_t* option = "") |
virtual void | TPad::PaintFillArea(Int_t n, Double_t* x, Double_t* y, Option_t* option = "") |
void | TPad::PaintFillAreaHatches(Int_t n, Double_t* x, Double_t* y, Int_t FillStyle) |
void | TPad::PaintHatches(Double_t dy, Double_t angle, Int_t nn, Double_t* xx, Double_t* yy) |
virtual void | TPad::PaintLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2) |
virtual void | TPad::PaintLine3D(Float_t* p1, Float_t* p2) |
virtual void | TPad::PaintLine3D(Double_t* p1, Double_t* p2) |
virtual void | TPad::PaintLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2) |
virtual void | TPad::PaintModified() |
virtual void | TPad::PaintPadFrame(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) |
virtual void | TPad::PaintPolyLine(Int_t n, Float_t* x, Float_t* y, Option_t* option = "") |
virtual void | TPad::PaintPolyLine(Int_t n, Double_t* x, Double_t* y, Option_t* option = "") |
virtual void | TPad::PaintPolyLine3D(Int_t n, Double_t* p) |
virtual void | TPad::PaintPolyLineNDC(Int_t n, Double_t* x, Double_t* y, Option_t* option = "") |
virtual void | TPad::PaintPolyMarker(Int_t n, Float_t* x, Float_t* y, Option_t* option = "") |
virtual void | TPad::PaintPolyMarker(Int_t n, Double_t* x, Double_t* y, Option_t* option = "") |
virtual void | TPad::PaintText(Double_t x, Double_t y, const char* text) |
virtual void | TPad::PaintText(Double_t x, Double_t y, const wchar_t* text) |
virtual void | TPad::PaintTextNDC(Double_t u, Double_t v, const char* text) |
virtual void | TPad::PaintTextNDC(Double_t u, Double_t v, const wchar_t* text) |
virtual TPad* | Pick(Int_t px, Int_t py, TObjLink*& pickobj) |
virtual TPad* | Pick(Int_t px, Int_t py, TObject* prevSelObj) |
virtual void | Picked(TPad* selpad, TObject* selected, Int_t event)SIGNAL |
virtual Double_t | TPad::PixeltoX(Int_t px) |
virtual void | TPad::PixeltoXY(Int_t xpixel, Int_t ypixel, Double_t& x, Double_t& y) |
virtual Double_t | TPad::PixeltoY(Int_t py) |
virtual void | TPad::Pop()MENU |
virtual void | TVirtualPad::PopTopLevelSelectable() |
virtual void | TPad::Print(const char* filename = "") const |
virtual void | TPad::Print(const char* filename, Option_t* option) |
virtual void | ProcessedEvent(Int_t event, Int_t x, Int_t y, TObject* selected)SIGNAL |
virtual void | TVirtualPad::PushSelectableObject(TObject* obj) |
virtual void | TVirtualPad::PushTopLevelSelectable(TObject* top) |
void | RaiseWindow() |
virtual void | TPad::Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)MENU |
virtual void | TPad::RangeAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax) |
virtual void | TPad::RangeAxisChanged()SIGNAL |
virtual void | TPad::RangeChanged()SIGNAL |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TPad::RecordLatex(const TObject* obj)SIGNAL |
virtual void | TPad::RecordPave(const TObject* obj)SIGNAL |
virtual void | TPad::RecursiveRemove(TObject* obj) |
virtual void | TPad::RedrawAxis(Option_t* option = "") |
virtual void | TPad::ReleaseViewer3D(Option_t* type = "") |
virtual void | TAttFill::ResetAttFill(Option_t* option = "") |
virtual void | TAttLine::ResetAttLine(Option_t* option = "") |
virtual void | TAttPad::ResetAttPad(Option_t* option = "") |
void | TObject::ResetBit(UInt_t f) |
virtual void | TPad::ResetToolTip(TObject* tip) |
virtual void | TPad::ResetView3D(TObject* view = 0) |
virtual void | Resize(Option_t* option = "") |
void | ResizeOpaque(Int_t set = 1) |
virtual void | TPad::ResizePad(Option_t* option = "") |
virtual void | TPad::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
virtual void | TAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001) |
virtual void | TAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1) |
virtual void | SavePrimitive(ostream& out, Option_t* option = "") |
void | SaveSource(const char* filename = "", Option_t* option = "") |
virtual void | Selected(TVirtualPad* pad, TObject* obj, Int_t event)SIGNAL |
virtual void | TAttPad::SetAfile(Float_t afile) |
virtual void | TAttPad::SetAstat(Float_t astat) |
virtual void | TPad::SetAttFillPS(Color_t color, Style_t style) |
virtual void | TPad::SetAttLinePS(Color_t color, Style_t style, Width_t lwidth) |
virtual void | TPad::SetAttMarkerPS(Color_t color, Style_t style, Size_t msize) |
virtual void | TPad::SetAttTextPS(Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize) |
virtual void | SetBatch(Bool_t batch = kTRUE) |
virtual void | TPad::SetBBoxCenter(const TPoint& p) |
virtual void | TPad::SetBBoxCenterX(const Int_t x) |
virtual void | TPad::SetBBoxCenterY(const Int_t y) |
virtual void | TPad::SetBBoxX1(const Int_t x) |
virtual void | TPad::SetBBoxX2(const Int_t x) |
virtual void | TPad::SetBBoxY1(const Int_t y) |
virtual void | TPad::SetBBoxY2(const Int_t y) |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
virtual void | TPad::SetBorderMode(Short_t bordermode)MENU |
virtual void | TPad::SetBorderSize(Short_t bordersize)MENU |
virtual void | TAttPad::SetBottomMargin(Float_t bottommargin) |
virtual void | TPad::SetCanvas(TCanvas* c) |
virtual void | SetCanvasSize(UInt_t ww, UInt_t wh)MENU |
void | SetClickSelected(TObject* obj) |
void | SetClickSelectedPad(TPad* pad) |
virtual void | TPad::SetCopyGLDevice(Bool_t copy) |
virtual void | TPad::SetCrosshair(Int_t crhair = 1)TOGGLE |
virtual void | SetCursor(ECursor cursor) |
virtual void | SetDoubleBuffer(Int_t mode = 1) |
virtual void | TPad::SetDrawOption(Option_t* option = "") |
static void | TObject::SetDtorOnly(void* obj) |
virtual void | TPad::SetEditable(Bool_t mode = kTRUE)TOGGLE |
virtual void | TAttFill::SetFillAttributes()MENU |
virtual void | TAttFill::SetFillColor(Color_t fcolor) |
virtual void | TAttFill::SetFillColorAlpha(Color_t fcolor, Float_t falpha) |
virtual void | TPad::SetFillStyle(Style_t fstyle) |
virtual void | SetFixedAspectRatio(Bool_t fixed = kTRUE)TOGGLE |
static void | SetFolder(Bool_t isfolder = kTRUE) |
void | TAttPad::SetFrameBorderMode(Int_t mode = 1) |
void | TAttPad::SetFrameBorderSize(Width_t size = 1) |
void | TAttPad::SetFrameFillColor(Color_t color = 1) |
void | TAttPad::SetFrameFillStyle(Style_t styl = 0) |
void | TAttPad::SetFrameLineColor(Color_t color = 1) |
void | TAttPad::SetFrameLineStyle(Style_t styl = 0) |
void | TAttPad::SetFrameLineWidth(Width_t width = 1) |
virtual void | TPad::SetGLDevice(Int_t dev) |
void | SetGrayscale(Bool_t set = kTRUE)TOGGLE GETTER |
virtual void | TPad::SetGrid(Int_t valuex = 1, Int_t valuey = 1) |
virtual void | TPad::SetGridx(Int_t value = 1)TOGGLE |
virtual void | TPad::SetGridy(Int_t value = 1)TOGGLE |
void | SetHighLightColor(Color_t col) |
virtual void | TAttPad::SetLeftMargin(Float_t leftmargin) |
virtual void | TAttLine::SetLineAttributes()MENU |
virtual void | TAttLine::SetLineColor(Color_t lcolor) |
virtual void | TAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha) |
virtual void | TAttLine::SetLineStyle(Style_t lstyle) |
virtual void | TAttLine::SetLineWidth(Width_t lwidth) |
virtual void | TPad::SetLogx(Int_t value = 1)TOGGLE |
virtual void | TPad::SetLogy(Int_t value = 1)TOGGLE |
virtual void | TPad::SetLogz(Int_t value = 1)TOGGLE |
virtual void | TAttPad::SetMargin(Float_t left, Float_t right, Float_t bottom, Float_t top) |
static void | TPad::SetMaxPickDistance(Int_t maxPick = 5) |
virtual void | TPad::SetName(const char* name)MENU |
virtual void | TPad::SetNumber(Int_t number) |
static void | TObject::SetObjectStat(Bool_t stat) |
virtual void | TPad::SetPad(Double_t xlow, Double_t ylow, Double_t xup, Double_t yup) |
virtual void | TPad::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) |
void | SetPadSave(TPad* pad) |
virtual void | TPad::SetPhi(Double_t phi = 30) |
void | SetRetained(Bool_t retained = kTRUE) |
virtual void | TAttPad::SetRightMargin(Float_t rightmargin) |
virtual void | SetSelected(TObject* obj) |
void | SetSelectedPad(TPad* pad) |
void | SetSupportGL(Bool_t support) |
virtual void | TPad::SetTheta(Double_t theta = 30) |
virtual void | TPad::SetTicks(Int_t valuex = 1, Int_t valuey = 1) |
virtual void | TPad::SetTickx(Int_t value = 1)TOGGLE |
virtual void | TPad::SetTicky(Int_t value = 1)TOGGLE |
virtual void | SetTitle(const char* title = "") |
virtual void | TPad::SetToolTipText(const char* text, Long_t delayms = 1000) |
virtual void | TAttPad::SetTopMargin(Float_t topmargin) |
virtual void | TObject::SetUniqueID(UInt_t uid) |
virtual void | TPad::SetVertical(Bool_t vert = kTRUE) |
virtual void | TPad::SetView(TView* view = 0) |
virtual void | TPad::SetViewer3D(TVirtualViewer3D* viewer3d) |
void | SetWindowPosition(Int_t x, Int_t y) |
void | SetWindowSize(UInt_t ww, UInt_t wh) |
virtual void | TAttPad::SetXfile(Float_t xfile) |
virtual void | TAttPad::SetXstat(Float_t xstat) |
virtual void | TAttPad::SetYfile(Float_t yfile) |
virtual void | TAttPad::SetYstat(Float_t ystat) |
void | Show() |
virtual void | TPad::ShowGuidelines(TObject* object, const Int_t event, const char mode = 'i', const bool cling = true) |
virtual void | ShowMembers(TMemberInspector&) |
virtual void | Size(Float_t xsizeuser = 0, Float_t ysizeuser = 0) |
virtual void | TPad::StartEditing()SIGNAL |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
static Bool_t | SupportAlpha() |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | ToggleAutoExec() |
virtual void | ToggleEditor() |
virtual void | ToggleEventStatus() |
virtual void | ToggleToolBar() |
virtual void | ToggleToolTips() |
virtual void | Update() |
virtual void | UseCurrentStyle()MENU |
Bool_t | UseGL() const |
virtual Int_t | TPad::UtoAbsPixel(Double_t u) const |
virtual Int_t | TPad::UtoPixel(Double_t u) const |
virtual Int_t | TPad::VtoAbsPixel(Double_t v) const |
virtual Int_t | TPad::VtoPixel(Double_t v) const |
virtual TObject* | TPad::WaitPrimitive(const char* pname = "", const char* emode = "") |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
virtual void | TPad::x3d(Option_t* type = "") |
virtual Int_t | TPad::XtoAbsPixel(Double_t x) const |
virtual Double_t | TPad::XtoPad(Double_t x) const |
virtual Int_t | TPad::XtoPixel(Double_t x) const |
virtual void | TPad::XYtoAbsPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const |
virtual void | TPad::XYtoPixel(Double_t x, Double_t y, Int_t& xpixel, Int_t& ypixel) const |
virtual Int_t | TPad::YtoAbsPixel(Double_t y) const |
virtual Double_t | TPad::YtoPad(Double_t y) const |
virtual Int_t | TPad::YtoPixel(Double_t y) const |
static Int_t | TQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot) |
static Bool_t | TQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot) |
static Bool_t | TQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot) |
void | TPad::DestroyExternalViewer3D() |
virtual Int_t | TPad::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
virtual void | ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void* | TVirtualPad::GetSender() |
virtual const char* | TQObject::GetSenderClassName() const |
virtual void | TPad::HideToolTip(Int_t event) |
void | Init() |
void | TObject::MakeZombie() |
void | TPad::PaintBorder(Color_t color, Bool_t tops) |
virtual void | TPad::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) |
void | TPad::PaintDate() |
TCanvas(const TCanvas& canvas) | |
void | Build() |
virtual void | CopyPixmaps() |
void | CreatePainter() |
void | DrawEventStatus(Int_t event, Int_t x, Int_t y, TObject* selected) |
TCanvas& | operator=(const TCanvas& rhs) |
void | RunAutoExec() |
enum { | kShowEventStatus | |
kAutoExec | ||
kMenuBar | ||
kShowToolBar | ||
kShowEditor | ||
kMoveOpaque | ||
kResizeOpaque | ||
kIsGrayscale | ||
kShowToolTips | ||
}; | ||
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 | ||
}; |
Bool_t | TPad::fAbsCoord | Use absolute coordinates |
Double_t | TPad::fAbsHNDC | Absolute Height of pad along Y in NDC |
Double_t | TPad::fAbsPixeltoXk | Conversion coefficient for absolute pixel to X World |
Double_t | TPad::fAbsPixeltoYk | Conversion coefficient for absolute pixel to Y World |
Double_t | TPad::fAbsWNDC | Absolute Width of pad along X in NDC |
Double_t | TPad::fAbsXlowNDC | Absolute X top left corner of pad in NDC [0,1] |
Double_t | TPad::fAbsYlowNDC | Absolute Y top left corner of pad in NDC [0,1] |
Float_t | TAttPad::fAfile | Alignment for the file name |
Double_t | TPad::fAspectRatio | ratio of w/h in case of fixed ratio |
Float_t | TAttPad::fAstat | Alignment for the statistics |
Bool_t | fBatch | !True when in batchmode |
Short_t | TPad::fBorderMode | Bordermode (-1=down, 0 = no border, 1=up) |
Short_t | TPad::fBorderSize | pad bordersize in pixels |
Float_t | TAttPad::fBottomMargin | BottomMargin |
TCanvas* | TPad::fCanvas | ! Pointer to mother canvas |
Int_t | fCanvasID | !Canvas identifier |
TCanvasImp* | fCanvasImp | !Window system specific canvas implementation |
TAttCanvas | fCatt | Canvas attributes |
UInt_t | fCh | Height of the canvas along Y (pixels) |
TObject* | fClickSelected | !Currently click-selected object |
TPad* | fClickSelectedPad | !Pad containing currently click-selected object |
TContextMenu* | fContextMenu | !Context menu pointer |
Bool_t | TPad::fCopyGLDevice | ! |
Int_t | TPad::fCrosshair | Crosshair type (0 if no crosshair requested) |
Int_t | TPad::fCrosshairPos | Position of crosshair |
UInt_t | fCw | Width of the canvas along X (pixels) |
TString | fDISPLAY | Name of destination screen |
Int_t | fDoubleBuffer | Double buffer flag (0=off, 1=on) |
Bool_t | TPad::fEditable | True if canvas is editable |
Bool_t | TPad::fEmbeddedGL | ! |
Int_t | fEvent | !Type of current or last handled event |
Int_t | fEventX | !Last X mouse position in canvas |
Int_t | fEventY | !Last Y mouse position in canvas |
TList* | TPad::fExecs | List of commands to be executed when a pad event occurs |
Color_t | TAttFill::fFillColor | fill area color |
Style_t | TAttFill::fFillStyle | fill area style |
Bool_t | TPad::fFixedAspectRatio | True if fixed aspect ratio |
TFrame* | TPad::fFrame | ! Pointer to 2-D frame (if one exists) |
Int_t | TAttPad::fFrameBorderMode | pad frame border mode |
Width_t | TAttPad::fFrameBorderSize | pad frame border size |
Color_t | TAttPad::fFrameFillColor | pad frame fill color |
Style_t | TAttPad::fFrameFillStyle | pad frame fill style |
Color_t | TAttPad::fFrameLineColor | pad frame line color |
Style_t | TAttPad::fFrameLineStyle | pad frame line style |
Width_t | TAttPad::fFrameLineWidth | pad frame line width |
Int_t | TPad::fGLDevice | ! OpenGL off-screen pixmap identifier |
Bool_t | TPad::fGridx | Set to true if grid along X |
Bool_t | TPad::fGridy | Set to true if grid along Y |
Double_t | TPad::fHNDC | Height of pad along Y in NDC |
Color_t | fHighLightColor | Highlight color of active pad |
Float_t | TAttPad::fLeftMargin | LeftMargin |
Color_t | TAttLine::fLineColor | line color |
Style_t | TAttLine::fLineStyle | line style |
Width_t | TAttLine::fLineWidth | line width |
TList* | TQObject::fListOfConnections | ! list of connections to this object |
TList* | TQObject::fListOfSignals | ! list of signals from this object |
Int_t | TPad::fLogx | (=0 if X linear scale, =1 if log scale) |
Int_t | TPad::fLogy | (=0 if Y linear scale, =1 if log scale) |
Int_t | TPad::fLogz | (=0 if Z linear scale, =1 if log scale) |
Bool_t | TPad::fModified | Set to true when pad is modified |
TPad* | TPad::fMother | ! pointer to mother of the list |
TString | TPad::fName | Pad name |
Int_t | TPad::fNumber | pad number identifier |
Int_t | TPad::fPadPaint | Set to 1 while painting the pad |
TObject* | TPad::fPadPointer | ! free pointer |
TPad* | fPadSave | !Pointer to saved pad in HandleInput |
TObject* | TPad::fPadView3D | ! 3D View of this TPad |
TVirtualPadPainter* | fPainter | !Canvas (pad) painter. |
Double_t | TPad::fPhi | phi angle to view as lego/surface |
Double_t | TPad::fPixeltoX | xworld = fPixeltoXk + fPixeltoX*xpixel |
Double_t | TPad::fPixeltoXk | Conversion coefficient for pixel to X World |
Double_t | TPad::fPixeltoY | yworld = fPixeltoYk + fPixeltoY*ypixel |
Double_t | TPad::fPixeltoYk | Conversion coefficient for pixel to Y World |
Int_t | TPad::fPixmapID | ! Off-screen pixmap identifier |
TList* | TPad::fPrimitives | ->List of primitives (subpads) |
Bool_t | TVirtualPad::fResizing | !true when resizing the pad |
Bool_t | fRetained | Retain structure flag |
Float_t | TAttPad::fRightMargin | RightMargin |
TObject* | fSelected | !Currently selected object |
TString | fSelectedOpt | !Drawing option of selected object |
TPad* | fSelectedPad | !Pad containing currently selected object |
Int_t | fSelectedX | !X of selected object |
Int_t | fSelectedY | !Y of selected object |
Bool_t | TQObject::fSignalsBlocked | ! flag used for suppression of signals |
Double_t | TPad::fTheta | theta angle to view as lego/surface |
Int_t | TPad::fTickx | Set to 1 if tick marks along X |
Int_t | TPad::fTicky | Set to 1 if tick marks along Y |
TString | TPad::fTitle | Pad title |
Float_t | TAttPad::fTopMargin | TopMargin |
Bool_t | fUpdating | !True when Updating the canvas |
Bool_t | fUseGL | !True when rendering is with GL |
Double_t | TPad::fUtoAbsPixelk | Conversion coefficient for U NDC to absolute pixel |
Double_t | TPad::fUtoPixel | xpixel = fUtoPixelk + fUtoPixel*undc |
Double_t | TPad::fUtoPixelk | Conversion coefficient for U NDC to pixel |
Double_t | TPad::fUxmax | Maximum value on the X axis |
Double_t | TPad::fUxmin | Minimum value on the X axis |
Double_t | TPad::fUymax | Maximum value on the Y axis |
Double_t | TPad::fUymin | Minimum value on the Y axis |
TView* | TPad::fView | ! Pointer to 3-D view (if one exists) |
TVirtualViewer3D* | TPad::fViewer3D | ! Current 3D viewer |
Double_t | TPad::fVtoAbsPixelk | Conversion coefficient for V NDC to absolute pixel |
Double_t | TPad::fVtoPixel | ypixel = fVtoPixelk + fVtoPixel*vndc |
Double_t | TPad::fVtoPixelk | Conversion coefficient for V NDC to pixel |
Double_t | TPad::fWNDC | Width of pad along X in NDC |
UInt_t | fWindowHeight | Height of window (including menubar, borders, etc.) |
Int_t | fWindowTopX | Top X position of window (in pixels) |
Int_t | fWindowTopY | Top Y position of window (in pixels) |
UInt_t | fWindowWidth | Width of window (including borders, etc.) |
Double_t | TPad::fX1 | X of lower X coordinate |
Double_t | TPad::fX2 | X of upper X coordinate |
Double_t | TPad::fXUpNDC | |
Float_t | TAttPad::fXfile | X position where to draw the file name |
Double_t | TPad::fXlowNDC | X bottom left corner of pad in NDC [0,1] |
Size_t | fXsizeReal | Current size of canvas along X in CM |
Size_t | fXsizeUser | User specified size of canvas along X in CM |
Float_t | TAttPad::fXstat | X position where to draw the statistics |
Double_t | TPad::fXtoAbsPixelk | Conversion coefficient for X World to absolute pixel |
Double_t | TPad::fXtoPixel | xpixel = fXtoPixelk + fXtoPixel*xworld |
Double_t | TPad::fXtoPixelk | Conversion coefficient for X World to pixel |
Double_t | TPad::fY1 | Y of lower Y coordinate |
Double_t | TPad::fY2 | Y of upper Y coordinate |
Double_t | TPad::fYUpNDC | |
Float_t | TAttPad::fYfile | Y position where to draw the file name |
Double_t | TPad::fYlowNDC | Y bottom left corner of pad in NDC [0,1] |
Size_t | fYsizeReal | Current size of canvas along Y in CM |
Size_t | fYsizeUser | User specified size of canvas along Y in CM |
Float_t | TAttPad::fYstat | Y position where to draw the statistics |
Double_t | TPad::fYtoAbsPixelk | Conversion coefficient for Y World to absolute pixel |
Double_t | TPad::fYtoPixel | ypixel = fYtoPixelk + fYtoPixel*yworld |
Double_t | TPad::fYtoPixelk | Conversion coefficient for Y World to pixel |
static Bool_t | TQObject::fgAllSignalsBlocked | flag used for suppression of all signals |
static Bool_t | fgIsFolder | Indicates if canvas can be browsed as a folder |
static Int_t | TPad::fgMaxPickDistance | Maximum Pick Distance |
Create an embedded canvas, i.e. a canvas that is in a TGCanvas widget which is placed in a TGFrame. This ctor is only called via the TRootEmbeddedCanvas class. If "name" starts with "gl" the canvas is ready to receive GL output.
Create a new canvas with a predefined size form. If form < 0 the menubar is not shown. form = 1 700x500 at 10,10 (set by TStyle::SetCanvasDefH,W,X,Y) form = 2 500x500 at 20,20 form = 3 500x500 at 30,30 form = 4 500x500 at 40,40 form = 5 500x500 at 50,50 If "name" starts with "gl" the canvas is ready to receive GL output.
Create a new canvas with a predefined size form. If form < 0 the menubar is not shown. form = 1 700x500 at 10,10 (set by TStyle::SetCanvasDefH,W,X,Y) form = 2 500x500 at 20,20 form = 3 500x500 at 30,30 form = 4 500x500 at 40,40 form = 5 500x500 at 50,50
Create a new canvas at a random position. ww is the canvas size in pixels along X (if ww < 0 the menubar is not shown) wh is the canvas size in pixels along Y If "name" starts with "gl" the canvas is ready to receive GL output.
Create a new canvas at a random position. ww is the canvas size in pixels along X (if ww < 0 the menubar is not shown) wh is the canvas size in pixels along Y
Create a new canvas. wtopx,wtopy are the pixel coordinates of the top left corner of the canvas (if wtopx < 0) the menubar is not shown) ww is the canvas size in pixels along X wh is the canvas size in pixels along Y If "name" starts with "gl" the canvas is ready to receive GL output.
Create a new canvas. wtopx,wtopy are the pixel coordinates of the top left corner of the canvas (if wtopx < 0) the menubar is not shown) ww is the canvas size in pixels along X wh is the canvas size in pixels along Y
Remove all primitives from the canvas.
If option "D" is specified, direct subpads are cleared but not deleted.
This option is not recursive, i.e. pads in direct subpads are deleted.
Draw a clone of this canvas A new canvas is created that is a clone of this canvas
Draw a clone of this canvas into the current pad In an interactive session, select the destination/current pad with the middle mouse button, then point to the canvas area to select the canvas context menu item DrawClonePad. Note that the original canvas may have subpads.
Report name and title of primitive below the cursor. This function is called when the option "Event Status" in the canvas menu "Options" is selected.
Embedded a canvas into a TRootEmbeddedCanvas. This method is only called via TRootEmbeddedCanvas::AdoptCanvas.
Generate kMouseEnter and kMouseLeave events depending on the previously selected object and the currently selected object. Does nothing if the selected object does not change.
Handle Input Events. Handle input events, like button up/down in current canvas.
Set option to move objects/pads in a canvas. if set = 1 (default) graphics objects are moved in opaque mode = 0 only the outline of objects is drawn when moving them The option opaque produces the best effect. It requires however a a reasonably fast workstation or response time.
Set option to resize objects/pads in a canvas. if set = 1 (default) graphics objects are resized in opaque mode = 0 only the outline of objects is drawn when resizing them The option opaque produces the best effect. It requires however a a reasonably fast workstation or response time.
Save primitives in this canvas in C++ macro file with GUI.
Save primitives in this canvas as a C++ macro file. This function loops on all the canvas primitives and for each primitive calls the object SavePrimitive function. When outputing floating point numbers, the default precision is 7 digits. The precision can be changed (via system.rootrc) by changing the value of the environment variable "Canvas.SavePrecision"
Toggle batch mode. However, if the canvas is created without a window then batch mode always stays set.
Set Width and Height of canvas to ww and wh respectively If ww and/or wh are greater than the current canvas window a scroll bar is automatically generated. Use this function to zoom in a canvas and naviguate via the scroll bars.
Fix canvas aspect ratio to current value if fixed is true.
If isfolder=kTRUE, the canvas can be browsed like a folder by default a canvas is not browsable.
Set the canvas scale in centimeters. This information is used by PostScript to set the page size. xsize = size of the canvas in centimeters along X ysize = size of the canvas in centimeters along Y if xsize and ysize are not equal to 0, then the scale factors will be computed to keep the ratio ysize/xsize independently of the canvas size (parts of the physical canvas will be unused). if xsize = 0 and ysize is not zero, then xsize will be computed to fit to the current canvas scale. If the canvas is resized, a new value for xsize will be recomputed. In this case the aspect ratio is not preserved. if both xsize = 0 and ysize = 0, then the scaling is automatic. the largest dimension will be allocated a size of 20 centimeters.
Static function returning "true" if transparency is supported.
gPad must exist (otherwise this call has no sense), and
either it's a gl-pad or we are on OS X with --enable-cocoa.
Set whether this canvas should be painted in grayscale, and re-paint it if necessary.
Probably, TPadPainter must be placed in a separate ROOT module - "padpainter" (the same as "histpainter"). But now, it's directly in a gpad dir, so, in case of default painter, no *.so should be loaded, no need in plugin managers. May change in future.
{wtopx=GetWindowTopX(); wtopy=fWindowTopY; ww=fWindowWidth; wh=fWindowHeight;}