| library: libGui #include "TGSlider.h" |
| Inheritance Chart: | ||||||||||||||||||||||||||||||||
|
protected:
TString GetTypeString() const
TGSlider& operator=(const TGSlider&)
public:
virtual ~TGSlider()
static TClass* Class()
virtual Int_t GetMaxPosition() const
virtual Int_t GetMinPosition() const
virtual Int_t GetPosition() const
virtual Int_t GetScale() const
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleMotion(Event_t* event)
virtual TClass* IsA() const
virtual void MapSubwindows()
virtual void PositionChanged(Int_t pos)
virtual void Pressed()
virtual void Released()
virtual void SetPosition(Int_t pos)
virtual void SetRange(Int_t min, Int_t max)
virtual void SetScale(Int_t scale)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Int_t fPos logical position between fVmin and fVmax
Int_t fRelPos slider position in pixel coordinates
Int_t fVmin logical lower limit of slider
Int_t fVmax logical upper limit of slider
Int_t fType slider type bits
Int_t fScale tick mark scale
Bool_t fDragging true if in dragging mode
const TGPicture* fSliderPic picture to draw slider
TGSlider, TGVSlider and TGHSlider
Slider widgets allow easy selection of a range.
Sliders can be either horizontal or vertical oriented and there is
a choice of two different slider types and three different types
of tick marks.
TGSlider is an abstract base class. Use the concrete TGVSlider and
TGHSlider.
Dragging the slider will generate the event:
kC_VSLIDER, kSL_POS, slider id, position (for vertical slider)
kC_HSLIDER, kSL_POS, slider id, position (for horizontal slider)
Pressing the mouse will generate the event:
kC_VSLIDER, kSL_PRESS, slider id, 0 (for vertical slider)
kC_HSLIDER, kSL_PRESS, slider id, 0 (for horizontal slider)
Releasing the mouse will generate the event:
kC_VSLIDER, kSL_RELEASE, slider id, 0 (for vertical slider)
kC_HSLIDER, kSL_RELEASE, slider id, 0 (for horizontal slider)