Public Member Functions | Public Attributes | List of all members
Rect2i Struct Reference

Public Member Functions

const Point2iget_pos () const
 
void set_pos (const Point2i &p_pos)
 
const Point2iget_size () const
 
void set_size (const Point2i &p_size)
 
int get_area () const
 
bool intersects (const Rect2i &p_rect) const
 
bool encloses (const Rect2i &p_rect) const
 
bool has_no_area () const
 
Rect2i clip (const Rect2i &p_rect) const
 
Rect2i merge (const Rect2i &p_rect) const
 
bool has_point (const Point2 &p_point) const
 
bool no_area ()
 
bool operator== (const Rect2i &p_rect) const
 
bool operator!= (const Rect2i &p_rect) const
 
Rect2i grow (int p_by) const
 
void expand_to (const Point2i &p_vector)
 
 operator String () const
 
 operator Rect2 () const
 
 Rect2i (const Rect2 &p_r2)
 
 Rect2i (int p_x, int p_y, int p_width, int p_height)
 
 Rect2i (const Point2 &p_pos, const Size2 &p_size)
 

Public Attributes

Point2i pos
 
Size2i size
 

Member Function Documentation

Rect2i Rect2i::clip ( const Rect2i p_rect) const
inline

return a clipped rect

Rect2i Rect2i::merge ( const Rect2i p_rect) const
inline

< return a merged rect


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