CMS 3D CMS Logo

Functions
fireworks_root_gui Namespace Reference

Functions

TGHorizontalFrame * makeHorizontalFrame (TGCompositeFrame *p=nullptr)
 
TGLabel * makeLabel (TGCompositeFrame *p, const char *txt, int width, int lo=0, int ro=0, int to=2, int bo=0)
 

Function Documentation

◆ makeHorizontalFrame()

TGHorizontalFrame * fireworks_root_gui::makeHorizontalFrame ( TGCompositeFrame *  p = nullptr)

Definition at line 11 of file RootGuiUtils.cc.

References f, and AlCaHLTBitMon_ParallelJobs::p.

11  {
12  // Make standard horizontal frame.
13 
14  TGHorizontalFrame* f = new TGHorizontalFrame(p);
15  p->AddFrame(f, new TGLayoutHints(kLHintsNormal | kLHintsExpandX));
16  return f;
17  }
double f[11][100]

◆ makeLabel()

TGLabel * fireworks_root_gui::makeLabel ( TGCompositeFrame *  p,
const char *  txt,
int  width,
int  lo = 0,
int  ro = 0,
int  to = 2,
int  bo = 0 
)

Definition at line 19 of file RootGuiUtils.cc.

References cmsLHEtoEOSManager::l, AlCaHLTBitMon_ParallelJobs::p, and ApeEstimator_cff::width.

Referenced by FWGUIEventFilter::FWGUIEventFilter().

19  {
20  // Make standard label.
21 
22  TGLabel* l = new TGLabel(p, txt);
23  p->AddFrame(l, new TGLayoutHints(kLHintsNormal, lo, ro, to, bo));
24  l->SetTextJustify(kTextRight);
25  l->SetWidth(width);
26  l->ChangeOptions(l->GetOptions() | kFixedWidth);
27  return l;
28  }