Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGRectangle Class Reference

Definition at line 89 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
 height
 
UInt_t fW
 width
 
Int_t fX
 x position
 
Int_t fY
 y position
 

#include <TGDimension.h>

Constructor & Destructor Documentation

◆ TGRectangle() [1/3]

TGRectangle::TGRectangle ( )
inline

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

◆ TGRectangle() [3/3]

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

Definition at line 100 of file TGDimension.h.

◆ ~TGRectangle()

TGRectangle::~TGRectangle ( )
default

Member Function Documentation

◆ Area()

Int_t TGRectangle::Area ( ) const
inline

Definition at line 114 of file TGDimension.h.

◆ Contains() [1/2]

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

Definition at line 108 of file TGDimension.h.

◆ Contains() [2/2]

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

Definition at line 105 of file TGDimension.h.

◆ Empty()

void TGRectangle::Empty ( )
inline

Definition at line 123 of file TGDimension.h.

◆ Intersects()

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

Definition at line 111 of file TGDimension.h.

◆ IsEmpty()

Bool_t TGRectangle::IsEmpty ( ) const
inline

Definition at line 124 of file TGDimension.h.

◆ LeftTop()

TGPosition TGRectangle::LeftTop ( ) const
inline

Definition at line 118 of file TGDimension.h.

◆ Merge()

void TGRectangle::Merge ( const TGRectangle r)

Definition at line 49 of file TGDimension.cxx.

◆ RightBottom()

TGPosition TGRectangle::RightBottom ( ) const
inline

Definition at line 120 of file TGDimension.h.

◆ Size()

TGDimension TGRectangle::Size ( ) const
inline

Definition at line 116 of file TGDimension.h.

Member Data Documentation

◆ fH

UInt_t TGRectangle::fH

height

Definition at line 94 of file TGDimension.h.

◆ fW

UInt_t TGRectangle::fW

width

Definition at line 93 of file TGDimension.h.

◆ fX

Int_t TGRectangle::fX

x position

Definition at line 91 of file TGDimension.h.

◆ fY

Int_t TGRectangle::fY

y position

Definition at line 92 of file TGDimension.h.

Libraries for TGRectangle:

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