cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCRect Class Reference

NA. More...

#include <CCGeometry.h>

Collaboration diagram for CCRect:
[legend]

Public Member Functions

 CCRect ()
 
 CCRect (float x, float y, float width, float height)
 
 CCRect (const CCRect &other)
 NA. More...
 
CCRectoperator= (const CCRect &other)
 NA. More...
 
void setRect (float x, float y, float width, float height)
 
float getMinX () const
 
float getMidX () const
 return the leftmost x-value of current rect More...
 
float getMaxX () const
 return the midpoint x-value of current rect More...
 
float getMinY () const
 return the rightmost x-value of current rect More...
 
float getMidY () const
 return the bottommost y-value of current rect More...
 
float getMaxY () const
 return the midpoint y-value of current rect More...
 
bool equals (const CCRect &rect) const
 return the topmost y-value of current rect More...
 
bool containsPoint (const CCPoint &point) const
 
bool intersectsRect (const CCRect &rect) const
 

Public Attributes

CCPoint origin
 
CCSize size
 

Detailed Description

NA.

Constructor & Destructor Documentation

◆ CCRect() [1/3]

CCRect ( )

◆ CCRect() [2/3]

CCRect ( float  x,
float  y,
float  width,
float  height 
)

◆ CCRect() [3/3]

CCRect ( const CCRect other)

NA.

Member Function Documentation

◆ containsPoint()

bool containsPoint ( const CCPoint point) const

◆ equals()

bool equals ( const CCRect rect) const

return the topmost y-value of current rect

◆ getMaxX()

float getMaxX ( ) const

return the midpoint x-value of current rect

◆ getMaxY()

float getMaxY ( ) const

return the midpoint y-value of current rect

◆ getMidX()

float getMidX ( ) const

return the leftmost x-value of current rect

◆ getMidY()

float getMidY ( ) const

return the bottommost y-value of current rect

◆ getMinX()

float getMinX ( ) const

◆ getMinY()

float getMinY ( ) const

return the rightmost x-value of current rect

◆ intersectsRect()

bool intersectsRect ( const CCRect rect) const

◆ operator=()

CCRect & operator= ( const CCRect other)

NA.

◆ setRect()

void setRect ( float  x,
float  y,
float  width,
float  height 
)

Member Data Documentation

◆ origin

CCPoint origin

◆ size

CCSize size

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