TGHotString


class description - source file - inheritance tree

class TGHotString : public TGString

    private:
protected:
void DrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y) public:
TGHotString TGHotString(const char* s) TGHotString TGHotString(TGHotString&) void ~TGHotString() static TClass* Class() 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) Int_t GetHotChar() const virtual TClass* IsA() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
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) public:

Class Description

                                                                      
 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.            
                                                                      


TGHotString(const char *s) : TGString(s)
 Create a hot string.

void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
 Draw a hot string and underline the hot character.

void DrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
 Draw a hot string in a column with width w. If string is longer than
 w wrap it to next line.

void DrawHotChar(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
 Draw the underline under the hot character.



Inline Functions


              Int_t GetHotChar() const
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
        TGHotString TGHotString(TGHotString&)
               void ~TGHotString()


Author: Fons Rademakers 05/01/98
Last update: root/gui:$Name: $:$Id: TGString.cxx,v 1.1.1.1 2000/05/16 17:00:42 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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.