Logo ROOT  
Reference Guide
TWbox.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Rene Brun 12/12/94
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_TWbox
13 #define ROOT_TWbox
14 
15 
16 #include "TBox.h"
17 
18 #include "TColor.h"
19 
20 class TWbox : public TBox {
21 
22 protected:
23  Short_t fBorderSize{0}; ///< window box bordersize in pixels
24  Short_t fBorderMode{0}; ///< Bordermode (-1=down, 0 = no border, 1=up)
25 
26 public:
27  TWbox() {} // NOLINT: not allowed to use = default because of TObject::kIsOnHeap detection, see ROOT-10300
29  Color_t color=18, Short_t bordersize=5 ,Short_t bordermode=1);
30  TWbox(const TWbox &wbox);
31  virtual ~TWbox() = default;
32 
33  TWbox &operator=(const TWbox &src);
34 
35  void Copy(TObject &wbox) const;
36  virtual void Draw(Option_t *option="");
37  virtual void DrawWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
38  Color_t color=33 ,Short_t bordersize=5 ,Short_t bordermode=-1);
39  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
40  Short_t GetBorderMode() const { return fBorderMode;}
41  Short_t GetBorderSize() const { return fBorderSize;}
44  virtual void Paint(Option_t *option="");
45  virtual void PaintFrame(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
46  Color_t color, Short_t bordersize, Short_t bordermode,
47  Bool_t tops);
48  virtual void PaintWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
49  Color_t color=33, Short_t bordersize=5, Short_t bordermode=-1);
50  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
51  virtual void SetBorderMode(Short_t bordermode) {fBorderMode = bordermode;} // *MENU*
52  virtual void SetBorderSize(Short_t bordersize) {fBorderSize = bordersize;} // *MENU*
53 
54  ClassDef(TWbox,1) //A window box (box with 3-D effects)
55 };
56 
57 #endif
58 
TWbox::GetLightColor
Int_t GetLightColor() const
Definition: TWbox.h:43
TWbox::TWbox
TWbox()
Definition: TWbox.h:27
TWbox::SetBorderMode
virtual void SetBorderMode(Short_t bordermode)
Definition: TWbox.h:51
TWbox::Copy
void Copy(TObject &wbox) const
Copy this wbox to wbox.
Definition: TWbox.cxx:75
Option_t
const char Option_t
Definition: RtypesCore.h:66
TWbox::GetDarkColor
Int_t GetDarkColor() const
Definition: TWbox.h:42
TWbox::fBorderMode
Short_t fBorderMode
Bordermode (-1=down, 0 = no border, 1=up)
Definition: TWbox.h:24
TWbox::Draw
virtual void Draw(Option_t *option="")
Draw this wbox with its current attributes.
Definition: TWbox.cxx:85
TColor.h
TWbox::DrawWbox
virtual void DrawWbox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color=33, Short_t bordersize=5, Short_t bordermode=-1)
Draw this wbox with new coordinates.
Definition: TWbox.cxx:93
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
Color_t
short Color_t
Definition: RtypesCore.h:83
TWbox::~TWbox
virtual ~TWbox()=default
x1
static const double x1[5]
Definition: RooGaussKronrodIntegrator1D.cxx:346
TWbox::GetBorderSize
Short_t GetBorderSize() const
Definition: TWbox.h:41
TBox.h
TWbox::fBorderSize
Short_t fBorderSize
window box bordersize in pixels
Definition: TWbox.h:23
TWbox::PaintWbox
virtual void PaintWbox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color=33, Short_t bordersize=5, Short_t bordermode=-1)
Draw this wbox with new coordinates.
Definition: TWbox.cxx:122
TWbox::GetBorderMode
Short_t GetBorderMode() const
Definition: TWbox.h:40
TColor::GetColorBright
static Int_t GetColorBright(Int_t color)
Static function: Returns the bright color number corresponding to n If the TColor object does not exi...
Definition: TColor.cxx:1913
TWbox::SetBorderSize
virtual void SetBorderSize(Short_t bordersize)
Definition: TWbox.h:52
Short_t
short Short_t
Definition: RtypesCore.h:39
TBox
Create a Box.
Definition: TBox.h:22
Double_t
double Double_t
Definition: RtypesCore.h:59
TWbox::SavePrimitive
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TWbox.cxx:205
TWbox
A TBox with a bordersize and a bordermode.
Definition: TWbox.h:20
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TColor::GetColorDark
static Int_t GetColorDark(Int_t color)
Static function: Returns the dark color number corresponding to n If the TColor object does not exist...
Definition: TColor.cxx:1945
x2
static const double x2[5]
Definition: RooGaussKronrodIntegrator1D.cxx:364
TAttFill::GetFillColor
virtual Color_t GetFillColor() const
Return the fill area color.
Definition: TAttFill.h:30
TWbox::Paint
virtual void Paint(Option_t *option="")
Paint this wbox with its current attributes.
Definition: TWbox.cxx:114
TWbox::PaintFrame
virtual void PaintFrame(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color, Short_t bordersize, Short_t bordermode, Bool_t tops)
Paint a 3D frame around a box.
Definition: TWbox.cxx:136
TWbox::ExecuteEvent
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TWbox.cxx:106
TWbox::operator=
TWbox & operator=(const TWbox &src)
assignment operator
Definition: TWbox.cxx:66
int