library: libGui
#include "TGStatusBar.h"

TGStatusBar


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

class TGStatusBar : public TGHorizontalFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGHorizontalFrame
<-
TGStatusBar

    protected:
virtual void DoRedraw() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() const public:
TGStatusBar(const TGWindow* p = 0, UInt_t w = 4, UInt_t h = 2, UInt_t options = kSunkenFrame|kHorizontalFrame, Pixel_t back = GetDefaultFrameBackground()) TGStatusBar(const TGStatusBar&) virtual ~TGStatusBar() static TClass* Class() void Draw3DCorner(Bool_t corner) virtual void DrawBorder() TGCompositeFrame* GetBarPart(Int_t npart) const virtual TGDimension GetDefaultSize() const virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void SetParts(Int_t* parts, Int_t npart) virtual void SetParts(Int_t npart) virtual void SetText(TGString* text, Int_t partidx = 0) virtual void SetText(const char* text, Int_t partidx = 0) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
static TGLayoutHints* fgHints hints to add parts (kLHintsTop|kLHintsLeft,0,0,0,0) protected:
TGStatusBarPart** fStatusPart frames containing statusbar text Int_t* fParts size of parts (in percent of total width) Int_t fNpart number of parts Int_t fYt y drawing position (depending on font) Int_t* fXt x position for each part Bool_t f3DCorner draw 3D corner (drawn by default) static const TGFont* fgDefaultFont static TGGC* fgDefaultGC

Class Description

                                                                      
 TGStatusBar                                                          
                                                                      
 Provides a StatusBar widget.                                         
                                                                      


TGStatusBar(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back) : TGHorizontalFrame(p, w, h, options, back)
 Create a status bar widget. By default it consist of one part.
 Multiple parts can be created using SetParts().

~TGStatusBar()
 Delete status bar widget.

void SetText(TGString *text, Int_t partidx)
 Set text in partition partidx in status bar. The TGString is
 adopted by the status bar.

void SetText(const char *text, Int_t partidx)
 Set text in partion partidx in status bar.

void DrawBorder()
 Draw the status bar border (including cute 3d corner).

void DoRedraw()
 Redraw status bar.

void SetParts(Int_t *parts, Int_t npart)
 Divide the status bar in nparts. Size of each part is given in parts
 array (percentual).

void SetParts(Int_t npart)
 Divide the status bar in npart equal sized parts.

FontStruct_t GetDefaultFontStruct()

const TGGC& GetDefaultGC()

TGCompositeFrame* GetBarPart(Int_t npart) const
 Returns bar part. That allows to put in the bar part
 something more interesting than text ;-)

TGDimension GetDefaultSize() const

void SavePrimitive(ofstream &out, Option_t *option)
 Save a status bar widget as a C++ statement(s) on output stream out.



Inline Functions


               void Draw3DCorner(Bool_t corner)
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
        TGStatusBar TGStatusBar(const TGStatusBar&)


Author: Fons Rademakers 23/01/98
Last update: root/gui:$Name: $:$Id: TGStatusBar.cxx,v 1.12 2004/10/21 14:25:30 rdm 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.