12#ifndef ROOT_TGSplitter
13#define ROOT_TGSplitter
Handle_t Cursor_t
Cursor handle.
ULong_t Pixel_t
Pixel value.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal splitter.
TGHSplitter(const TGHSplitter &)=delete
const TGFrame * GetFrame() const
UInt_t fFrameHeight
height of frame to be resized
TGHSplitter & operator=(const TGHSplitter &)=delete
void DrawBorder() override
Draw horizontal splitter.
Bool_t HandleCrossing(Event_t *event) override
Handle mouse motion event in horizontal splitter.
TGFrame * fFrame
frame that should be resized
void SetFrame(TGFrame *frame, Bool_t above) override
Set frame to be resized.
Bool_t fAbove
true if frame is above the splitter
Int_t fStartY
y position when dragging starts
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
Int_t fMin
min y position frame can be resized to
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in horizontal splitter.
virtual ~TGHSplitter()
Delete horizontal splitter widget.
UInt_t fFrameWidth
width of frame to be resized
Int_t fMax
max y position frame can be resized to
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.
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 HandleButton(Event_t *event) override=0
Bool_t fDragging
true if in dragging mode
TGSplitter & operator=(const TGSplitter &)=delete
virtual Bool_t HandleCrossing(Event_t *event) override=0
virtual Bool_t HandleMotion(Event_t *event) override=0
Bool_t GetExternalHandler() const
Bool_t fExternalHandler
true when splitter movement is handled externally
void ButtonPressed()
Emit ButtonPressed() signal.
virtual ~TGVFileSplitter()
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
void DoubleClicked(TGVFileSplitter *frame)
Emit DoubleClicked() signal.
void LayoutListView()
Emit LayoutListView() signal.
TGVFileSplitter(const TGVFileSplitter &)=delete
void ButtonReleased()
Emit ButtonReleased() signal.
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical splitter.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical splitter.
TGVFileSplitter & operator=(const TGVFileSplitter &)=delete
void LayoutHeader(TGFrame *f)
Emit LayoutFeader() signal.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
Bool_t HandleDoubleClick(Event_t *) override
Handle double click mouse event in splitter.
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.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a splitter widget as a C++ statement(s) on output stream out.
const TGFrame * GetFrame() const
TGVSplitter & operator=(const TGVSplitter &)=delete
void DrawBorder() override
Draw vertical splitter.
Bool_t HandleButton(Event_t *event) override
Handle mouse button 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
Bool_t fLeft
true if frame is on the left of splitter
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical splitter.
Bool_t HandleCrossing(Event_t *event) override
Handle mouse motion event in vertical splitter.
void SetFrame(TGFrame *frame, Bool_t left) override
Set frame to be resized.
ROOT GUI Window base class.