library: libGui
#include "TGProgressBar.h"

TGProgressBar


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

class TGProgressBar : public TGFrame

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGProgressBar
<-
TGHProgressBar
TGVProgressBar
 
    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() virtual void Format(const char* format = "%.2f") Pixel_t GetBarColor() const TGProgressBar::EBarType GetBarType() const static FontStruct_t GetDefaultFontStruct() static const TGGC& GetDefaultGC() TGProgressBar::EFillType GetFillType() const FontStruct_t GetFontStruct() const TString GetFormat() const Float_t GetMax() const Float_t GetMin() const GContext_t GetNormGC() const Float_t GetPosition() const Bool_t GetShowPos() const const char* GetValueFormat() const void Increment(Float_t inc) virtual TClass* IsA() const virtual void Percent(Bool_t on) virtual void Reset() virtual void SavePrimitive(ostream& out, Option_t* option = "") virtual void SetBarColor(Pixel_t color) void SetBarColor(const char* color = "blue") void SetBarType(TGProgressBar::EBarType type) void SetFillType(TGProgressBar::EFillType type) virtual void SetForegroundColor(Pixel_t pixel) void SetMax(Float_t max) void SetMin(Float_t min) void SetPosition(Float_t pos) void SetRange(Float_t min, Float_t max) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void ShowPos(Bool_t on) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t UsePercent() const

Data Members


    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 fFillType *OPTION={GetMethod="GetFillType";SetMethod="SetFillType";Items=(kSolidFill=Solid",kBlockFill="Block")}* TGProgressBar::EBarType fBarType *OPTION={GetMethod="GetBarType";SetMethod="SetBarType";Items=(kStandard="Standard",kFancy="Fancy")}* 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

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.
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 SetBarType(EBarType type)
 Set bar type.
void SetBarColor(ULong_t color)
 Set progress bar color.
void SetBarColor(const char *color)
 Set progress bar color.
void Format(const char *format)
 Set format for displaying a value.
FontStruct_t GetDefaultFontStruct()
 Return default font structure in use.
const TGGC & GetDefaultGC()
 Return default graphics context in use.
void SetForegroundColor(Pixel_t pixel)
 Change text color drawing.
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save progress bar parameters as a C++ statement(s) on output stream out.
Bool_t fDrawBar; // if true draw only bar in DoRedraw()
virtual ~TGProgressBar()
Float_t GetMin()
Float_t GetMax()
Float_t GetPosition()
EFillType GetFillType()
EBarType GetBarType()
Bool_t GetShowPos()
TString GetFormat()
const char* GetValueFormat()
Bool_t UsePercent()
Pixel_t GetBarColor()
GContext_t GetNormGC()
FontStruct_t GetFontStruct()
void Percent(Bool_t on)
void ShowPos(Bool_t on)
void SetMin(Float_t min)
void SetMax(Float_t max)

Author: Fons Rademakers 10/10/2000
Last update: root/gui:$Name: $:$Id: TGProgressBar.cxx,v 1.17 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.