Lines Matching refs:Rect2

38 struct Rect2 {  struct
50 inline bool intersects(const Rect2 &p_rect, const bool p_include_borders = false) const { argument
106 bool intersects_transformed(const Transform2D &p_xform, const Rect2 &p_rect) const;
110 inline bool encloses(const Rect2 &p_rect) const { in encloses() argument
121 inline Rect2 clip(const Rect2 &p_rect) const { /// return a clipped rect in clip() argument
123 Rect2 new_rect = p_rect; in clip()
126 return Rect2(); in clip()
140 inline Rect2 merge(const Rect2 &p_rect) const { ///< return a merged rect in merge() argument
142 Rect2 new_rect; in merge()
167 bool is_equal_approx(const Rect2 &p_rect) const; argument
169 …bool operator==(const Rect2 &p_rect) const { return position == p_rect.position && size == p_rect.…
170 …bool operator!=(const Rect2 &p_rect) const { return position != p_rect.position || size != p_rect.…
172 inline Rect2 grow(real_t p_by) const { in grow() argument
174 Rect2 g = *this; in grow()
182 inline Rect2 grow_margin(Margin p_margin, real_t p_amount) const { in grow_margin() argument
183 Rect2 g = *this; in grow_margin()
191 inline Rect2 grow_individual(real_t p_left, real_t p_top, real_t p_right, real_t p_bottom) const { in grow_individual() argument
193 Rect2 g = *this; in grow_individual()
202 _FORCE_INLINE_ Rect2 expand(const Vector2 &p_vector) const { in expand() argument
204 Rect2 r = *this; in expand()
228 _FORCE_INLINE_ Rect2 abs() const { in abs() argument
230 return Rect2(Point2(position.x + MIN(size.x, 0), position.y + MIN(size.y, 0)), size.abs()); in abs()
235 Rect2() {} in Rect2() function
236 Rect2(real_t p_x, real_t p_y, real_t p_width, real_t p_height) : in Rect2() argument
240 Rect2(const Point2 &p_pos, const Size2 &p_size) : in Rect2() argument
390 operator Rect2() const { return Rect2(position, size); } in Rect2() function
391 Rect2i(const Rect2 &p_r2) : in Rect2i()