virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
TGHSlider(const TGWindow *p=0, UInt_t w=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetDefaultFrameBackground())
Create horizontal slider widget.
virtual void SetRange(Int_t min, Int_t max)
virtual void DoRedraw()
Redraw horizontal slider widget.
TGSlider & operator=(const TGSlider &)
virtual void MapSubwindows()
virtual void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
virtual void Resize(TGDimension size)
Resize the frame.
TGSlider(const TGSlider &)
virtual Bool_t HandleConfigureNotify(Event_t *event)=0
This event is generated when the frame is resized.
const TGPicture * fDisabledPic
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual Bool_t HandleButton(Event_t *event)=0
virtual Int_t GetMinPosition() const
void Emit(const char *signal)
Acitvate signal without args.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal slider widget.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handles resize events for this widget.
virtual ~TGHSlider()
Delete a horizontal slider widget.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical slider.
virtual void ChangeSliderPic(const char *name)
virtual Int_t GetPosition() const
virtual void Resize(TGDimension size)
Resize the frame.
TGVSlider(const TGWindow *p=0, UInt_t h=40, UInt_t type=kSlider1|kScaleBoth, Int_t id=-1, UInt_t options=kVerticalFrame, Pixel_t back=GetDefaultFrameBackground())
Create a vertical slider widget.
virtual void SetPosition(Int_t pos)
virtual Int_t GetMaxPosition() const
virtual void SetScale(Int_t scale)
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual void PositionChanged(Int_t pos)
virtual Int_t GetScale() const
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void SetEnabled(Bool_t flag=kTRUE)
virtual Bool_t HandleMotion(Event_t *event)=0
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void CreateDisabledPicture()
Creates disabled picture.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal slide widget.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical slider.
virtual void DoRedraw()
Redraw vertical slider widget.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handles resize events for this widget.
virtual void MapSubwindows()
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
const TGPicture * fSliderPic
TString GetTypeString() const
Returns the slider type as a string - used in SavePrimitive().
virtual ~TGVSlider()
Delete vertical slider widget.