summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-03-21 17:23:47 +0100
committerlupoDharkael <izhe@hotmail.es>2019-03-21 17:35:01 +0100
commit6232e7eed3a8cf583712b4b60bafe8c96eef22f0 (patch)
tree31b49f22109f51e467a3d6badbfef5378002312d /scene/gui
parent9c3ddf05cb9c59817d885e9daca6e8f61c89dc97 (diff)
Add missing methods to Rect2i
Replace inline with _FORCE_INLINE_ in short methods. Remove unused and redundant method no_area() as we already have has_no_area(). Add grow_individual() grow_margin() and expand() to Rect2i.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/texture_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/texture_button.cpp b/scene/gui/texture_button.cpp
index 19bef9fdf5..389fc59b49 100644
--- a/scene/gui/texture_button.cpp
+++ b/scene/gui/texture_button.cpp
@@ -64,7 +64,7 @@ bool TextureButton::has_point(const Point2 &p_point) const {
Rect2 rect = Rect2();
Size2 mask_size = click_mask->get_size();
- if (_position_rect.no_area()) {
+ if (_position_rect.has_no_area()) {
rect.size = mask_size;
} else if (_tile) {
// if the stretch mode is tile we offset the point to keep it inside the mask size