/usr/include/root/TGString.h is in libroot-gui-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 72 73 74 75 76 77 78 79 80 | // @(#)root/gui:$Id$
// Author: Fons Rademakers 05/01/98
/*************************************************************************
* 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_TGString
#define ROOT_TGString
//////////////////////////////////////////////////////////////////////////
// //
// TGString and TGHotString //
// //
// TGString wraps a TString and adds some graphics routines like //
// drawing, size of string on screen depending on font, etc. //
// TGHotString is a string with a "hot" character unerlined. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_GuiTypes
#include "GuiTypes.h"
#endif
class TGString : public TString {
public:
TGString() : TString() { }
TGString(const char *s) : TString(s) { }
TGString(Int_t number) : TString() { *this += number; }
TGString(const TGString *s);
virtual ~TGString() { }
Int_t GetLength() const { return Length(); }
const char *GetString() const { return Data(); }
virtual void SetString(const char *s) { *this = s; }
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y);
virtual void DrawWrapped(Drawable_t id, GContext_t gc,
Int_t x, Int_t y, UInt_t w, FontStruct_t font);
virtual Int_t GetLines(FontStruct_t font, UInt_t w);
ClassDef(TGString,0) // Graphics string
};
class TGHotString : public TGString {
protected:
char fHotChar; // hot character
Int_t fHotPos; // position of hot character
GContext_t fLastGC; // context used during last drawing
Int_t fOff1; // variable used during drawing (cache)
Int_t fOff2; // variable used during drawing (cache)
void DrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y);
public:
TGHotString(const char *s);
Int_t GetHotChar() const { return fHotChar; }
Int_t GetHotPos() const { return fHotPos; }
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y);
virtual void DrawWrapped(Drawable_t id, GContext_t gc,
Int_t x, Int_t y, UInt_t w, FontStruct_t font);
ClassDef(TGHotString,0) // Graphics string with hot character
};
#endif
|