library: libGui #include "TGProgressBar.h" |
TGProgressBar
class description - source file - inheritance tree (.pdf)
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
protected:
virtual void DoRedraw()
public:
virtual ~TGProgressBar()
static TClass* Class()
TGProgressBar::EBarType GetBarType() const
static FontStruct_t GetDefaultFontStruct()
static const TGGC& GetDefaultGC() const
TGProgressBar::EFillType GetFillType() const
TString GetFormat() const
Float_t GetMax() const
Float_t GetMin() const
Float_t GetPosition() const
Bool_t GetShowPos() const
void Increment(Float_t inc)
virtual TClass* IsA() const
void Reset()
virtual void SavePrimitive(ofstream& out, Option_t* option)
void SetBarColor(Pixel_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
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)
TGProgressBar::EBarType fBarType bar type (default kStandard)
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 const TGFont* fgDefaultFont
static TGGC* fgDefaultGC
public:
static const TGProgressBar::EBarType kStandard
static const TGProgressBar::EBarType kFancy
static const TGProgressBar::EFillType kSolidFill
static const TGProgressBar::EFillType kBlockFill
static const enum TGProgressBar:: kProgressBarStandardWidth
static const enum TGProgressBar:: kProgressBarTextWidth
static const enum TGProgressBar:: kBlockSize
static const enum TGProgressBar:: kBlockSpace
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.
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()
void SavePrimitive(ofstream &out, Option_t *option)
Save progress bar parameters as a C++ statement(s) on output stream out.
Inline Functions
void ~TGProgressBar()
void DoRedraw()
Float_t GetMin() const
Float_t GetMax() const
Float_t GetPosition() const
TGProgressBar::EFillType GetFillType() const
TGProgressBar::EBarType GetBarType() const
Bool_t GetShowPos() const
TString GetFormat() const
Bool_t UsePercent() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Fons Rademakers 10/10/2000
Last update: root/gui:$Name: $:$Id: TGProgressBar.cxx,v 1.11 2005/04/05 13:12:15 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.