Logo ROOT  
Reference Guide
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 
26  : TWbox(sb), fSlider(sb.fSlider) { }
28  {if(this!=&sb) {TWbox::operator=(sb); fSlider=sb.fSlider;}
29  return *this; }
30 
31 public:
32  TSliderBox();
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 
TSliderBox::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Interaction with a slider.
Definition: TSliderBox.cxx:55
TSliderBox
Definition: TSliderBox.h:20
TWbox.h
TSliderBox::fSlider
TSlider * fSlider
Pointer to slider.
Definition: TSliderBox.h:23
TSliderBox::~TSliderBox
virtual ~TSliderBox()
SliderBox default destructor.
Definition: TSliderBox.cxx:48
TSliderBox::operator=
TSliderBox & operator=(const TSliderBox &sb)
Definition: TSliderBox.h:27
Int_t
int Int_t
Definition: RtypesCore.h:45
TSliderBox::TSliderBox
TSliderBox(const TSliderBox &sb)
Definition: TSliderBox.h:25
Color_t
short Color_t
Definition: RtypesCore.h:83
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
Short_t
short Short_t
Definition: RtypesCore.h:39
TSliderBox::TSliderBox
TSliderBox()
SliderBox default constructor.
Definition: TSliderBox.cxx:31
Double_t
double Double_t
Definition: RtypesCore.h:59
TSliderBox::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TSliderBox.cxx:291
TWbox
Definition: TWbox.h:20
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TSliderBox::SetSlider
void SetSlider(TSlider *slider)
Definition: TSliderBox.h:38
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TWbox::operator=
TWbox & operator=(const TWbox &src)
assignment operator
Definition: TWbox.cxx:66
TSlider
Definition: TSlider.h:18