133 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberX";
134 else flag +=
" | TGXYLayoutHints::kLRubberX";
137 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberY";
138 else flag +=
" | TGXYLayoutHints::kLRubberY";
141 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberW";
142 else flag +=
" | TGXYLayoutHints::kLRubberW";
145 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberH";
146 else flag +=
" | TGXYLayoutHints::kLRubberH";
149 out <<
", new TGXYLayoutHints(" <<
GetX() <<
", " <<
GetY() <<
", " 155 out <<
", " << flag <<
")";
170 fFirstWidth = fFirstHeight = 0;
175 fTWidth =
gVirtualX->TextWidth(fs,
"1234567890", 10) / 10;
176 gVirtualX->GetFontProperties(fs, fTHeight, dummy);
184 main->
Resize(width, height);
195 fFirstWidth(xyl.fFirstWidth),
196 fFirstHeight(xyl.fFirstHeight),
197 fTWidth(xyl.fTWidth),
198 fTHeight(xyl.fTHeight)
245 if (xFactor < 1.0) xFactor = 1.0;
247 if (yFactor < 1.0) yFactor = 1.0;
261 newX = (
Int_t)(temp + 0.5);
266 newY = (
Int_t)(temp + 0.5);
271 newW = (
UInt_t)(temp + 0.5);
276 newH = (
UInt_t)(temp + 0.5);
static FontStruct_t GetDefaultFontStruct()
Static returning label default font struct.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual TGDimension GetDefaultSize() const
Returns the original size of the frame.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
TGXYLayout(const TGXYLayout &)
copy constructor
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save XY layout manager as a C++ statement(s) on output stream.
int main(int argc, char **argv)
virtual TList * GetList() const
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Layout()
Recalculates the postion and the size of all widgets.
TGXYLayoutHints(Double_t x, Double_t y, Double_t w, Double_t h, UInt_t rubberFlag=kLRubberX|kLRubberY)
Constructor.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save XY layout hints as a C++ statement(s) on output stream.
static RooMathCoreReg dummy
TGXYLayout & operator=(const TGXYLayout &)
assignment operator