summaryrefslogtreecommitdiffstats
path: root/scene/gui/control.h
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-09-30 12:00:21 +0200
committerkobewi <kobewi4e@gmail.com>2021-02-19 18:32:24 +0100
commit84da090a6907fef7451eb7914ba3179f582d4380 (patch)
treeb714340aa695c89285aff29420b9efcd6840b80d /scene/gui/control.h
parent3c65550816b1f9ca0d4a12411a4d596ae8e7726b (diff)
downloadredot-engine-84da090a6907fef7451eb7914ba3179f582d4380.tar.gz
Warn when setting Control size inside ready()
Diffstat (limited to 'scene/gui/control.h')
-rw-r--r--scene/gui/control.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/control.h b/scene/gui/control.h
index 8b24781287..8981e05872 100644
--- a/scene/gui/control.h
+++ b/scene/gui/control.h
@@ -182,6 +182,7 @@ private:
float rotation = 0.0;
Vector2 scale = Vector2(1, 1);
Vector2 pivot_offset;
+ bool size_warning = true;
int h_size_flags = SIZE_FILL;
int v_size_flags = SIZE_FILL;
@@ -235,6 +236,7 @@ private:
void _update_minimum_size();
+ void _clear_size_warning();
void _update_scroll();
void _compute_offsets(Rect2 p_rect, const float p_anchors[4], float (&r_offsets)[4]);