CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
fireworks_root_gui Namespace Reference

Functions

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

Function Documentation

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

Definition at line 12 of file RootGuiUtils.cc.

References f.

13 {
14  // Make standard horizontal frame.
15 
16  TGHorizontalFrame* f = new TGHorizontalFrame(p);
17  p->AddFrame(f, new TGLayoutHints(kLHintsNormal|kLHintsExpandX));
18  return f;
19 }
double f[11][100]
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 21 of file RootGuiUtils.cc.

References prof2calltree::l.

Referenced by FWGUIEventFilter::FWGUIEventFilter().

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