Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Public Attributes | List of all members
TGRectangle Class Reference

Definition at line 111 of file TGDimension.h.

Public Member Functions

 TGRectangle ()
 
 TGRectangle (Int_t rx, Int_t ry, UInt_t rw, UInt_t rh)
 
 TGRectangle (const TGPosition &p, const TGDimension &d)
 
 TGRectangle (const TGRectangle &r)
 
virtual ~TGRectangle ()
 
Int_t Area () const
 
Bool_t Contains (Int_t px, Int_t py) const
 
Bool_t Contains (const TGPosition &p) const
 
void Empty ()
 
Bool_t Intersects (const TGRectangle &r) const
 
Bool_t IsEmpty () const
 
TGPosition LeftTop () const
 
void Merge (const TGRectangle &r)
 
TGPosition RightBottom () const
 
TGDimension Size () const
 

Public Attributes

UInt_t fH
 
UInt_t fW
 
Int_t fX
 
Int_t fY
 

#include <TGDimension.h>

Constructor & Destructor Documentation

◆ TGRectangle() [1/4]

TGRectangle::TGRectangle ( )
inline

Definition at line 119 of file TGDimension.h.

◆ TGRectangle() [2/4]

TGRectangle::TGRectangle ( Int_t  rx,
Int_t  ry,
UInt_t  rw,
UInt_t  rh 
)
inline

Definition at line 120 of file TGDimension.h.

◆ TGRectangle() [3/4]

TGRectangle::TGRectangle ( const TGPosition p,
const TGDimension d 
)
inline

Definition at line 122 of file TGDimension.h.

◆ TGRectangle() [4/4]

TGRectangle::TGRectangle ( const TGRectangle r)
inline

Definition at line 124 of file TGDimension.h.

◆ ~TGRectangle()

virtual TGRectangle::~TGRectangle ( )
inlinevirtual

Definition at line 126 of file TGDimension.h.

Member Function Documentation

◆ Area()

Int_t TGRectangle::Area ( ) const
inline

Definition at line 138 of file TGDimension.h.

◆ Contains() [1/2]

Bool_t TGRectangle::Contains ( Int_t  px,
Int_t  py 
) const
inline

Definition at line 129 of file TGDimension.h.

◆ Contains() [2/2]

Bool_t TGRectangle::Contains ( const TGPosition p) const
inline

Definition at line 132 of file TGDimension.h.

◆ Empty()

void TGRectangle::Empty ( )
inline

Definition at line 147 of file TGDimension.h.

◆ Intersects()

Bool_t TGRectangle::Intersects ( const TGRectangle r) const
inline

Definition at line 135 of file TGDimension.h.

◆ IsEmpty()

Bool_t TGRectangle::IsEmpty ( ) const
inline

Definition at line 148 of file TGDimension.h.

◆ LeftTop()

TGPosition TGRectangle::LeftTop ( ) const
inline

Definition at line 142 of file TGDimension.h.

◆ Merge()

void TGRectangle::Merge ( const TGRectangle r)

Definition at line 42 of file TGDimension.cxx.

◆ RightBottom()

TGPosition TGRectangle::RightBottom ( ) const
inline

Definition at line 144 of file TGDimension.h.

◆ Size()

TGDimension TGRectangle::Size ( ) const
inline

Definition at line 140 of file TGDimension.h.

Member Data Documentation

◆ fH

UInt_t TGRectangle::fH

Definition at line 116 of file TGDimension.h.

◆ fW

UInt_t TGRectangle::fW

Definition at line 115 of file TGDimension.h.

◆ fX

Int_t TGRectangle::fX

Definition at line 113 of file TGDimension.h.

◆ fY

Int_t TGRectangle::fY

Definition at line 114 of file TGDimension.h.


The documentation for this class was generated from the following files: