library: libGui
#include "TGString.h"

TGHotString


class description - source file - inheritance tree (.pdf)

class TGHotString : public TGString

Inheritance Chart:
TString
<-
TGString
<-
TGHotString

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


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


Author: Fons Rademakers 05/01/98
Last update: root/gui:$Name: $:$Id: TGString.cxx,v 1.5 2004/07/25 07:21:45 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - 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.