95 virtual void Dump()
const;
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
#define ClassDef(name, id)
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Float_t fWeight
relative weight
TGFrameElementPack * fSplitFE
! cached variable for optimisation
TGFrameElementPack(TGFrame *frame, TGLayoutHints *lh=nullptr, Float_t weight=1)
TGFrameElementPack & operator=(const TGFrameElementPack &)=delete
TGFrameElementPack(const TGFrameElementPack &)=delete
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
This class describes layout hints used by the layout classes.
Stack of frames in horizontal (default) or vertical stack.
virtual void RemoveFrame(TGFrame *f)
Remove frame f and refit existing frames to pack size.
void SetUseSplitters(Bool_t x)
void RemoveFrameInternal(TGFrame *f)
Remove frame f.
virtual ~TGPack()
Destructor.
void ResizeExistingFrames()
Resize (shrink or expand) existing frames by amount in total.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the pack.
Int_t GetAvailableLength() const
Return length of entire frame without splitters.
virtual void DeleteFrame(TGFrame *f)
Remove frame f and refit existing frames to pack size.
Int_t GetFrameLength(const TGFrame *f) const
virtual void AddFrameWithWeight(TGFrame *f, TGLayoutHints *l, Float_t w)
Add frame f at the end with given weight.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and resize the pack.
void RefitFramesToPack()
Refit existing frames to pack size.
TGPack & operator=(const TGPack &)=delete
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Bool_t GetUseSplitters() const
virtual void Layout()
Reposition the frames so that they fit correctly.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame f at the end with default weight.
void EqualizeFrames()
Refit existing frames so that their lengths are equal.
void HandleSplitterStart()
Called when splitter drag starts.
Float_t fWeightSum
total sum of sub frame weights
TGPack(const TGPack &)=delete
void AddFrameInternal(TGFrame *f, TGLayoutHints *l=nullptr, Float_t weight=1)
Add frame f at the end.
virtual void MapSubwindows()
Virtual method of TGcompositeFrame.
void SetVertical(Bool_t x)
Sets the vertical flag and reformats the back to new stacking direction.
void HandleSplitterResize(Int_t delta)
Handle resize events from splitters.
void SetFrameLength(TGFrame *f, Int_t len)
Set pack-wise length of frame f.
void SetFramePosition(TGFrame *f, Int_t pos)
Set pack-wise position of frame f.
void CheckSplitterVisibility()
Check if splitter of first visible frame is hidden.
Int_t fNVisible
number of visible frames
virtual void Dump() const
Print sub frame info.
void FindFrames(TGFrame *splitter, TGFrameElementPack *&f0, TGFrameElementPack *&f1) const
Find frames around splitter and return them f0 (previous) and f1 (next).
Bool_t GetVertical() const
A splitter allows the frames left and right or above and below of it to be resized.
ROOT GUI Window base class.