89 fPointsize (f.fPointsize),
92 fUnderline (f.fUnderline),
93 fOverstrike(f.fOverstrike) { }
112 struct LayoutChunk_t;
130 TGTextLayout(): fFont(NULL), fString(
""), fWidth(0), fNumChunks(0), fChunks(NULL) {}
141 void ToPostscript(
TString *dst)
const;
173 :
TNamed(name,
""),
TRefCnt(), fFontStruct(0), fFontH(0), fFM(),
174 fFA(), fNamedHash(0), fTabWidth(0), fUnderlinePos(0), fUnderlineHeight(0), fBarHeight(0)
177 for (
Int_t i=0; i<256; i++) {
186 LayoutChunk_t *NewChunk(
TGTextLayout *layout,
int *maxPtr,
187 const char *start,
int numChars,
188 int curX,
int newX,
int y)
const;
199 Int_t TextWidth(
const char *
string,
Int_t numChars = -1)
const;
200 Int_t XTextWidth(
const char *
string,
Int_t numChars = -1)
const;
208 Int_t MeasureChars(
const char *source,
Int_t numChars,
Int_t maxLength,
222 struct FontStateMap_t;
223 struct XLFDAttributes_t;
237 const char *GetUid(
const char *
string);
238 Bool_t ParseXLFD(
const char *
string, XLFDAttributes_t *xa);
240 int FindStateNum(
const FontStateMap_t *map,
const char *strKey);
241 const char *FindStateString(
const FontStateMap_t *map,
int numKey);
242 Bool_t FieldSpecified(
const char *field);
255 void FreeFont(
const TGFont *font);
261 void FreeAttributeInfo(
char **info);
262 char **GetFontFamilies();
263 void FreeFontFamilies(
char **f);
265 const char *NameOfFont(
TGFont *font);
FontAttributes_t & operator=(const FontAttributes_t &f)
Collectable string class.
Definitions for TRefCnt, base class for reference counted objects.
friend class TGTextLayout
TRObject operator()(const T1 &t1) const
FontAttributes_t GetFontAttributes() const
THashTable implements a hash table to store TObject's.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
void Print(std::ostream &os, const OptionType &opt)
FontStruct_t GetFontStruct() const
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
FontAttributes_t(const FontAttributes_t &f)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
FontH_t GetFontHandle() const