131      for (
int i = 0; i < 
fNpart; i++) {
 
 
  148      Error(
"SetText", 
"partidx out of range (0,%d)", 
fNpart-1);
 
 
  170      Error(
"GetText", 
"partidx out of range (0,%d)", 
fNpart-1);
 
 
  185   for (i = 0; i < 
fNpart; i++) {
 
  193   for (i = 0; i < 
fNpart; i++) {
 
 
  244   for (
int i = 0; i < 
fNpart; i++)
 
 
  255      Warning(
"SetParts", 
"must be at least one part");
 
  259      Error(
"SetParts", 
"to many parts (limit is 15)");
 
  264   for (i = 0; i < 
fNpart; i++)
 
  277   for (i = 0; i < 
npart; i++) {
 
  283         Error(
"SetParts", 
"sum of part > 100");
 
 
  296      Warning(
"SetParts", 
"must be at least one part");
 
  300      Error(
"SetParts", 
"to many parts (limit is 40)");
 
  305   for (i = 0; i < 
fNpart; i++)
 
  319   for (i = 0; i < 
npart; i++) {
 
 
  368   for (
int i = 0; i < 
fNpart; i++) {
 
 
  381   out << 
"\n   // status bar\n";
 
  383   out << 
"   TGStatusBar *" << 
GetName() << 
" = new TGStatusBar(" << 
fParent->GetName() << 
"," << 
GetWidth() << 
"," 
  387      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");\n";
 
  390      out << 
"   " << 
GetName() << 
"->SetParts((Int_t []) {";
 
  392         out << (i == 0 ? 
"" : 
", ") << 
fParts[i];
 
  393      out << 
"}, " << 
fNpart << 
");\n";
 
  397         out << 
"   " << 
GetName() << 
"->SetText(\"" 
  407            el->fFrame->SavePrimitive(out, 
option);
 
  409            el->fLayout->SavePrimitive(out, 
option);
 
 
ULong_t Pixel_t
Pixel value.
 
Handle_t FontStruct_t
Pointer to font structure.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char text
 
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
 
The base class for composite widgets (menu bars, list boxes, etc.).
 
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
 
virtual TList * GetList() const
 
Int_t MustCleanup() const override
 
UInt_t GetDefaultHeight() const override
 
TList * fList
container of frame elements
 
Encapsulate fonts used in the GUI system.
 
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
 
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
 
UInt_t fHeight
frame height
 
Int_t fBorderWidth
frame border width
 
void DoRedraw() override
Redraw the frame.
 
void MapWindow() override
map window
 
static const TGGC & GetHilightGC()
Get highlight color graphics context.
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
static const TGGC & GetShadowGC()
Get shadow color graphics context.
 
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
 
static const TGGC & GetBckgndGC()
Get background color graphics context.
 
Encapsulate a graphics context used in the low level graphics.
 
A composite frame that layout their children in horizontal way.
 
TGClient * fClient
Connection to display server.
 
Handle_t fId
X11/Win32 Window identifier.
 
const TGString * GetText() const
 
~TGStatusBarPart() override
 
void DoRedraw() override
Draw string in statusbar part frame.
 
void SetText(TGString *text)
Set text in this part of the statusbar.
 
TGStatusBarPart(const TGWindow *p, Int_t h, Int_t y, ULong_t back=GetDefaultFrameBackground())
Create statusbar part frame.
 
Provides a StatusBar widget.
 
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
 
Int_t * fParts
size of parts (in percent of total width)
 
static const TGGC & GetDefaultGC()
Return default graphics context in use.
 
const char * GetText(Int_t partidx=0) const
return text in the part partidx
 
Int_t * fXt
x position for each part
 
~TGStatusBar() override
Delete status bar widget.
 
void DrawBorder() override
Draw the status bar border (including cute 3d corner).
 
void DoRedraw() override
Redraw status bar.
 
static const TGFont * fgDefaultFont
 
Int_t fYt
y drawing position (depending on font)
 
TGDimension GetDefaultSize() const override
Return default size.
 
TGCompositeFrame * GetBarPart(Int_t npart) const
Returns bar part.
 
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
 
Int_t fNpart
number of parts
 
static TGGC * fgDefaultGC
 
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
 
Bool_t f3DCorner
draw 3D corner (drawn by default)
 
TGStatusBar(const TGStatusBar &)=delete
 
friend class TGStatusBarPart
 
TGStatusBarPart ** fStatusPart
frames containing statusbar text
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a status bar widget as a C++ statement(s) on output stream out.
 
TGString wraps a TString and adds some graphics routines like drawing, size of string on screen depen...
 
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
 
ROOT GUI Window base class.
 
const TGWindow * fParent
Parent window.
 
@ kEditDisableGrab
window grab cannot be edited
 
virtual void DestroyWindow()
destroy window
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
UInt_t fEditDisabled
flags used for "guibuilding"
 
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
 
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.