142 flag =
"TGXYLayoutHints::kLRubberX";
144 flag +=
" | TGXYLayoutHints::kLRubberX";
148 flag =
"TGXYLayoutHints::kLRubberY";
150 flag +=
" | TGXYLayoutHints::kLRubberY";
154 flag =
"TGXYLayoutHints::kLRubberW";
156 flag +=
" | TGXYLayoutHints::kLRubberW";
160 flag =
"TGXYLayoutHints::kLRubberH";
162 flag +=
" | TGXYLayoutHints::kLRubberH";
165 out <<
", new TGXYLayoutHints(" <<
GetX() <<
", " <<
GetY() <<
", " <<
GetW() <<
", " <<
GetH();
170 out <<
", " << flag <<
")";
198 main->Resize(width, height);
259 if (xFactor < 1.0) xFactor = 1.0;
261 if (yFactor < 1.0) yFactor = 1.0;
275 newX = (
Int_t)(temp + 0.5);
280 newY = (
Int_t)(temp + 0.5);
285 newW = (
UInt_t)(temp + 0.5);
290 newH = (
UInt_t)(temp + 0.5);
312 out <<
"new TGXYLayout(" <<
fMain->GetName() <<
")";
Handle_t FontStruct_t
Pointer to font structure.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
The base class for composite widgets (menu bars, list boxes, etc.).
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
static FontStruct_t GetDefaultFontStruct()
Static returning label default font struct.
TGLayoutHints(ULong_t hints=kLHintsNormal, Int_t padleft=0, Int_t padright=0, Int_t padtop=0, Int_t padbottom=0)
This layout hint must be used for the TGXYLayout manager!
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
void SavePrimitive(std::ostream &out, Option_t *="") override
Save XY layout hints as a C++ statement(s) on output stream.
Double_t fX
x - position of widget
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 frame fMain
void Layout() override
Recalculates the postion and the size of all widgets.
TGCompositeFrame * fMain
container frame
TGXYLayout & operator=(const TGXYLayout &)
assignment operator
Int_t fTHeight
text height
Bool_t fFirst
flag to determine the first call of Layout()
void SavePrimitive(std::ostream &out, Option_t *="") override
Save XY layout manager as a C++ statement(s) on output stream.
TGDimension GetDefaultSize() const override
Returns the original size of the frame.
TObject & operator=(const TObject &rhs) noexcept
TObject assignment operator.
int main(int argc, char **argv)