/usr/include/root/TMathText.h is in libroot-graf2d-graf-dev 5.34.14-1build1.
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 | // @(#)root/graf:$Id: TMathText.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Yue Shi Lai 12/12/09
/*************************************************************************
* Copyright (C) 2009, Yue Shi Lai. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TMathText
#define ROOT_TMathText
#ifndef ROOT_Riosfwd
#include "Riosfwd.h"
#endif
#ifndef ROOT_TText
#include "TText.h"
#endif
#ifndef ROOT_TAttFill
#include "TAttFill.h"
#endif
class TMathTextRenderer;
class TMathText
: public TText, public TAttFill {
protected:
void *fRenderer;
TMathText &operator=(const TMathText &);
void Render(const Double_t x, const Double_t y,
const Double_t size, const Double_t angle,
const Char_t *t, const Int_t length);
void GetSize(Double_t &x0, Double_t &y0,
Double_t &x1, Double_t &y1,
const Double_t size, const Double_t angle,
const Char_t *t, const Int_t length);
void GetAlignPoint(Double_t &x0, Double_t &y0,
const Double_t size, const Double_t angle,
const Char_t *t, const Int_t length,
const Short_t align);
public:
enum {
kTextNDC = BIT(14)
};
TMathText(void);
TMathText(
Double_t x, Double_t y, const char *text);
TMathText(const TMathText &text);
virtual ~TMathText(void);
void Copy(TObject &text) const;
TMathText *DrawMathText(
Double_t x, Double_t y, const char *text);
void GetBoundingBox(
UInt_t &w, UInt_t &h, Bool_t angle = kFALSE);
Double_t GetXsize(void);
Double_t GetYsize(void);
virtual void Paint(Option_t *option = "");
virtual void PaintMathText(
Double_t x, Double_t y, Double_t angle, Double_t size,
const char *text);
virtual void SavePrimitive(
std::ostream &out, Option_t *option = "");
friend class TMathTextRenderer;
ClassDef(TMathText,1)
};
#endif
|