ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TSliderBox //
19 // //
20 // The moving box of a TSlider //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #ifndef ROOT_TWbox
26 #include "TWbox.h"
27 #endif
28 
29 class TSlider;
30 
31 class TSliderBox : public TWbox {
32 
33 protected:
34  TSlider *fSlider; //Pointer to slider
35 
37  : TWbox(sb), fSlider(sb.fSlider) { }
39  {if(this!=&sb) {TWbox::operator=(sb); fSlider=sb.fSlider;}
40  return *this; }
41 
42 public:
43  TSliderBox();
45  Color_t color=18, Short_t bordersize=2 ,Short_t bordermode=-1);
46  virtual ~TSliderBox();
47  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
48  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
50 
51  ClassDef(TSliderBox,1) //The moving box of a TSlider
52 };
53 
54 #endif
55 
TBox & operator=(const TBox &)
Assignment operator.
Definition: TBox.cxx:92
tuple slider
Definition: hsum.py:65
ClassDef(TAttBBox2D, 0)
const char Option_t
Definition: RtypesCore.h:62
int Int_t
Definition: RtypesCore.h:41
Float_t py
Definition: hprod.C:33
The moving box in a TSlider.
Definition: TSliderBox.h:31
A specialized TPad including a TSliderBox object.
Definition: TSlider.h:31
static const double x2[5]
A TBox with a bordersize and a bordermode.
Definition: TWbox.h:33
char * out
Definition: TBase64.cxx:29
short Color_t
Definition: RtypesCore.h:79
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Interaction with a slider.
Definition: TSliderBox.cxx:55
void SetSlider(TSlider *slider)
Definition: TSliderBox.h:49
virtual ~TSliderBox()
SliderBox default destructor.
Definition: TSliderBox.cxx:48
short Short_t
Definition: RtypesCore.h:35
static const double x1[5]
double Double_t
Definition: RtypesCore.h:55
TSliderBox & operator=(const TSliderBox &sb)
Definition: TSliderBox.h:38
TSliderBox(const TSliderBox &sb)
Definition: TSliderBox.h:36
Float_t px
Definition: hprod.C:33
TSlider * fSlider
Definition: TSliderBox.h:34
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TSliderBox.cxx:291