12 #ifndef ROOT_TGProgressBar 13 #define ROOT_TGProgressBar 92 virtual void Format(
const char *format =
"%.2f");
126 const char *format =
"%.2f");
virtual ~TGVProgressBar()
EBarType GetBarType() const
static const TGGC & GetDefaultGC()
Return default graphics context in use.
FontStruct_t GetFontStruct() const
void Increment(Float_t inc)
Increment progress position.
Pixel_t GetBarColor() const
Float_t GetPosition() const
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual ~TGHProgressBar()
static const TGFont * fgDefaultFont
virtual void DoRedraw()=0
Redraw the frame.
Bool_t GetShowPos() const
const char * GetValueFormat() const
virtual void SetBarColor(Pixel_t color)
Set progress bar color.
TString GetFormat() const
#define ClassDef(name, id)
virtual void Percent(Bool_t on)
virtual void Format(const char *format="%.2f")
Set format for displaying a value.
virtual void SetForegroundColor(Pixel_t pixel)
Change text color drawing.
virtual void ShowPos(Bool_t on)
Pixel_t GetForeground() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void SetBarType(EBarType type)
Set bar type.
void SetRange(Float_t min, Float_t max)
Set min and max of progress bar.
EFillType GetFillType() const
void SetPosition(Float_t pos)
Set progress position between [min,max].
virtual void Reset()
Reset progress bar (i.e. set pos to 0).
Bool_t UsePercent() const
GContext_t GetNormGC() const
static TGGC * fgDefaultGC
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save progress bar parameters as a C++ statement(s) on output stream out.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
TGProgressBar(const TGWindow *p, UInt_t w, UInt_t h, Pixel_t back=GetWhitePixel(), Pixel_t barcolor=GetDefaultSelectedBackground(), GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kDoubleBorder|kSunkenFrame)
Create progress bar.
void SetFillType(EFillType type)
Set fill type.
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
const char * Data() const