TGDoubleHSlider


class description - source file - inheritance tree

class TGDoubleHSlider : public TGDoubleSlider


    protected:
virtual void DoRedraw() public:
TGDoubleHSlider TGDoubleHSlider(TGWindow* p, UInt_t w, UInt_t scale, Int_t id = -1, UInt_t options = kHorizontalFrame, ULong_t back = fgDefaultFrameBackground) TGDoubleHSlider TGDoubleHSlider(TGDoubleHSlider&) virtual void ~TGDoubleHSlider() TClass* Class() virtual TGDimension GetDefaultSize() virtual Bool_t HandleButton(Event_t* event) virtual Bool_t HandleMotion(Event_t* event) virtual TClass* IsA() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b)

Data Members

protected:
Int_t fXp horizontal slider x position in pixel coordinates

Class Description

                                                                      
 TGDoubleSlider, TGDoubleVSlider and TGDoubleHSlider                  
                                                                      
 DoubleSlider widgets allow easy selection of a min and a max value   
 out of a range.                                                      
 DoubleSliders can be either horizontal or vertical oriented and      
 there is a choice of three different types of tick marks.            
                                                                      
 To change the min value press the mouse near to the left / bottom    
 edge of the slider.                                                  
 To change the max value press the mouse near to the right / top      
 edge of the slider.                                                  
 To change both values simultaneously press the mouse near to the     
 center of the slider.                                                
                                                                      
 TGDoubleSlider is an abstract base class. Use the concrete           
 TGDoubleVSlider and TGDoubleHSlider.                                 
                                                                      
 Dragging the slider will generate the event:                         
 kC_VSLIDER, kSL_POS, slider id, 0  (for vertical slider)             
 kC_HSLIDER, kSL_POS, slider id, 0  (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)       
                                                                      
 Use the functions GetMinPosition(), GetMaxPosition() and             
 GetPosition() to retrieve the position of the slider.                
                                                                      


TGDoubleHSlider(const TGWindow *p, UInt_t w, UInt_t type, Int_t id, UInt_t options, ULong_t back) : TGDoubleSlider(p, w, kDoubleSliderHeight, type, id, options, back)
 Create horizontal slider widget.

~TGDoubleHSlider()
 Delete a horizontal slider widget.

void DoRedraw()
 Redraw horizontal slider widget.

Bool_t HandleButton(Event_t *event)
 Handle mouse button event in horizontal slider widget.

Bool_t HandleMotion(Event_t *event)
 Handle mouse motion event in horizontal slide widget.



Inline Functions


            TGDimension GetDefaultSize()
                TClass* Class()
                TClass* IsA()
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
        TGDoubleHSlider TGDoubleHSlider(TGDoubleHSlider&)


Author: Reiner Rohlfs 30/09/98
Last update: 2.00/12 05/10/98 15.50.21 by Fons Rademakers
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.