ROOT » GUI » GUI » TGTableLayoutHints

class TGTableLayoutHints: public TGLayoutHints


A layout manager, which places child frames in a table arranged in
rows and columns, making it easy to align many widgets next each to
other horizontally and vertivally. It uses TGTableLayoutHints
(not TGLayoutHints!!!) and 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 in the
The gaps between all rows or columns can be specified by 'sep'
parameter in the constructor. All rows and columns will have the
same size (set by widest and the highest child frame) if the
parameter 'homogeneous' is set to kTRUE.


This class describes layout hints used by the TGTableLayout class.
It specifies the column/row division number on which to attach the
child frame. This number starts from 0 and goes to #_columns/#_rows
respectively (0 indicates the first row/column).

Below are described all parameters of TGTableLayoutHints constructor
attach_left   - the column to the left of the widget;
attach_right  - the column to the right of the widget;
attach_top    - the row above the widget;
attach_bottom - the row below the widget;

hints - layout hints (combination of ELayoutHints)

The next parameters determine the extra padding added around the
child frame. By default these are 0.
padleft   - determines the extra padding added on the left
padright  - determines the extra padding added on the right
padtop    - determines the extra padding added on the top
padbottom - determines the extra padding added on the bottom

Function Members (Methods)

voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
UInt_tGetAttachBottom() const
UInt_tGetAttachLeft() const
UInt_tGetAttachRight() const
UInt_tGetAttachTop() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
ULong_tTGLayoutHints::GetLayoutHints() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Int_tTGLayoutHints::GetPadBottom() const
Int_tTGLayoutHints::GetPadLeft() const
Int_tTGLayoutHints::GetPadRight() const
Int_tTGLayoutHints::GetPadTop() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTGLayoutHints::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGLayoutHints::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
UInt_tTRefCnt::References() const
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidSavePrimitive(ostream& out, Option_t* = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGLayoutHints::SetLayoutHints(ULong_t lh)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTGLayoutHints::SetPadBottom(Int_t v)
virtual voidTGLayoutHints::SetPadLeft(Int_t v)
virtual voidTGLayoutHints::SetPadRight(Int_t v)
virtual voidTGLayoutHints::SetPadTop(Int_t v)
voidTRefCnt::SetRefCount(UInt_t r)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TGTableLayoutHints(UInt_t attach_left, UInt_t attach_right, UInt_t attach_top, UInt_t attach_bottom, ULong_t hints = kLHintsNormal, UInt_t padleft = 0, UInt_t padright = 0, UInt_t padtop = 0, UInt_t padbottom = 0)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTGLayoutHints::UpdateFrameElements(TGLayoutHints* l)

Data Members

static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TRefCnt::EReferenceFlagTRefCnt::kStaticInit
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
UInt_tfAttachLeftColumn/row division number on which
UInt_tfAttachRightto attach the frame. Starts at 0
UInt_tfAttachTopand goes to # columns / # rows
ULong_tTGLayoutHints::fLayoutHintslayout hints (combination of ELayoutHints)
Int_tTGLayoutHints::fPadbottomamount of bottom padding
Int_tTGLayoutHints::fPadleftamount of left padding
Int_tTGLayoutHints::fPadrightamount of right padding
Int_tTGLayoutHints::fPadtopamount of top padding
UInt_tTRefCnt::fRefs(1 less than) number of references

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void SavePrimitive(ostream& out, Option_t* = "")
TGTableLayoutHints(const TGTableLayoutHints& )
TGTableLayoutHints& operator=(const TGTableLayoutHints& )
TGTableLayoutHints(UInt_t attach_left, UInt_t attach_right, UInt_t attach_top, UInt_t attach_bottom, ULong_t hints = kLHintsNormal, UInt_t padleft = 0, UInt_t padright = 0, UInt_t padtop = 0, UInt_t padbottom = 0)
{ }
virtual ~TGTableLayoutHints()
{ }
UInt_t GetAttachLeft() const
{ return fAttachLeft; }
UInt_t GetAttachRight() const
{ return fAttachRight; }
UInt_t GetAttachTop() const
{ return fAttachTop; }
UInt_t GetAttachBottom() const
{ return fAttachBottom; }