12#ifndef ROOT_TGDoubleSlider
13#define ROOT_TGDoubleSlider
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
long long Long64_t
Portable signed long integer 8 bytes.
float Float_t
Float 4 bytes (float).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
void DoRedraw() override
Redraw horizontal slider widget.
TGDoubleHSlider(const TGWindow *p=nullptr, 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)
Create horizontal slider widget.
Int_t fXp
horizontal slider x position in pixel coordinates
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in horizontal slide widget.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
~TGDoubleHSlider() override
Delete a horizontal slider widget.
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal slider widget.
TGDoubleSlider & operator=(const TGDoubleSlider &)=delete
void ChangeCursor(Event_t *event)
Change the cursor shape depending on the slider area.
virtual void SetRange(Double_t min, Double_t max)
virtual Float_t GetMaxPosition() const
Double_t fSmin
logical position of min value of Slider
virtual void GetPosition(Long64_t *min, Long64_t *max) const
Int_t fScaleType
tick mark scale type (no, downright, both)
virtual void SetPosition(Int_t min, Int_t max)
Double_t fPressSmax
logical max position at button press event
virtual void PositionChanged()
TGDoubleSlider(const TGDoubleSlider &)=delete
Bool_t HandleMotion(Event_t *event) override=0
virtual void GetPosition(Float_t *min, Float_t *max) const
Double_t fSmax
logical position of max value of Slider
static void FixBounds(Double_t &min, Double_t &max)
Avoid boundaries to be equal.
virtual void GetPosition(Double_t *min, Double_t *max) const
virtual Double_t GetMaxPositionD() const
Double_t fVmax
logical upper limit of slider
Int_t fScale
tick mark scale
Double_t fVmin
logical lower limit of slider
Int_t fMove
1: move min value 2: move max value 3: move min and max value 0: don't move any value
Int_t fRelPos
slider position in pixel coordinates
virtual void GetPosition(Float_t &min, Float_t &max) const
Double_t fPos
logical position between fVmin and fVmax
virtual Long64_t GetMinPositionL() const
virtual void SetPosition(Double_t min, Double_t max)
virtual Float_t GetMinPosition() const
virtual void GetPosition(Long64_t &min, Long64_t &max) const
virtual Double_t GetMinPositionD() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetRange(Int_t min, Int_t max)
Bool_t fReversedScale
reverse which end is min and max
Double_t fPressSmin
logical min position at button press event
~TGDoubleSlider() override
Bool_t fMarkEnds
lines marking where stretch zones begin
void MapSubwindows() override
map sub windows
Bool_t HandleButton(Event_t *event) override=0
virtual void SetScale(Int_t scale)
Int_t fPressPoint
mouse position at button press event
virtual void SetPosition(Long64_t min, Long64_t max)
virtual Long64_t GetMaxPositionL() const
virtual void GetPosition(Double_t &min, Double_t &max) const
const TGPicture * fSliderPic
picture to draw slider ends
virtual void SetRange(Long64_t min, Long64_t max)
TString GetSString() const
returns scaling type as string
virtual void SetPosition(Float_t min, Float_t max)
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in vertical slider.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an horizontal slider as a C++ statement(s) on output stream out.
Bool_t HandleMotion(Event_t *event) override
Handle mouse motion event in vertical slider.
TGDoubleVSlider(const TGWindow *p=nullptr, 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)
Create a vertical slider widget.
~TGDoubleVSlider() override
Delete vertical slider widget.
Int_t fYp
vertical slider y position in pixel coordinates
void DoRedraw() override
Redraw vertical slider widget.
TGFrame(const TGFrame &)=delete
UInt_t fHeight
frame height
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
TGClient * fClient
Connection to display server.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
virtual void MapSubwindows()
map sub windows
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.