12#ifndef ROOT_TGSplitFrame
13#define ROOT_TGSplitFrame
120 void UnSplit(
const char *which);
#define ClassDef(name, id)
The base class for composite widgets (menu bars, list boxes, etc.).
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
Encapsulate a graphics context used in the low level graphics.
This class describes layout hints used by the layout classes.
TGRectMap(const TGRectMap &)=delete
TGRectMap & operator=(const TGRectMap &)=delete
Bool_t Contains(Int_t px, Int_t py) const
TGRectMap(Int_t rx, Int_t ry, UInt_t rw, UInt_t rh)
void MapToSPlitTool(TGSplitFrame *top)
Map this split frame in the small overview tooltip.
virtual void Cleanup()
Recursively cleanup child frames.
virtual void VSplit(UInt_t w=0)
Vertically split the frame.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splittable frame as a C++ statement(s) on output stream out.
TGSplitFrame * GetFirst() const
void OnSplitterClicked(Event_t *event)
Handle mouse click events on the splitter.
virtual ~TGSplitFrame()
Destructor. Make cleanup.
void SplitVertical(const char *side="left")
Vertically split the frame, and if it contains a child frame, ask the user where to keep it (left or ...
void SwitchToMain()
Switch the actual embedded frame to the main (first) split frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add a frame in the split frame using layout hints l.
void SetHRatio(Float_t r)
TGSplitFrame * fSecond
Pointer to the second child (if any)
TGSplitTool * GetSplitTool() const
virtual void RemoveFrame(TGFrame *f)
Add a frame in the split frame using layout hints l.
virtual void HSplit(UInt_t h=0)
Horizontally split the frame.
TGSplitFrame * GetTopFrame()
Return the top level split frame.
void SetWRatio(Float_t r)
TGSplitFrame(const TGSplitFrame &)=delete
void SwallowBack()
Swallow back the child frame previously extracted, and close its parent (transient frame).
TGFrame * GetFrame() const
TGSplitTool * fSplitTool
SplitFrame Tool.
TGTransientFrame * fUndocked
Main frame used when "undocking" frame.
TGSplitter * fSplitter
Pointer to the (H/V) Splitter (if any)
void Docked(TGFrame *frame)
Emit Undocked() signal.
TGSplitFrame & operator=(const TGSplitFrame &)=delete
TGSplitter * GetSplitter() const
Float_t GetWRatio() const
void Undocked(TGFrame *frame)
Emit Undocked() signal.
TGFrame * fFrame
Pointer to the embedded frame (if any)
static void SwitchFrames(TGFrame *frame, TGCompositeFrame *dest, TGFrame *prev)
Switch (exchange) two frames.
void Close()
Close (unmap and remove from the list of frames) the frame contained in this split frame.
TGSplitFrame * fFirst
Pointer to the first child (if any)
virtual Bool_t HandleConfigureNotify(Event_t *)
Handles resize events for this frame.
Float_t GetHRatio() const
Float_t fHRatio
Height ratio between the first child and this.
void SplitHorizontal(const char *side="top")
Horizontally split the frame, and if it contains a child frame, ask the user where to keep it (top or...
Float_t fWRatio
Width ratio between the first child and this.
TGSplitFrame * GetSecond() const
TGFrame * GetUndocked() const
void ExtractFrame()
Extract the frame contained in this split frame an reparent it in a transient frame.
void SplitVer()
Vertically split the frame, and if it contains a child frame, ask the user where to keep it (left or ...
void UnSplit(const char *which)
Close (unmap and remove from the list of frames) the frame contained in this split frame.
void CloseAndCollapse()
Close (unmap, remove from the list of frames and destroy) the frame contained in this split frame.
void SplitHor()
Horizontally split the frame, and if it contains a child frame, ask the user where to keep it (top or...
A splitter allows the frames left and right or above and below of it to be resized.
Defines transient windows that typically are used for dialogs windows.
ROOT GUI Window base class.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
#define dest(otri, vertexptr)