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 <<
")";
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);
ClassImp(TGXYLayout) ClassImp(TGXYLayoutHints) TGXYLayoutHints
Constructor.
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 const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual TList * GetList() const
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.
if(pyself &&pyself!=Py_None)
TObject & operator=(const TObject &rhs)
TObject assignment operator.
virtual void Layout()
Recalculates the postion and the size of all widgets.
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save XY layout hints as a C++ statement(s) on output stream.
int main(int argc, char *argv[])
static RooMathCoreReg dummy
TGXYLayout & operator=(const TGXYLayout &)
assignment operator
virtual TGDimension GetDefaultSize() const
Returns the original size of the frame.