#ifndef ROOT_TGSplitter
#define ROOT_TGSplitter
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
class TGSplitter : public TGFrame {
protected:
Cursor_t fSplitCursor;
Bool_t fDragging;
const TGPicture *fSplitterPic;
TGSplitter(const TGSplitter& sp) : TGFrame(sp),
fSplitCursor(sp.fSplitCursor), fDragging(sp.fDragging),
fSplitterPic(sp.fSplitterPic) { }
TGSplitter& operator=(const TGSplitter& sp)
{if(this!=&sp) { TGFrame::operator=(sp);
fSplitCursor=sp.fSplitCursor; fDragging=sp.fDragging;
fSplitterPic=sp.fSplitterPic;} return *this; }
public:
TGSplitter(const TGWindow *p = 0, UInt_t w = 2, UInt_t h = 4,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGSplitter() { }
virtual Bool_t HandleButton(Event_t *event) = 0;
virtual Bool_t HandleMotion(Event_t *event) = 0;
virtual Bool_t HandleCrossing(Event_t *event) = 0;
ClassDef(TGSplitter,0)
};
class TGVSplitter : public TGSplitter {
private:
TGVSplitter(const TGVSplitter&);
TGVSplitter& operator=(const TGVSplitter&);
protected:
Int_t fStartX;
UInt_t fFrameWidth;
UInt_t fFrameHeight;
Int_t fMin;
Int_t fMax;
TGFrame *fFrame;
Bool_t fLeft;
public:
TGVSplitter(const TGWindow *p = 0, UInt_t w = 4, UInt_t h = 4,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGVSplitter();
virtual void DrawBorder();
virtual void SetFrame(TGFrame *frame, Bool_t left);
const TGFrame *GetFrame() const { return fFrame; }
Bool_t GetLeft() const { return fLeft; }
Bool_t IsLeft() const { return fLeft; }
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual Bool_t HandleButton(Event_t *event);
virtual Bool_t HandleMotion(Event_t *event);
virtual Bool_t HandleCrossing(Event_t *event);
ClassDef(TGVSplitter,0)
};
class TGHSplitter : public TGSplitter {
private:
TGHSplitter(const TGHSplitter&);
TGHSplitter& operator=(const TGHSplitter&);
protected:
Int_t fStartY;
UInt_t fFrameWidth;
UInt_t fFrameHeight;
Int_t fMin;
Int_t fMax;
TGFrame *fFrame;
Bool_t fAbove;
public:
TGHSplitter(const TGWindow *p = 0, UInt_t w = 4, UInt_t h = 4,
UInt_t options = kChildFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGHSplitter();
virtual void DrawBorder();
virtual void SetFrame(TGFrame *frame, Bool_t above);
const TGFrame *GetFrame() const { return fFrame; }
Bool_t GetAbove() const { return fAbove; }
Bool_t IsAbove() const { return fAbove; }
virtual void SavePrimitive(ostream &out, Option_t *option = "");
virtual Bool_t HandleButton(Event_t *event);
virtual Bool_t HandleMotion(Event_t *event);
virtual Bool_t HandleCrossing(Event_t *event);
ClassDef(TGHSplitter,0)
};
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.