82 std::cout << std::endl;
114 while (
p &&
p->fLayout) {
116 p =
p->fLayout->fPrev;
128 std::cout <<
"kLHintsLeft";
132 if (
bor) std::cout <<
" | ";
133 std::cout <<
"kLHintsCenterX";
137 if (
bor) std::cout <<
" | ";
138 std::cout <<
"kLHintsRight";
142 if (
bor) std::cout <<
" | ";
143 std::cout <<
"kLHintsTop";
147 if (
bor) std::cout <<
" | ";
148 std::cout <<
"kLHintsCenterY";
152 if (
bor) std::cout <<
" | ";
153 std::cout <<
"kLHintsBottom";
157 if (
bor) std::cout <<
" | ";
158 std::cout <<
"kLHintsExpandX";
162 if (
bor) std::cout <<
" | ";
163 std::cout <<
"kLHintsExpandY";
167 if (
bor) std::cout <<
" | ";
168 std::cout <<
"kLHintsNoHints";
170 std::cout <<
", fPadtop=" <<
fPadtop;
172 std::cout <<
", fPadleft=" <<
fPadleft;
173 std::cout <<
", fPadright=" <<
fPadright;
174 std::cout << std::endl;
211 bottom =
msize.fHeight - (top =
bw);
301 if (
x > 32768)
x =
bw + 1;
303 if (
size.fWidth > 32768)
305 if (
size.fHeight > 32768)
373 right =
msize.fWidth - (left =
bw);
666 }
else if (
fRows == 0) {
987 out <<
"new TGLayoutHints(kLHintsNormal)";
991 if (
hints.Length() == 0)
hints =
"kLHintsLeft";
992 else hints +=
" | kLHintsLeft";
995 if (
hints.Length() == 0)
hints =
"kLHintsCenterX";
996 else hints +=
" | kLHintsCenterX";
999 if (
hints.Length() == 0)
hints =
"kLHintsRight";
1000 else hints +=
" | kLHintsRight";
1003 if (
hints.Length() == 0)
hints =
"kLHintsTop";
1004 else hints +=
" | kLHintsTop";
1007 if (
hints.Length() == 0)
hints =
"kLHintsCenterY";
1008 else hints +=
" | kLHintsCenterY";
1011 if (
hints.Length() == 0)
hints =
"kLHintsBottom";
1012 else hints +=
" | kLHintsBottom";
1015 if (
hints.Length() == 0)
hints =
"kLHintsExpandX";
1016 else hints +=
" | kLHintsExpandX";
1019 if (
hints.Length() == 0)
hints =
"kLHintsExpandY";
1020 else hints +=
" | kLHintsExpandY";
1023 out <<
"new TGLayoutHints(" <<
hints;
1038 out <<
"new TGVerticalLayout(" <<
fMain->
GetName() <<
")";
1048 out <<
"new TGHorizontalLayout(" <<
fMain->
GetName() <<
")";
1067 out <<
"new TGColumnLayout(" <<
fMain->
GetName() <<
","
1078 out <<
"new TGMatrixLayout(" <<
fMain->
GetName() <<
","
1114 out <<
"new TGListDetailsLayout(" <<
fMain->
GetName() <<
","
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
The following layout manager do not make use of TGLayoutHints.
void Layout() override
Make a column layout of all frames in the list.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save column layout manager as a C++ statement(s) on output stream.
TGDimension GetDefaultSize() const override
Return default dimension of the column layout.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual TList * GetList() const
~TGFrameElement() override
Destructor. Decrease ref. count of fLayout.
void Print(Option_t *option="") const override
Print this frame element.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
Int_t GetBorderWidth() const
virtual UInt_t GetDefaultHeight() const
TGDimension GetSize() const
void Move(Int_t x, Int_t y) override
Move frame.
virtual UInt_t GetOptions() const
void SetFrameElement(TGFrameElement *fe)
TGDimension GetDefaultSize() const override
Return default dimension of the horizontal layout.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save horizontal layout manager as a C++ statement(s) on output stream.
void Layout() override
Make a horizontal layout of all frames in the list.
This class describes layout hints used by the layout classes.
~TGLayoutHints() override
Destructor.
Int_t GetPadRight() const
void Print(Option_t *option="") const override
Printing.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save layout hints as a C++ statement(s) on output stream out.
Int_t GetPadBottom() const
TGLayoutHints(ULong_t hints=kLHintsNormal, Int_t padleft=0, Int_t padright=0, Int_t padtop=0, Int_t padbottom=0)
ULong_t GetLayoutHints() const
void UpdateFrameElements(TGLayoutHints *l)
Update layout hints of frame elements.
This is a layout manager for the TGListView widget.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save list details layout manager as a C++ statement(s) on out stream.
void Layout() override
Make a list details layout of all frames in the list.
TGDimension GetDefaultSize() const override
Return default dimension of the list details layout.
This is a layout manager for the TGListView widget.
void Layout() override
Make a tile layout of all frames in the list.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save list layout manager as a C++ statement(s) on output stream.
TGDimension GetDefaultSize() const override
Return default dimension of the list layout.
This layout managers does not make use of TGLayoutHints.
UInt_t fRows
number of rows
void SavePrimitive(std::ostream &out, Option_t *="") override
Save matrix layout manager as a C++ statement(s) on output stream.
Int_t fHints
layout hints (currently not used)
TGMatrixLayout(const TGMatrixLayout &)=delete
TGCompositeFrame * fMain
container frame
Int_t fSep
interval between frames
UInt_t fColumns
number of columns
void Layout() override
Make a matrix layout of all frames in the list.
TList * fList
list of frames to arrange
TGDimension GetDefaultSize() const override
Return default dimension of the matrix layout.
The following two layout managers do not make use of TGLayoutHints.
void SavePrimitive(std::ostream &out, Option_t *="") override
Save row layout manager as a C++ statement(s) on output stream.
TGDimension GetDefaultSize() const override
Return default dimension of the row layout.
void Layout() override
Make a row layout of all frames in the list.
This is a layout manager for the TGListView widget.
TGDimension GetDefaultSize() const override
Return default dimension of the tile layout.
TList * fList
list of frames to arrange
Int_t fSep
separation between tiles
TGCompositeFrame * fMain
container frame
void Layout() override
Make a tile layout of all frames in the list.
Bool_t fModified
layout changed
void SavePrimitive(std::ostream &out, Option_t *="") override
Save tile layout manager as a C++ statement(s) on output stream.
TGTileLayout(const TGTileLayout &)=delete
void Layout() override
Make a vertical layout of all frames in the list.
TGVerticalLayout(const TGVerticalLayout &gvl)
void SavePrimitive(std::ostream &out, Option_t *="") override
Save vertical layout manager as a C++ statement(s) on output stream.
TGDimension GetDefaultSize() const override
Return default dimension of the vertical layout.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
Mother of all ROOT objects.
virtual const char * ClassName() const
Returns name of class to which the object belongs.
virtual void Print(Option_t *option="") const
This method must be overridden when a class wants to print itself.
Definitions for TRefCnt, base class for reference counted objects.
void SetRefCount(UInt_t r)
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.