#ifndef ROOT_TGStatusBar
#define ROOT_TGStatusBar
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
class TGStatusBarPart;
class TGStatusBar : public TGHorizontalFrame {
friend class TGStatusBarPart;
private:
TGStatusBar(const TGStatusBar&);
TGStatusBar& operator=(const TGStatusBar&);
protected:
TGStatusBarPart **fStatusPart;
Int_t *fParts;
Int_t fNpart;
Int_t fYt;
Int_t *fXt;
Bool_t f3DCorner;
static const TGFont *fgDefaultFont;
static TGGC *fgDefaultGC;
virtual void DoRedraw();
static FontStruct_t GetDefaultFontStruct();
static const TGGC &GetDefaultGC();
public:
TGStatusBar(const TGWindow *p = 0, UInt_t w = 4, UInt_t h = 2,
UInt_t options = kSunkenFrame | kHorizontalFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGStatusBar();
virtual void DrawBorder();
virtual void SetText(TGString *text, Int_t partidx = 0);
virtual void SetText(const char *text, Int_t partidx = 0);
void AddText(const char *text, Int_t partidx = 0)
{ SetText(text, partidx); }
const char *GetText(Int_t partidx = 0) const;
virtual void SetParts(Int_t npart);
virtual void SetParts(Int_t *parts, Int_t npart);
void Draw3DCorner(Bool_t corner) { f3DCorner = corner; }
TGCompositeFrame *GetBarPart(Int_t npart) const;
TGDimension GetDefaultSize() const;
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TGStatusBar,0)
};
#endif
Last change: Mon Dec 8 10:00:33 2008
Last generated: 2008-12-08 10:00
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.