103 else Warning(
"SetRange",
"Incorrect range boundaries [%d,%d]", min, max);
107 else Warning(
"SetPosition",
"The position (%d) is out of range [%d,%d]", pos,
fVmin,
fVmax);
#define ClassDef(name, id)
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void FreePicture(const TGPicture *pic)
Free picture resource.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void Resize(TGDimension size)
Resize the frame.
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual void DoRedraw()
Redraw horizontal slider widget.
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 ~TGHSlider()
Delete a horizontal slider widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal slide widget.
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 Int_t GetMaxPosition() const
virtual void CreateDisabledPicture()
Creates disabled picture.
TGSlider & operator=(const TGSlider &)
virtual void ChangeSliderPic(const char *name)
virtual Int_t GetPosition() const
const TGPicture * fSliderPic
virtual void MapSubwindows()
virtual Int_t GetMinPosition() const
virtual Bool_t HandleButton(Event_t *event)=0
TGSlider(const TGSlider &)
virtual void SetPosition(Int_t pos)
TString GetTypeString() const
Returns the slider type as a string - used in SavePrimitive().
virtual Int_t GetScale() const
virtual Bool_t HandleMotion(Event_t *event)=0
virtual void SetRange(Int_t min, Int_t max)
virtual void SetEnabled(Bool_t flag=kTRUE)
const TGPicture * fDisabledPic
virtual void PositionChanged(Int_t pos)
virtual Bool_t HandleConfigureNotify(Event_t *event)=0
This event is generated when the frame is resized.
virtual void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
virtual void SetScale(Int_t scale)
virtual void Resize(UInt_t w, UInt_t h)
Resize the frame.
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handles resize events for this widget.
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 ~TGVSlider()
Delete vertical slider widget.
virtual void DoRedraw()
Redraw vertical slider widget.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save an horizontal slider as a C++ statement(s) on output stream out.
virtual void Resize(TGDimension size)
Resize the frame.
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in vertical slider.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in vertical slider.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.