40 fUseSplitters (
kTRUE),
55 fUseSplitters (
kTRUE),
149 Int_t frameLength = 0;
157 sumFrames += frameLength;
165 Int_t remain = nflen-sumFrames;
231 s->
Connect(
"Moved(Int_t)",
"TGPack",
this,
"HandleSplitterResize(Int_t)");
232 s->
Connect(
"DragStarted()",
"TGPack",
this,
"HandleSplitterStart()");
335 printf(
"--------------------------------------------------------------\n");
343 printf(
"--------------------------------------------------------------\n");
541 if (l0 - 1 < -delta) {
546 if (l1 - 1 < delta) {
558 f1->fWeight -= weightDelta;
ULong_t Pixel_t
Pixel value.
Handle_t Window_t
Window handle.
R__EXTERN void * gTQSender
virtual Bool_t IsEmpty() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
The base class for composite widgets (menu bars, list boxes, etc.).
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
Int_t fMustCleanup
cleanup mode (see EFrameCleanup)
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
Bool_t fMapSubwindows
kTRUE - map subwindows
TList * fList
container of frame elements
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
static TGLayoutHints * fgDefaultHints
Float_t fWeight
relative weight
TGFrameElementPack * fSplitFE
! cached variable for optimisation
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
UInt_t fHeight
frame height
TGFrameElement * GetFrameElement() const
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void MapWindow()
map window
virtual void MapSubwindows()
map sub windows
virtual void UnmapWindow()
unmap window
This class describes layout hints used by the layout classes.
TGClient * fClient
Connection to display server.
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 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.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
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).
A splitter allows the frames left and right or above and below of it to be resized.
ROOT GUI Window base class.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Resize(UInt_t w, UInt_t h)
Resize the window.
virtual void Add(TObject *obj)
virtual TObject * At(Int_t idx) const
Returns the object at position idx. Returns 0 if idx is out of range.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
virtual void RemoveFirst()
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.