/usr/include/root/TDialogCanvas.h is in libroot-graf2d-gpad-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | // @(#)root/gpad:$Id$
// Author: Rene Brun 03/07/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TDialogCanvas
#define ROOT_TDialogCanvas
//////////////////////////////////////////////////////////////////////////
// //
// TDialogCanvas //
// //
// A specialized canvas to set attributes. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TCanvas
#include "TCanvas.h"
#endif
#ifndef ROOT_TAttText
#include "TAttText.h"
#endif
class TDialogCanvas : public TCanvas, public TAttText {
private:
TDialogCanvas(const TDialogCanvas&);
TDialogCanvas& operator=(const TDialogCanvas&);
protected:
TObject *fRefObject; //Pointer to object to set attributes
TPad *fRefPad; //Pad containing object
public:
TDialogCanvas();
TDialogCanvas(const char *name, const char *title, Int_t ww, Int_t wh);
TDialogCanvas(const char *name, const char *title, Int_t wtopx, Int_t wtopy, UInt_t ww, UInt_t wh);
virtual ~TDialogCanvas();
virtual void Apply(const char *action="");
virtual void BuildStandardButtons();
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0);
TObject *GetRefObject() const { return fRefObject; }
TPad *GetRefPad() const { return fRefPad; }
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2);
virtual void RecursiveRemove(TObject *obj);
virtual void SetBorderMode(Short_t bordermode){ fBorderMode = bordermode; }
virtual void SetGrid(Int_t valuex = 1, Int_t valuey = 1);
virtual void SetLogx(Int_t value = 1);
virtual void SetLogy(Int_t value = 1);
virtual void SetName(const char *name) { fName = name; }
virtual void SetRefObject(TObject*obj) { fRefObject=obj; }
virtual void SetRefPad(TPad *pad) { fRefPad=pad; }
virtual void x3d(Option_t *option="");
ClassDef(TDialogCanvas,0) //A specialized canvas to set attributes.
};
inline void TDialogCanvas::Divide(Int_t, Int_t, Float_t, Float_t, Int_t) { }
inline void TDialogCanvas::SetGrid(Int_t, Int_t) { }
inline void TDialogCanvas::SetLogx(Int_t) { }
inline void TDialogCanvas::SetLogy(Int_t) { }
inline void TDialogCanvas::x3d(Option_t *) { }
#endif
|