51 Emit(
"DragStarted()");
59 Emit(
"Moved(Int_t)", delta);
78 Error(
"TGVSplitter",
"splitterv.xpm not found");
81 Error(
"TGVSplitter",
"parent must inherit from a TGCompositeFrame");
85 Error(
"TGVSplitter",
"parent must have a horizontal layout manager");
110 Error(
"TGVSplitter",
"splitterv.xpm not found");
145 Error(
"SetFrame",
"resize frame must have kFixedWidth option set");
156 Error(
"HandleButton",
"frame to be resized not set");
178 fClient->GetDefaultRoot()->GetId(),
179 x,
y, xroot, yroot, wdum);
181 fMax = xroot + w - 2;
201 Int_t xr =
event->fXRoot;
274 Error(
"TGHSplitter",
"parent must inherit from a TGCompositeFrame");
278 Error(
"TGHSplitter",
"parent must have a vertical layout manager");
285 Error(
"TGHSplitter",
"splitterh.xpm not found");
309 Error(
"TGHSplitter",
"splitterh.xpm not found");
344 Error(
"SetFrame",
"resize frame must have kFixedHeight option set");
355 Error(
"HandleButton",
"frame to be resized not set");
377 fClient->GetDefaultRoot()->GetId(),
378 x,
y, xroot, yroot, wdum);
380 fMax = yroot +
h - 2;
400 Int_t yr =
event->fYRoot;
481 Int_t xr =
event->fXRoot;
540 Emit(
"LayoutListView()");
548 Emit(
"ButtonPressed()");
556 Emit(
"ButtonReleased()");
564 Emit(
"DoubleClicked(TGVFileSplitter*)", (
Longptr_t) splitter);
584 out <<
" TGVSplitter *" <<
GetName() <<
" = new TGVSplitter(" <<
fParent->GetName() <<
", " <<
GetWidth() <<
", "
587 if (option && strstr(option,
"keep_names"))
588 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
605 out <<
" TGHSplitter *" <<
GetName() <<
" = new TGHSplitter(" <<
fParent->GetName() <<
", " <<
GetWidth() <<
", "
608 if (option && strstr(option,
"keep_names"))
609 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
625 out <<
" TGVFileSplitter *" <<
GetName() <<
" = new TGVFileSplitter(" <<
fParent->GetName() <<
"," <<
GetWidth()
626 <<
"," <<
GetHeight() << extra_args <<
");\n";
628 if (option && strstr(option,
"keep_names"))
629 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");\n";
const Mask_t kButtonPressMask
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.
Handle_t Window_t
Window handle.
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
The base class for composite widgets (menu bars, list boxes, etc.).
void Layout() override
Layout the elements of the composite frame.
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.
TGFrame(const TGFrame &)=delete
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
TString SaveCtorArgs(std::ostream &out, UInt_t dflt_options=kChildFrame, Bool_t check_white_pixel=kFALSE)
Return options and custom color as constructor args Used in the SavePrimitive methods,...
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
~TGHSplitter() override
Delete horizontal splitter widget.
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.
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.
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.
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.
~TGVFileSplitter() override
if (fSplitterPic) fClient->FreePicture(fSplitterPic);
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
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() override
Delete vertical splitter widget.
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.
EGEventType fType
of event (see EGEventType)