TGTextFrame


class description - source file - inheritance tree

class TGTextFrame : public TGFrame


    protected:
void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h) void Expand(Int_t newSize) void ScrollWindow(Int_t new_top) public:
TGTextFrame TGTextFrame(TGWindow* parent, UInt_t w, UInt_t h, UInt_t options, ULong_t back = fgDefaultFrameBackground) TGTextFrame TGTextFrame(TGTextFrame&) virtual void ~TGTextFrame() TClass* Class() virtual void Clear(Option_t* opt) Int_t GetLines() const Int_t GetVisibleLines() const virtual Bool_t HandleExpose(Event_t* event) virtual TClass* IsA() const Bool_t LoadBuffer(const char* txtbuf) Bool_t LoadFile(const char* fname) void SetTopLine(Int_t new_top) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
char** fChars lines of text Int_t* fLnlen length of each line Int_t fTHeight height of line of text Int_t fNlines number of lines Int_t fMaxLines maximum number of lines in fChars and fLnlen Int_t fTop current top line FontStruct_t fFont font used to display text GContext_t fGC graphics context to display text static FontStruct_t fgDefaultFontStruct

Class Description

                                                                      
 TGTextView                                                           
                                                                      
 A TGTextView displays a file or a text buffer in a frame with a      
 vertical scrollbar. Internally it uses a TGTextFrame which displays  
 the text.                                                            
                                                                      


TGTextFrame(TGWindow *parent, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGFrame(parent, w, h, options, back)
 Create a text frame.

~TGTextFrame()
 Delete a text frame object.

void Expand(Int_t newSize)
 Expand or shrink lines container to newSize.

void Clear(Option_t *)
 Clear text frame.

Bool_t LoadFile(const char *filename)
 Load file into text frame.

Bool_t LoadBuffer(const char *txtbuf)
 Load 0 terminated txtbuf buffer into text frame.

void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw lines in exposed region.

void SetTopLine(Int_t new_top)
 Set new top line.

void ScrollWindow(Int_t new_top)
 Scrollwindow to make new_top the first line being displayed.



Inline Functions


              Int_t GetLines() const
              Int_t GetVisibleLines() const
             Bool_t HandleExpose(Event_t* event)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
        TGTextFrame TGTextFrame(TGTextFrame&)


Author: Fons Rademakers 23/02/98
Last update: 2.23/09 17/11/99 15.24.43 by Rene Brun
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.