TGProgressBar


class description - source file - inheritance tree

class TGProgressBar : public TGFrame


    protected:
virtual void DoRedraw() public:
virtual void ~TGProgressBar() static TClass* Class() static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() const TGProgressBar::EFillType GetFillType() const Float_t GetMax() const Float_t GetMin() const Float_t GetPosition() const void Increment(Float_t inc) virtual TClass* IsA() const void Reset() void SetBarColor(ULong_t color) void SetBarColor(const char* color) void SetFillType(TGProgressBar::EFillType type) void SetPosition(Float_t pos) void SetRange(Float_t min, Float_t max) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t UsePercent() const

Data Members

    private:
protected:
Float_t fMin logical minimum value (default 0) Float_t fMax logical maximum value (default 100) Float_t fPos logical position [fMin,fMax] Int_t fPosPix position of progress bar in pixel coordinates Int_t fBarWidth progress bar width TGProgressBar::EFillType fType fill type (default kSolidFill) TString fFormat format used to show position not in percent Bool_t fShowPos show position value (default false) Bool_t fPercent show position in percent (default true) Bool_t fDrawBar if true draw only bar in DoRedraw() TGGC fBarColorGC progress bar drawing context GContext_t fNormGC text drawing graphics context FontStruct_t fFontStruct font used to draw position text static FontStruct_t fgDefaultFontStruct static TGGC fgDefaultGC static TGGC fgDefaultBarColorGC public:
static const TGProgressBar::EBarType kStandard static const TGProgressBar::EBarType kFancy static const TGProgressBar::EFillType kSolidFill static const TGProgressBar::EFillType kBlockFill static const enum TObject:: kProgressBarStandardWidth static const enum TObject:: kProgressBarTextWidth static const enum TObject:: kBlockSize static const enum TObject:: kBlockSpace


See also

TGHProgressBar, TGVProgressBar

Class Description

                                                                      
 TGProgressBar, TGHProgressBar and TGVProgressBar                     
                                                                      
 The classes in this file implement progress bars. Progress bars can  
 be used to show progress of tasks taking more then a few seconds.    
 TGProgressBar is an abstract base class, use either TGHProgressBar   
 or TGVProgressBar. TGHProgressBar can in addition show the position  
 as text in the bar.                                                  
                                                                      


void SetRange(Float_t min, Float_t max)
 Set min and max of progress bar. Must be called before position is set.

void SetPosition(Float_t pos)
 Set progress position between [min,max].

void Increment(Float_t inc)
 Increment progress position.

void Reset()
 Reset progress bar (i.e. set pos to 0).

void SetFillType(EFillType type)
 Set fill type.

void SetBarColor(ULong_t color)
 Set progress bar color.

void SetBarColor(const char *color)
 Set progress bar color.

FontStruct_t GetDefaultFontStruct()

const TGGC GetDefaultGC()



Inline Functions


                            void DoRedraw()
                         Float_t GetMin() const
                         Float_t GetMax() const
                         Float_t GetPosition() const
        TGProgressBar::EFillType GetFillType() const
                          Bool_t UsePercent() const
                         TClass* Class()
                         TClass* IsA() const
                            void ShowMembers(TMemberInspector& insp, char* parent)
                            void Streamer(TBuffer& b)
                            void StreamerNVirtual(TBuffer& b)
                            void ~TGProgressBar()


Author: Fons Rademakers 10/10/2000
Last update: root/gui:$Name: $:$Id: TGProgressBar.cxx,v 1.4 2001/11/01 11:39:41 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.