12#ifndef ROOT_TGSplitter
13#define ROOT_TGSplitter
Handle_t Cursor_t
Cursor handle.
ULong_t Pixel_t
Pixel value.
#define ClassDef(name, id)
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 SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
TGHSplitter(const TGHSplitter &)=delete
const TGFrame * GetFrame() const
UInt_t fFrameHeight
height of frame to be resized
TGHSplitter & operator=(const TGHSplitter &)=delete
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
virtual void DrawBorder()
Draw horizontal splitter.
TGFrame * fFrame
frame that should be resized
Bool_t fAbove
true if frame is above the splitter
Int_t fStartY
y position when dragging starts
Int_t fMin
min y position frame can be resized to
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in horizontal splitter.
virtual ~TGHSplitter()
Delete horizontal splitter widget.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal splitter.
UInt_t fFrameWidth
width of frame to be resized
Int_t fMax
max y position frame can be resized to
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal splitter.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
A splitter allows the frames left and right or above and below of it to be resized.
TGSplitter(const TGSplitter &)=delete
Cursor_t fSplitCursor
split cursor
void DragStarted()
Emit DragStarted signal.
virtual Bool_t HandleCrossing(Event_t *event)=0
void Moved(Int_t delta)
Emit Moved signal.
void SetExternalHandler(Bool_t x)
const TGPicture * fSplitterPic
picture to draw splitter
virtual void SetFrame(TGFrame *frame, Bool_t prev)=0
virtual Bool_t HandleMotion(Event_t *event)=0
Bool_t fDragging
true if in dragging mode
TGSplitter & operator=(const TGSplitter &)=delete
Bool_t GetExternalHandler() const
virtual Bool_t HandleButton(Event_t *event)=0
Bool_t fExternalHandler
true when splitter movement is handled externally
void ButtonPressed()
Emit ButtonPressed() signal.
virtual ~TGVFileSplitter()
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
void DoubleClicked(TGVFileSplitter *frame)
Emit DoubleClicked() signal.
void LayoutListView()
Emit LayoutListView() signal.
TGVFileSplitter(const TGVFileSplitter &)=delete
void ButtonReleased()
Emit ButtonReleased() signal.
virtual Bool_t HandleDoubleClick(Event_t *)
Handle double click mouse event in splitter.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical splitter.
TGVFileSplitter & operator=(const TGVFileSplitter &)=delete
void LayoutHeader(TGFrame *f)
Emit LayoutFeader() signal.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
Int_t fMin
min x position frame can be resized to
UInt_t fFrameHeight
height of frame to be resized
TGVSplitter(const TGVSplitter &)=delete
virtual ~TGVSplitter()
Delete vertical splitter widget.
const TGFrame * GetFrame() const
virtual void SetFrame(TGFrame *frame, Bool_t left)
Set frame to be resized.
TGVSplitter & operator=(const TGVSplitter &)=delete
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical splitter.
virtual Bool_t HandleCrossing(Event_t *event)
Handle mouse motion event in vertical splitter.
TGFrame * fFrame
frame that should be resized
Int_t fMax
max x position frame can be resized to
UInt_t fFrameWidth
width of frame to be resized
Int_t fStartX
x position when dragging starts
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a splitter widget as a C++ statement(s) on output stream out.
Bool_t fLeft
true if frame is on the left of splitter
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical splitter.
virtual void DrawBorder()
Draw vertical splitter.
ROOT GUI Window base class.