12 #ifndef ROOT_TGDoubleSlider 13 #define ROOT_TGDoubleSlider 121 fVmin = min; fVmax = max;
126 if (fReversedScale) { fSmin = fVmin+fVmax-max; fSmax = fVmin+fVmax-min; }
127 else { fSmin = min; fSmax = max; }
132 if (fReversedScale)
return fVmin+fVmax-
fSmax;
136 if (fReversedScale)
return fVmin+fVmax-
fSmin;
140 if (fReversedScale) { min = fVmin+fVmax-
fSmax; max = fVmin+fVmax-
fSmin; }
144 if (fReversedScale) { *min = fVmin+fVmax-
fSmax; *max = fVmin+fVmax-
fSmin; }
TString GetSString() const
Returns the slider type as a string - used in SavePrimitive()
virtual Float_t GetMinPosition() const
virtual Float_t GetMaxPosition() const
virtual void MapSubwindows()
virtual void SetRange(Float_t min, Float_t max)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
TGDoubleSlider(const TGDoubleSlider &)
virtual Bool_t HandleButton(Event_t *event)=0
virtual void DoRedraw()
Redraw the frame.
virtual void GetPosition(Float_t &min, Float_t &max) const
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void GetPosition(Float_t *min, Float_t *max) const
void Emit(const char *signal)
Acitvate signal without args.
const TGPicture * fSliderPic
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
virtual ~TGDoubleSlider()
static void FixBounds(Float_t &min, Float_t &max)
Avoid boundaries to be equal.
void ChangeCursor(Event_t *event)
Change the cursor shape depending on the slider area.
virtual Bool_t HandleMotion(Event_t *event)=0
virtual void MapSubwindows()
virtual void SetPosition(Float_t min, Float_t max)
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual void SetScale(Int_t scale)
TGDoubleSlider & operator=(const TGDoubleSlider &)
virtual void PositionChanged()
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;