library: libGui #include "TGTableLayout.h" |
TGTableLayout
class description - header file - source file - inheritance tree (.pdf)
protected:
void CheckSanity()
void FindRowColSizes()
void FindRowColSizesHomogeneous()
void FindRowColSizesInit()
void FindRowColSizesMultiplyAttached()
void FindRowColSizesSinglyAttached()
static void SetRowColResize(UInt_t real_size, UInt_t nthings, TGTableLayout::TableData_t* thing, Bool_t homogeneous)
void SetRowColSizes()
void SetRowColSizesInit()
public:
TGTableLayout(TGCompositeFrame* main, UInt_t nrows, UInt_t ncols, Bool_t homogeneous = kFALSE, Int_t sep = 0, Int_t hints = 0)
TGTableLayout(const TGTableLayout&)
virtual ~TGTableLayout()
static TClass* Class()
virtual TGDimension GetDefaultSize() const
virtual TClass* IsA() const
virtual void Layout()
TGTableLayout& operator=(const TGTableLayout&)
virtual void SavePrimitive(ostream& out, Option_t* = "")
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGTableLayout::TableData_t* fRow info about each row
TGTableLayout::TableData_t* fCol info about each column
TGCompositeFrame* fMain container frame
TList* fList list of frames to arrange
Bool_t fHomogeneous all cols/rows same size
public:
Int_t fSep interval between frames
Int_t fHints layout hints (currently not used)
UInt_t fNrows number of rows
UInt_t fNcols number of columns
TGTableLayout
A LayoutManager which places child frames in a table. This uses
TGTableLayoutHints (not TGLayoutHints). See TGTableLayoutHints
for how to use these. This manager works like TGMatrixLayout with
the addition that:
- Child frames can span more than one column/row.
- Child frames can resize with the frame.
- Column and row sizes are not fixed nor (optionally) homogeneous.
- The number of columns and rows must be fully specified.
void FindRowColSizes()
Find the sizes of rows and columns needed to statisfy
children's layout policies.
void SetRowColResize(UInt_t real_size, UInt_t nthings, TableData_t *thing, Bool_t homogeneous)
If main frame is bigger or smaller than all children,
expand/shrink to fill. This is symmetric under row<-->col
switching so it is abstracted out to a normal function to save typing.
void SetRowColSizesInit()
Initialize rows/cols. By default they do not expand and they
do shrink. What the children want determine what the rows/cols do.
void Layout()
Make a table layout of all frames in the list.
Author: Brett Viren 04/15/2001
Last update: root/gui:$Name: $:$Id: TGTableLayout.cxx,v 1.11 2006/07/03 16:10:45 brun Exp $
Copyright (C) 2001, Brett Viren *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.