TGSlider


class description - source file - inheritance tree

class TGSlider : public TGFrame, public TGWidget


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

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)    
                                                                      




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()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void ~TGSlider()


Author: Fons Rademakers 14/01/98
Last update: 2.23/02 02/09/99 15.54.27 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *


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.