Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18class TSlider;
19
20class TSliderBox : public TWbox {
21
22protected:
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
31public:
32 TSliderBox();
34 Color_t color=18, Short_t bordersize=2 ,Short_t bordermode=-1);
35 virtual ~TSliderBox();
36 void ExecuteEvent(Int_t event, Int_t px, Int_t py) override;
37 void SavePrimitive(std::ostream &out, Option_t *option = "") override;
38 void SetSlider(TSlider*slider) { fSlider=slider; }
39
40 ClassDefOverride(TSliderBox,1) //The moving box of a TSlider
41};
42
43#endif
44
int Int_t
Definition RtypesCore.h:45
short Color_t
Definition RtypesCore.h:92
short Short_t
Definition RtypesCore.h:39
double Double_t
Definition RtypesCore.h:59
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t option
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
The moving box in a TSlider.
Definition TSliderBox.h:20
virtual ~TSliderBox()
SliderBox default destructor.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
TSliderBox & operator=(const TSliderBox &sb)
Definition TSliderBox.h:27
TSlider * fSlider
Pointer to slider.
Definition TSliderBox.h:23
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Interaction with a slider.
TSliderBox()
SliderBox default constructor.
void SetSlider(TSlider *slider)
Definition TSliderBox.h:38
TSliderBox(const TSliderBox &sb)
Definition TSliderBox.h:25
A specialized TPad including a TSliderBox object.
Definition TSlider.h:17
A TBox with a bordersize and a bordermode.
Definition TWbox.h:20
TWbox & operator=(const TWbox &src)
assignment operator
Definition TWbox.cxx:66