library: libGraf #include "TWbox.h"

# TWbox

class description - source file - inheritance tree (.pdf)

## class TWbox : public TBox

| Inheritance Chart:

`TObject`

`TAttLine`

`TAttFill`

<-

`TBox`

<-

`TWbox`

<-

`TFrame` |

`TSliderBox` |

        public:

                          TWbox()
                          TWbox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color = 18, Short_t bordersize = 5, Short_t bordermode = 1)
                          TWbox(const TWbox& wbox)
                  virtual ~TWbox()
           static TClass* Class()
             virtual void Copy(TObject& wbox) const
             virtual void Draw(Option_t* option = "")
             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)
             virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
                  Short_t GetBorderMode() const
                  Short_t GetBorderSize() const
                    Int_t GetDarkColor() const
                    Int_t GetLightColor() const
          virtual TClass* IsA() const
                   TWbox& operator=(const TWbox&)
             virtual void Paint(Option_t* option = "")
             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)
             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)
             virtual void SavePrimitive(ofstream& out, Option_t* option)
             virtual void SetBorderMode(Short_t bordermode)
             virtual void SetBorderSize(Short_t bordersize)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          Short_t fBorderSize  window box bordersize in pixels
          Short_t fBorderMode  Bordermode (-1=down, 0 = no border, 1=up)

## Class Description

     a TWbox is a TBox with a bordersize and a bordermode.

/* */

TWbox(): TBox()

    *-*-*-*-*-*-*-*-*-*-*wbox default constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ========================

TWbox(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Color_t color ,Short_t bordersize ,Short_t bordermode) :TBox(x1,y1,x2,y2)

    *-*-*-*-*-*-*-*-*-*-*wbox normal constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  =======================
     a WBOX is a box with a bordersize and a bordermode
     the bordersize is in pixels
     bordermode = -1 box looks as it is behind the screen
     bordermode = 0  no special effects
     bordermode = 1  box looks as it is in front of the screen

~TWbox()

    *-*-*-*-*-*-*-*-*-*-*wbox default destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  =======================

TWbox(const TWbox &wbox) : TBox(wbox)

void Copy(TObject &obj) const

    *-*-*-*-*-*-*-*-*-*-*Copy this wbox to wbox*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
    *-*                  ======================

void Draw(Option_t *option)

    *-*-*-*-*-*-*-*-*-*-*Draw this wbox with its current attributes*-*-*-*-*-*-*
    *-*                  ==========================================

void DrawWbox(Double_t x1, Double_t y1,Double_t x2, Double_t y2, Color_t color ,Short_t bordersize ,Short_t bordermode)

    *-*-*-*-*-*-*-*-*-*-*Draw this wbox with new coordinates*-*-*-*-*-*-*-*-*-*
    *-*                  ===================================

void ExecuteEvent(Int_t event, Int_t px, Int_t py)

    *-*-*-*-*-*-*-*-*-*-*Execute action corresponding to one event*-*-*-*
    *-*                  =========================================
      This member function is called when a WBOX object is clicked.

void Paint(Option_t *)

    *-*-*-*-*-*-*-*-*-*-*Paint this wbox with its current attributes*-*-*-*-*-*-*
    *-*                  ===========================================

void PaintWbox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Color_t color, Short_t bordersize, Short_t bordermode)

    *-*-*-*-*-*-*-*-*-*-*Draw this wbox with new coordinates*-*-*-*-*-*-*-*-*-*
    *-*                  ===================================

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.

void SavePrimitive(ofstream &out, Option_t *)

     Save primitive as a C++ statement(s) on output stream out

### Inline Functions

                Short_t GetBorderMode() const
                Short_t GetBorderSize() const
                  Int_t GetDarkColor() const
                  Int_t GetLightColor() const
                   void SetBorderMode(Short_t bordermode)
                   void SetBorderSize(Short_t bordersize)
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                 TWbox& operator=(const TWbox&)

Author: Rene Brun 12/12/94
Last update: root/graf:$Name: $:$Id: TWbox.cxx,v 1.7 2002/10/31 07:27:35 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *