12#ifndef ROOT_TGProgressBar 
   13#define ROOT_TGProgressBar 
  114                     const char *
format = 
"%.2f");
 
 
Handle_t GContext_t
Graphics context handle.
 
ULong_t Pixel_t
Pixel value.
 
Handle_t FontStruct_t
Pointer to font structure.
 
#define ClassDefOverride(name, id)
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
 
Option_t Option_t TPoint TPoint percent
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
Encapsulate fonts used in the GUI system.
 
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
 
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
 
static Pixel_t GetWhitePixel()
Get white pixel value.
 
UInt_t fHeight
frame height
 
Encapsulate a graphics context used in the low level graphics.
 
Pixel_t GetForeground() const
 
void ShowPosition(Bool_t set=kTRUE, Bool_t percent=kTRUE, const char *format="%.2f")
Show postion text, either in percent or formatted according format.
 
void DoRedraw() override
Draw horizontal progress bar.
 
TGHProgressBar(const TGWindow *p=nullptr, 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)
Horizontal progress bar constructor.
 
~TGHProgressBar() override
 
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a horizontal progress bar as a C++ statement(s) on output stream out.
 
TGClient * fClient
Connection to display server.
 
The classes in this file implement progress bars.
 
static const TGFont * fgDefaultFont
 
Bool_t fPercent
show position in percent (default true)
 
void Increment(Float_t inc)
Increment progress position.
 
TString fFormat
format used to show position not in percent
 
void SetForegroundColor(Pixel_t pixel) override
Change text color drawing.
 
Pixel_t GetBarColor() const
 
static TGGC * fgDefaultGC
 
EBarType fBarType
OPTION={GetMethod="GetBarType";SetMethod="SetBarType";Items=(kStandard="Standard",...
 
static const TGGC & GetDefaultGC()
Return default graphics context in use.
 
Float_t fPos
logical position [fMin,fMax]
 
Bool_t UsePercent() const
 
Float_t fMax
logical maximum value (default 100)
 
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.
 
GContext_t fNormGC
text drawing graphics context
 
Int_t fBarWidth
progress bar width
 
FontStruct_t fFontStruct
font used to draw position text
 
FontStruct_t GetFontStruct() const
 
void SetPosition(Float_t pos)
Set progress position between [min,max].
 
Bool_t fDrawBar
if true draw only bar in DoRedraw()
 
Bool_t GetShowPos() const
 
TString GetFormat() const
 
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
 
Float_t fMin
logical minimum value (default 0)
 
TGGC fBarColorGC
progress bar drawing context
 
virtual void Format(const char *format="%.2f")
Set format for displaying a value.
 
void SetFillType(EFillType type)
Set fill type.
 
Float_t GetPosition() const
 
virtual void SetBarColor(Pixel_t color)
Set progress bar color.
 
void SetBarType(EBarType type)
Set bar type.
 
EBarType GetBarType() const
 
GContext_t GetNormGC() const
 
void DoRedraw() override=0
Redraw the frame.
 
~TGProgressBar() override
 
const char * GetValueFormat() const
 
virtual void Percent(Bool_t on)
 
@ kProgressBarStandardWidth
 
void SetRange(Float_t min, Float_t max)
Set min and max of progress bar.
 
EFillType GetFillType() const
 
Int_t fPosPix
position of progress bar in pixel coordinates
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save progress bar parameters as a C++ statement(s) on output stream out.
 
EFillType fFillType
OPTION={GetMethod="GetFillType";SetMethod="SetFillType";Items=(kSolidFill=Solid",kBlockFill="Block")}
 
virtual void ShowPos(Bool_t on)
 
Bool_t fShowPos
show position value (default false)
 
virtual void Reset()
Reset progress bar (i.e. set pos to 0).
 
void DoRedraw() override
Draw vertical progress bar.
 
~TGVProgressBar() override
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a vertical progress bar as a C++ statement(s) on output stream out.
 
void Percent(Bool_t) override
 
void ShowPos(Bool_t) override
 
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
 
TGVProgressBar(const TGWindow *p=nullptr, UInt_t w=kProgressBarTextWidth, UInt_t h=4, Pixel_t back=GetWhitePixel(), Pixel_t barcolor=GetDefaultSelectedBackground(), GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t options=kDoubleBorder|kSunkenFrame)
Constructor.
 
ROOT GUI Window base class.
 
const char * Data() const