Logo ROOT  
Reference Guide
TGRectangle Class Reference

Definition at line 98 of file TGDimension.h.

Public Member Functions

 TGRectangle ()
 
 TGRectangle (const TGPosition &p, const TGDimension &d)
 
 TGRectangle (Int_t rx, Int_t ry, UInt_t rw, UInt_t rh)
 
 ~TGRectangle ()=default
 
Int_t Area () const
 
Bool_t Contains (const TGPosition &p) const
 
Bool_t Contains (Int_t px, Int_t py) 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/3]

TGRectangle::TGRectangle ( )
inline

Definition at line 106 of file TGDimension.h.

◆ TGRectangle() [2/3]

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

Definition at line 107 of file TGDimension.h.

◆ TGRectangle() [3/3]

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

Definition at line 109 of file TGDimension.h.

◆ ~TGRectangle()

TGRectangle::~TGRectangle ( )
default

Member Function Documentation

◆ Area()

Int_t TGRectangle::Area ( ) const
inline

Definition at line 123 of file TGDimension.h.

◆ Contains() [1/2]

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

Definition at line 117 of file TGDimension.h.

◆ Contains() [2/2]

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

Definition at line 114 of file TGDimension.h.

◆ Empty()

void TGRectangle::Empty ( )
inline

Definition at line 132 of file TGDimension.h.

◆ Intersects()

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

Definition at line 120 of file TGDimension.h.

◆ IsEmpty()

Bool_t TGRectangle::IsEmpty ( ) const
inline

Definition at line 133 of file TGDimension.h.

◆ LeftTop()

TGPosition TGRectangle::LeftTop ( ) const
inline

Definition at line 127 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 129 of file TGDimension.h.

◆ Size()

TGDimension TGRectangle::Size ( ) const
inline

Definition at line 125 of file TGDimension.h.

Member Data Documentation

◆ fH

UInt_t TGRectangle::fH

Definition at line 103 of file TGDimension.h.

◆ fW

UInt_t TGRectangle::fW

Definition at line 102 of file TGDimension.h.

◆ fX

Int_t TGRectangle::fX

Definition at line 100 of file TGDimension.h.

◆ fY

Int_t TGRectangle::fY

Definition at line 101 of file TGDimension.h.

Libraries for TGRectangle:
[legend]

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