library: libGui
#include "TGStatusBar.h"

TGStatusBar


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

class TGStatusBar : public TGHorizontalFrame

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

    protected:
TGStatusBar(const TGStatusBar&) virtual void DoRedraw() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() TGStatusBar& operator=(const TGStatusBar&) 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() void AddText(const char* text, Int_t partidx = 0) 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(ostream& out, Option_t* option = "") virtual void SetParts(Int_t npart) virtual void SetParts(Int_t* parts, 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)
 Create a status bar widget. By default it consist of one part.
 Multiple parts can be created using SetParts().
TGStatusBar(const TGStatusBar& sb)
 Copy constructor.
TGStatusBar& operator=(const TGStatusBar& sb)
 Equal operator.
~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()
 Return default font structure in use.
const TGGC & GetDefaultGC()
 Return default graphics context in use.
TGCompositeFrame * GetBarPart(Int_t npart)
 Returns bar part. That allows to put in the bar part
 something more interesting than text ;-)
TGDimension GetDefaultSize()
 Return default size.
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save a status bar widget as a C++ statement(s) on output stream out.
void AddText(const char *text, Int_t partidx = 0)
void Draw3DCorner(Bool_t corner)

Author: Fons Rademakers 23/01/98
Last update: root/gui:$Name: $:$Id: TGStatusBar.cxx,v 1.20 2006/07/03 16:10: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.