12#ifndef ROOT_TGDoubleSlider
13#define ROOT_TGDoubleSlider
ULong_t Pixel_t
Pixel value.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Dragging the slider will generate the event:
void DoRedraw() override
Redraw 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;
Bool_t HandleButton(Event_t *event) override
Handle mouse button event in horizontal slider widget.
virtual ~TGDoubleHSlider()
Delete a horizontal slider widget.
DoubleSlider widgets allow easy selection of a min and a max value out of a range.
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
Bool_t fMarkEnds
lines marking where stretch zones begin
virtual ~TGDoubleSlider()
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)
Dragging the slider will generate the event:
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.
Int_t fYp
vertical slider y position in pixel coordinates
virtual ~TGDoubleVSlider()
Delete vertical slider widget.
void DoRedraw() override
Redraw vertical slider widget.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
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.
ROOT GUI Window base class.
virtual void MapSubwindows()
map sub windows
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.