library: libGui
#include "TGSlider.h"

TGSlider


class description - header file - source file - inheritance tree (.pdf)

class TGSlider : public TGFrame, public TGWidget

Inheritance Chart:
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
TGWidget
<-
TGSlider
<-
TGHSlider
TGVSlider
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.


    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)

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

Class Description

                                                                      
 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)       
                                                                      

TGSlider& operator=(const TGSlider& sl)
assignment operator
TString GetTypeString()
 Returns the slider type as a string - used in SavePrimitive().
virtual ~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()
Int_t GetMinPosition()
Int_t GetMaxPosition()
Int_t GetScale()
void MapSubwindows()
void PositionChanged(Int_t pos)
void Pressed()
void Released()

Author: Fons Rademakers 14/01/98
Last update: root/gui:$Name: $:$Id: TGSlider.cxx,v 1.20 2006/07/09 05:27:54 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.