TGSlider


class description - source file - inheritance tree

class TGSlider : public TGFrame, public TGWidget


    public:
virtual ~TGSlider() static TClass* Class() 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)

Data Members


    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


See also

TGHSlider, TGVSlider

Class Description

                                                                      
 TGSlider, TGVSlider and TGHSlider                                    
                                                                      
 Slider widgets allow easy selection out 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)       
                                                                      




Inline Functions


             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
               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)
               void ~TGSlider()


Author: Fons Rademakers 14/01/98
Last update: root/gui:$Name: $:$Id: TGSlider.cxx,v 1.7 2003/05/08 17:42:43 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - 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.