TGHotString


class description - source file - inheritance tree

class TGHotString : public TGString


    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() 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)

Data Members

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)

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)
        TGHotString TGHotString(TGHotString&)
               void ~TGHotString()


Author: Fons Rademakers 05/01/98
Last update: 2.23/03 07/09/99 23.34.51 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.