Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TSliderBox.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 23/11/96
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TSliderBox
13 #define ROOT_TSliderBox
14 
15 
16 #include "TWbox.h"
17 
18 class TSlider;
19 
20 class TSliderBox : public TWbox {
21 
22 protected:
23  TSlider *fSlider; ///< Pointer to slider
24 
25  TSliderBox(const TSliderBox& sb)
26  : TWbox(sb), fSlider(sb.fSlider) { }
27  TSliderBox& operator=(const TSliderBox& sb)
28  {if(this!=&sb) {TWbox::operator=(sb); fSlider=sb.fSlider;}
29  return *this; }
30 
31 public:
32  TSliderBox();
33  TSliderBox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
34  Color_t color=18, Short_t bordersize=2 ,Short_t bordermode=-1);
35  virtual ~TSliderBox();
36  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
37  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
38  void SetSlider(TSlider*slider) {fSlider=slider;}
39 
40  ClassDef(TSliderBox,1) //The moving box of a TSlider
41 };
42 
43 #endif
44