GUIDOLib  1.7.7
Guido Engine Internal Documentation
Public Member Functions | Public Attributes | List of all members
NVRect Class Reference

Public Member Functions

 NVRect ()
 
 NVRect (float p_left, float p_top, float p_right, float p_bottom)
 
NVRectoperator+= (const NVPoint &in)
 
NVRectoperator-= (const NVPoint &in)
 
NVRectoperator*= (float v)
 
bool operator== (const NVRect &r) const
 
NVRect operator+ (const NVPoint &in) const
 
void Print (std::ostream &os) const
 
void Set (const NVRect &in)
 
void Set (float inL, float inT, float inR, float inB)
 
void Merge (const NVRect &in)
 
NVRect Scale (float val) const
 
float Height () const
 
float Width () const
 
NVPoint TopLeft () const
 
NVPoint BottomRight () const
 
bool Contains (const NVPoint &p) const
 
bool Collides (const NVRect &r) const
 

Public Attributes

float left
 
float top
 
float right
 
float bottom
 

Constructor & Destructor Documentation

◆ NVRect() [1/2]

NVRect::NVRect ( )
inline

◆ NVRect() [2/2]

NVRect::NVRect ( float  p_left,
float  p_top,
float  p_right,
float  p_bottom 
)
inline

Member Function Documentation

◆ BottomRight()

NVPoint NVRect::BottomRight ( ) const
inline

◆ Collides()

bool NVRect::Collides ( const NVRect r) const

◆ Contains()

bool NVRect::Contains ( const NVPoint p) const

◆ Height()

float NVRect::Height ( ) const
inline

◆ Merge()

void NVRect::Merge ( const NVRect in)

◆ operator*=()

NVRect& NVRect::operator*= ( float  v)

◆ operator+()

NVRect NVRect::operator+ ( const NVPoint in) const

◆ operator+=()

NVRect& NVRect::operator+= ( const NVPoint in)

◆ operator-=()

NVRect& NVRect::operator-= ( const NVPoint in)

◆ operator==()

bool NVRect::operator== ( const NVRect r) const
inline

◆ Print()

void NVRect::Print ( std::ostream &  os) const
inline

◆ Scale()

NVRect NVRect::Scale ( float  val) const

◆ Set() [1/2]

void NVRect::Set ( const NVRect in)
inline

◆ Set() [2/2]

void NVRect::Set ( float  inL,
float  inT,
float  inR,
float  inB 
)

◆ TopLeft()

NVPoint NVRect::TopLeft ( ) const
inline

◆ Width()

float NVRect::Width ( ) const
inline

Member Data Documentation

◆ bottom

float NVRect::bottom

◆ left

float NVRect::left

◆ right

float NVRect::right

◆ top

float NVRect::top

Guido Project Copyright © 2019 Grame-CNCM