143 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberX";
144 else flag +=
" | TGXYLayoutHints::kLRubberX";
147 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberY";
148 else flag +=
" | TGXYLayoutHints::kLRubberY";
151 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberW";
152 else flag +=
" | TGXYLayoutHints::kLRubberW";
155 if (flag.
Length() == 0) flag =
"TGXYLayoutHints::kLRubberH";
156 else flag +=
" | TGXYLayoutHints::kLRubberH";
159 out <<
", new TGXYLayoutHints(" <<
GetX() <<
", " <<
GetY() <<
", "
165 out <<
", " << flag <<
")";
205 fFirstWidth(xyl.fFirstWidth),
206 fFirstHeight(xyl.fFirstHeight),
207 fTWidth(xyl.fTWidth),
208 fTHeight(xyl.fTHeight)
255 if (xFactor < 1.0) xFactor = 1.0;
257 if (yFactor < 1.0) yFactor = 1.0;
271 newX = (
Int_t)(temp + 0.5);
276 newY = (
Int_t)(temp + 0.5);
281 newW = (
UInt_t)(temp + 0.5);
286 newH = (
UInt_t)(temp + 0.5);
Handle_t FontStruct_t
Pointer to font structure.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
include TDocParser_001 C image html pict1_TDocParser_001 png width
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
static FontStruct_t GetDefaultFontStruct()
Static returning label default font struct.
This class describes layout hints used by the layout classes.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
This layout hint must be used for the TGXYLayout manager!
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save XY layout hints as a C++ statement(s) on output stream.
TGXYLayoutHints(Double_t x, Double_t y, Double_t w, Double_t h, UInt_t rubberFlag=kLRubberX|kLRubberY)
Constructor.
Double_t fY
y - position of widget
Double_t fW
width of widget
Double_t fH
height of widget
Double_t fX
x - position of widget
Is a layout manager where the position and the size of each widget in the frame are defined by X / Y ...
Int_t fTWidth
text width of a default character "1234567890" / 10
TList * fList
list of frames to arrange
TGXYLayout(const TGXYLayout &)
copy constructor
UInt_t fFirstWidth
original width of the frame fMain
UInt_t fFirstHeight
original height of the fram fMain
TGCompositeFrame * fMain
container frame
TGXYLayout & operator=(const TGXYLayout &)
assignment operator
virtual TGDimension GetDefaultSize() const
Returns the original size of the frame.
Int_t fTHeight
text height
virtual void Layout()
Recalculates the postion and the size of all widgets.
Bool_t fFirst
flag to determine the first call of Layout()
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save XY layout manager as a C++ statement(s) on output stream.
TObject & operator=(const TObject &rhs)
TObject assignment operator.