60 wbox.TWbox::Copy(*
this);
68 src.TWbox::Copy(*
this);
142 if (bordermode == 0)
return;
143 if (bordersize <= 0) bordersize = 2;
145 Short_t pxl,pyl,pxt,pyt,px1,py1,px2,py2;
151 if (px1 < px2) {pxl = px1; pxt = px2; xl =
x1; xt =
x2; }
152 else {pxl = px2; pxt = px1; xl =
x2; xt =
x1;}
153 if (py1 > py2) {pyl = py1; pyt = py2; yl =
y1; yt =
y2;}
154 else {pyl = py2; pyt = py1; yl =
y2; yt =
y1;}
156 if (!
gPad->IsBatch()) {
165 frame[0].
fX = pxl; frame[0].
fY = pyl;
166 frame[1].
fX = pxl + bordersize; frame[1].
fY = pyl - bordersize;
167 frame[2].
fX = frame[1].
fX; frame[2].
fY = pyt + bordersize;
168 frame[3].
fX = pxt - bordersize; frame[3].
fY = frame[2].
fY;
169 frame[4].
fX = pxt; frame[4].
fY = pyt;
170 frame[5].
fX = pxl; frame[5].
fY = pyt;
171 frame[6].
fX = pxl; frame[6].
fY = pyl;
178 frame[0].
fX = pxl; frame[0].
fY = pyl;
179 frame[1].
fX = pxl + bordersize; frame[1].
fY = pyl - bordersize;
180 frame[2].
fX = pxt - bordersize; frame[2].
fY = frame[1].
fY;
181 frame[3].
fX = frame[2].
fX; frame[3].
fY = pyt + bordersize;
182 frame[4].
fX = pxt; frame[4].
fY = pyt;
183 frame[5].
fX = pxt; frame[5].
fY = pyl;
184 frame[6].
fX = pxl; frame[6].
fY = pyl;
200 gPad->PaintBorderPS(xl, yl, xt, yt, bordermode, bordersize,
214 out<<
"wbox = new TWbox("<<
fX1<<
","<<
fY1<<
","<<
fX2<<
","<<
fY2<<
");"<<std::endl;
219 out<<
" wbox->Draw();"<<std::endl;
Option_t Option_t SetFillStyle
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 SetFillColor
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char y1
virtual Color_t GetFillColor() const
Return the fill area color.
virtual void Modify()
Change current fill area attributes if necessary.
virtual Bool_t IsTransparent() const
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void PaintBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Option_t *option="")
Draw this box with new coordinates.
Double_t fX1
X of 1st point.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Double_t fY2
Y of 2nd point.
Double_t fX2
X of 2nd point.
Double_t fY1
Y of 1st point.
void Copy(TObject &box) const override
Copy a Box.
static Int_t GetColorBright(Int_t color)
Static function: Returns the bright color number corresponding to n If the TColor object does not exi...
static Int_t GetColorDark(Int_t color)
Static function: Returns the dark color number corresponding to n If the TColor object does not exist...
Mother of all ROOT objects.
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
@ kCanDelete
if object in a list can be deleted
A TBox with a bordersize and a bordermode.
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.
void Paint(Option_t *option="") override
Paint this wbox with its current attributes.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
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.
Int_t GetDarkColor() const
void Draw(Option_t *option="") override
Draw this wbox with its current attributes.
Int_t GetLightColor() const
Short_t fBorderSize
window box bordersize in pixels
TWbox & operator=(const TWbox &src)
assignment operator
Short_t fBorderMode
Bordermode (-1=down, 0 = no border, 1=up)
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
virtual TWbox * 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.
void Copy(TObject &wbox) const override
Copy this wbox to wbox.