12 #ifndef ROOT_TGDimension 13 #define ROOT_TGDimension 59 {
return ((fX == b.
fX) && (fY == b.
fY)); }
80 {
return ((fX == b.
fX) && (fY == b.
fY)); }
99 fL(lf), fR(rg), fT(tp), fB(bt) { }
101 fL(in.fL), fR(in.fR), fT(in.fT), fB(in.fB) { }
105 {
return ((fL == in.
fL) && (fR == in.
fR) && (fT == in.
fT) && (fB == in.
fB)); }
121 fX(rx), fY(ry), fW(rw), fH(rh) { }
125 fX(r.fX), fY(r.fY), fW(r.fW), fH(r.fH) { }
130 {
return ((px >= fX) && (px < fX + (
Int_t) fW) &&
131 (py >= fY) && (py < fY + (
Int_t) fH)); }
133 {
return ((p.
fX >= fX) && (p.
fX < fX + (
Int_t) fW) &&
134 (p.
fY >= fY) && (p.
fY < fY + (
Int_t) fH)); }
136 {
return ((fX <= r.
fX + (
Int_t) r.
fW - 1) && (fX + (
Int_t) fW - 1 >= r.
fX) &&
139 {
return (fW * fH); }
147 void Empty() { fX = fY = 0; fW = fH = 0; }
TGPosition(const TGPosition &p)
TGRectangle(Int_t rx, Int_t ry, UInt_t rw, UInt_t rh)
Bool_t Contains(Int_t px, Int_t py) const
Bool_t operator==(const TGLongPosition &b) const
TGLongPosition operator+(const TGLongPosition &b) const
TGPosition LeftTop() const
Bool_t operator==(const TGDimension &b) const
Bool_t operator==(const TGInsets &in) const
Bool_t Contains(const TGPosition &p) const
#define ClassDef(name, id)
TGLongPosition operator-(const TGLongPosition &b) const
TGDimension operator+(const TGDimension &b) const
Bool_t operator==(const TGPosition &b) const
TGLongPosition(Long_t xc, Long_t yc)
virtual ~TGLongPosition()
TGDimension(const TGDimension &d)
TGInsets(Int_t lf, Int_t rg, Int_t tp, Int_t bt)
TGPosition operator+(const TGPosition &b) const
TGRectangle(const TGPosition &p, const TGDimension &d)
TGDimension operator-(const TGDimension &b) const
Bool_t Intersects(const TGRectangle &r) const
TGPosition RightBottom() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TGInsets(const TGInsets &in)
TGPosition operator-(const TGPosition &b) const
TGPosition(Int_t xc, Int_t yc)
TGRectangle(const TGRectangle &r)
TGLongPosition(const TGLongPosition &p)
TGDimension(UInt_t width, UInt_t height)