TGLabel


class description - source file - inheritance tree

class TGLabel : public TGFrame


    protected:
virtual void DoRedraw() public:
TGLabel TGLabel(const TGWindow* p, TGString* text, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = kChildFrame, ULong_t back = GetDefaultFrameBackground()) TGLabel TGLabel(const TGWindow* p, const char* text, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = kChildFrame, ULong_t back = GetDefaultFrameBackground()) TGLabel TGLabel(TGLabel&) virtual void ~TGLabel() static TClass* Class() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() const virtual TGDimension GetDefaultSize() const const TGString* GetText() const virtual TClass* IsA() const void SetText(TGString* newText) void SetText(const char* newText) void SetText(Int_t number) void SetTextJustify(Int_t tmode) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TGString* fText label text UInt_t fTWidth text width UInt_t fTHeight text height Int_t fTMode text drawing mode (ETextJustification) Bool_t fTextChanged has text changed GContext_t fNormGC graphics context used for drawing label FontStruct_t fFontStruct font to draw label static FontStruct_t fgDefaultFontStruct static TGGC fgDefaultGC

Class Description

                                                                      
 TGLabel                                                              
                                                                      
 This class handles GUI labels.                                       
                                                                      


TGLabel(const TGWindow *p, TGString *text, GContext_t norm, FontStruct_t font, UInt_t options, ULong_t back) : TGFrame(p, 1, 1, options, back)
 Create a label GUI object. TGLabel will become the owner of the
 text and will delete it in its dtor.

TGLabel(const TGWindow *p, const char *text, GContext_t norm, FontStruct_t font, UInt_t options, ULong_t back) : TGFrame(p, 1, 1, options, back)
 Create a label GUI object.

~TGLabel()
 Delete label.

void SetText(TGString *new_text)
 Set new text in label. After calling this method one needs to call
 the parents frame's Layout() method to force updating of the label size.
 The new_text is adopted by the TGLabel and will be properly deleted.

void DoRedraw()
 Redraw label widget.

FontStruct_t GetDefaultFontStruct()

const TGGC GetDefaultGC()



Inline Functions


            TGDimension GetDefaultSize() const
        const TGString* GetText() const
                   void SetText(const char* newText)
                   void SetText(Int_t number)
                   void SetTextJustify(Int_t tmode)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                TGLabel TGLabel(TGLabel&)


Author: Fons Rademakers 06/01/98
Last update: root/gui:$Name: $:$Id: TGLabel.cxx,v 1.3 2000/09/29 08:57:05 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.