library: libGui #include "TGSlider.h" |
TGSlider
class description - source file - inheritance tree (.pdf)
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
protected:
TString GetTypeString() const
public:
virtual ~TGSlider()
static TClass* Class()
virtual Int_t GetMaxPosition() const
virtual Int_t GetMinPosition() const
virtual Int_t GetPosition() 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)
TString GetTypeString() const
Returns the slider type as a string - used in SavePrimitive().
Inline Functions
void ~TGSlider()
Bool_t HandleButton(Event_t* event)
Bool_t HandleMotion(Event_t* event)
void SetScale(Int_t scale)
void SetRange(Int_t min, Int_t max)
void SetPosition(Int_t pos)
Int_t GetPosition() const
Int_t GetMinPosition() const
Int_t GetMaxPosition() const
void MapSubwindows()
void PositionChanged(Int_t pos)
void Pressed()
void Released()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Fons Rademakers 14/01/98
Last update: root/gui:$Name: $:$Id: TGSlider.cxx,v 1.11 2004/09/16 09:44:11 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.