55 Emit(
"DragStarted()");
63 Emit(
"Moved(Int_t)", delta);
82 Error(
"TGVSplitter",
"splitterv.xpm not found");
85 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
89 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
114 Error(
"TGVSplitter",
"splitterv.xpm not found");
149 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
160 Error(
"HandleButton",
"frame to be resized not set");
183 x,
y, xroot, yroot, wdum);
185 fMax = xroot +
w - 2;
205 Int_t xr =
event->fXRoot;
278 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
282 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
289 Error(
"TGHSplitter",
"splitterh.xpm not found");
313 Error(
"TGHSplitter",
"splitterh.xpm not found");
348 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
359 Error(
"HandleButton",
"frame to be resized not set");
382 x,
y, xroot, yroot, wdum);
384 fMax = yroot +
h - 2;
404 Int_t yr =
event->fYRoot;
485 Int_t xr =
event->fXRoot;
503 p->Resize(
p->GetWidth() + delta,
p->GetHeight() );
544 Emit(
"LayoutListView()");
552 Emit(
"ButtonPressed()");
560 Emit(
"ButtonReleased()");
587 out <<
" TGVSplitter *";
593 out <<
");" << std::endl;
601 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
608 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
609 else out <<
",kFALSE);"<< std::endl;
620 out <<
" TGHSplitter *";
626 out <<
");" << std::endl;
634 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
641 if (
GetAbove()) out <<
",kTRUE);" << std::endl;
642 else out <<
",kFALSE);"<< std::endl;
653 out <<
" TGVFileSplitter *";
659 out <<
");" << std::endl;
667 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
670 if (
GetLeft()) out <<
",kTRUE);" << std::endl;
671 else out <<
",kFALSE);"<< std::endl;
const Mask_t kButtonPressMask
Handle_t Window_t
Window handle.
const Mask_t kAnyModifier
const Mask_t kPointerMotionMask
const Mask_t kLeaveWindowMask
const Mask_t kButtonReleaseMask
const Mask_t kEnterWindowMask
ULong_t Pixel_t
Pixel value.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
winID h TVirtualViewer3D TVirtualGLPainter p
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void FreePicture(const TGPicture *pic)
Free picture resource.
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,...
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
Pixel_t fBackground
frame background color
static const TGGC & GetBckgndGC()
Get background color graphics context.
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
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
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
void Draw(Option_t *="") override
Default Draw method for all objects.
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.
const TGPicture * fSplitterPic
picture to draw splitter
Bool_t fDragging
true if in dragging mode
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.
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
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.
const TGWindow * fParent
Parent window.
const TGWindow * GetParent() const
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.