#ifndef ROOT_TGString
#define ROOT_TGString
#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)
};
class TGHotString : public TGString {
protected:
char fHotChar;
Int_t fHotPos;
GContext_t fLastGC;
Int_t fOff1;
Int_t fOff2;
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)
};
#endif
Last change: Wed Jun 25 08:42:55 2008
Last generated: 2008-06-25 08:42
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.