library: libGui
#include "TGProgressBar.h"

TGHProgressBar


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

class TGHProgressBar : public TGProgressBar

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGProgressBar
<-
TGHProgressBar

    protected:
virtual void DoRedraw() public:
TGHProgressBar(const TGWindow* p = 0, UInt_t w = 4, UInt_t h = kProgressBarTextWidth, Pixel_t back = GetWhitePixel(), Pixel_t barcolor = GetDefaultSelectedBackground(), GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), UInt_t options = kDoubleBorder|kSunkenFrame) TGHProgressBar(const TGWindow* p, TGProgressBar::EBarType type, UInt_t w) TGHProgressBar(const TGHProgressBar&) virtual ~TGHProgressBar() static TClass* Class() virtual TGDimension GetDefaultSize() const virtual TClass* IsA() const virtual void SavePrimitive(ofstream& out, Option_t* option) virtual void ShowMembers(TMemberInspector& insp, char* parent) void ShowPosition(Bool_t set = kTRUE, Bool_t percent = kTRUE, const char* format = "%.2f") virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members




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.                                                  
                                                                      


TGHProgressBar(const TGWindow *p, EBarType type, UInt_t w) : TGProgressBar(p, w, type == kStandard ? kProgressBarStandardWidth : kProgressBarTextWidth, type == kStandard ? GetDefaultFrameBackground() : fgWhitePixel, fgDefaultSelectedBackground, GetDefaultGC()(), GetDefaultFontStruct(), type == kStandard ? kSunkenFrame : kDoubleBorder | kSunkenFrame)
 Simple constructor allow you to create either a standard progress
 bar, or a more fancy progress bar (fancy means: double sized border,
 white background and a bit wider to allow for text to be printed
 in the bar.

void ShowPosition(Bool_t set, Bool_t percent, const char *format)
 Show postion text, either in percent or formatted according format.

void DoRedraw()
 Draw horizontal progress bar.

void SavePrimitive(ofstream &out, Option_t *option)
 Save a horizontal progress bar as a C++ statement(s) on output stream out



Inline Functions


                  void ~TGHProgressBar()
        TGHProgressBar TGHProgressBar(const TGWindow* p, TGProgressBar::EBarType type, UInt_t w)
           TGDimension GetDefaultSize() const
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)
        TGHProgressBar TGHProgressBar(const TGHProgressBar&)


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.