ROOT  6.06/09
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 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TWbox //
19 // //
20 // A window box (box with 3-D effects). //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 
25 #ifndef ROOT_TBox
26 #include "TBox.h"
27 #endif
28 
29 #ifndef ROOT_TColor
30 #include "TColor.h"
31 #endif
32 
33 class TWbox : public TBox {
34 
35 protected:
36  Short_t fBorderSize; //window box bordersize in pixels
37  Short_t fBorderMode; //Bordermode (-1=down, 0 = no border, 1=up)
38 
39 public:
40  TWbox();
42  Color_t color=18, Short_t bordersize=5 ,Short_t bordermode=1);
43  TWbox(const TWbox &wbox);
44  virtual ~TWbox();
45 
46  void Copy(TObject &wbox) const;
47  virtual void Draw(Option_t *option="");
48  virtual void DrawWbox(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 ExecuteEvent(Int_t event, Int_t px, Int_t py);
51  Short_t GetBorderMode() const { return fBorderMode;}
52  Short_t GetBorderSize() const { return fBorderSize;}
55  virtual void Paint(Option_t *option="");
56  virtual void PaintFrame(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
57  Color_t color, Short_t bordersize, Short_t bordermode,
58  Bool_t tops);
59  virtual void PaintWbox(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2,
60  Color_t color=33, Short_t bordersize=5, Short_t bordermode=-1);
61  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
62  virtual void SetBorderMode(Short_t bordermode) {fBorderMode = bordermode;} // *MENU*
63  virtual void SetBorderSize(Short_t bordersize) {fBorderSize = bordersize;} // *MENU*
64 
65  ClassDef(TWbox,1) //A window box (box with 3-D effects)
66 };
67 
68 #endif
69 
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Definition: TWbox.cxx:115
ClassDef(TAttBBox2D, 0)
virtual void SetBorderMode(Short_t bordermode)
Definition: TWbox.h:62
const char Option_t
Definition: RtypesCore.h:62
Create a Box.
Definition: TBox.h:44
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:1808
virtual ~TWbox()
wbox default destructor.
Definition: TWbox.cxx:67
Short_t fBorderMode
Definition: TWbox.h:37
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
static const double x2[5]
Short_t fBorderSize
Definition: TWbox.h:36
Int_t GetDarkColor() const
Definition: TWbox.h:53
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:131
virtual void Draw(Option_t *option="")
Draw this wbox with its current attributes.
Definition: TWbox.cxx:94
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:102
virtual void SetBorderSize(Short_t bordersize)
Definition: TWbox.h:63
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
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:1776
virtual Color_t GetFillColor() const
Definition: TAttFill.h:43
short Short_t
Definition: RtypesCore.h:35
static const double x1[5]
double Double_t
Definition: RtypesCore.h:55
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:145
void Copy(TObject &wbox) const
Copy this wbox to wbox.
Definition: TWbox.cxx:84
Int_t GetLightColor() const
Definition: TWbox.h:54
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TWbox.cxx:214
virtual void Paint(Option_t *option="")
Paint this wbox with its current attributes.
Definition: TWbox.cxx:123
Short_t GetBorderMode() const
Definition: TWbox.h:51
Short_t GetBorderSize() const
Definition: TWbox.h:52