#ifndef ROOT_TGTripleSlider
#define ROOT_TGTripleSlider
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
#ifndef ROOT_TGWidget
#include "TGWidget.h"
#endif
#ifndef ROOT_TGDoubleSlider
#include "TGDoubleSlider.h"
#endif
class TGTripleVSlider : public TGDoubleVSlider {
protected:
Int_t fCz;
Float_t fSCz;
Bool_t fConstrained;
Bool_t fRelative;
const TGPicture *fPointerPic;
virtual void DoRedraw();
virtual void SetPointerPos(Int_t z, Int_t opt = 0);
public:
TGTripleVSlider(const TGWindow *p = 0, UInt_t h = 1, UInt_t type = 1, Int_t id = -1,
UInt_t options = kVerticalFrame,
Pixel_t back = GetDefaultFrameBackground(),
Bool_t reversed = kFALSE,
Bool_t mark_ends = kFALSE,
Bool_t constrained = kTRUE,
Bool_t relative = kFALSE);
virtual ~TGTripleVSlider();
virtual void PointerPositionChanged() { Emit("PointerPositionChanged()"); }
virtual void DrawPointer();
virtual Float_t GetPointerPosition() const {
if (fReversedScale) return fVmin + fVmax - fSCz;
else return fSCz;
}
virtual Bool_t HandleButton(Event_t *event);
virtual Bool_t HandleConfigureNotify(Event_t* event);
virtual Bool_t HandleMotion(Event_t *event);
virtual void SetConstrained(Bool_t on = kTRUE);
virtual void SetPointerPosition(Float_t pos);
virtual void SetRelative(Bool_t rel = kTRUE) { fRelative = rel; }
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TGTripleVSlider,0)
};
class TGTripleHSlider : public TGDoubleHSlider {
protected:
Int_t fCz;
Float_t fSCz;
Bool_t fConstrained;
Bool_t fRelative;
const TGPicture *fPointerPic;
virtual void DoRedraw();
virtual void SetPointerPos(Int_t z, Int_t opt = 0);
public:
TGTripleHSlider(const TGWindow *p = 0, UInt_t w = 1, UInt_t type = 1, Int_t id = -1,
UInt_t options = kHorizontalFrame,
Pixel_t back = GetDefaultFrameBackground(),
Bool_t reversed = kFALSE,
Bool_t mark_ends = kFALSE,
Bool_t constrained = kTRUE,
Bool_t relative = kFALSE);
virtual ~TGTripleHSlider();
virtual void PointerPositionChanged() { Emit("PointerPositionChanged()"); }
virtual void DrawPointer();
virtual Float_t GetPointerPosition() const {
if (fReversedScale) return fVmin + fVmax - fSCz;
else return fSCz;
}
virtual Bool_t HandleButton(Event_t *event);
virtual Bool_t HandleConfigureNotify(Event_t* event);
virtual Bool_t HandleMotion(Event_t *event);
virtual void SetConstrained(Bool_t on = kTRUE);
virtual void SetPointerPosition(Float_t pos);
virtual void SetRelative(Bool_t rel = kTRUE) { fRelative = rel; }
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TGTripleHSlider,0)
};
#endif
Last change: Tue Nov 25 12:04:12 2008
Last generated: 2008-11-25 12:04
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.