summaryrefslogtreecommitdiffstats
path: root/scene/gui/popup.h
diff options
context:
space:
mode:
authorhomer666 <homer666@users.noreply.github.com>2019-04-27 05:36:44 +1000
committerhomer666 <homer666@users.noreply.github.com>2019-04-30 05:35:43 +1000
commit80e9e93e27622e1c03a4da0ef130367191a7b996 (patch)
treed21bfc3ed32d0f4fe669cfec8f02971f69f954b7 /scene/gui/popup.h
parent7018de8425e8c2781071595fdcf565acdfde2be4 (diff)
downloadredot-engine-80e9e93e27622e1c03a4da0ef130367191a7b996.tar.gz
Add Popup::popup_centered_clamped method
- Also replace redundant duplicate code in editor dialogs with calls to popup_centered_clamped()
Diffstat (limited to 'scene/gui/popup.h')
-rw-r--r--scene/gui/popup.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/popup.h b/scene/gui/popup.h
index 7ccefe1d75..6615c51ec5 100644
--- a/scene/gui/popup.h
+++ b/scene/gui/popup.h
@@ -64,6 +64,7 @@ public:
void popup_centered(const Size2 &p_size = Size2());
void popup_centered_minsize(const Size2 &p_minsize = Size2());
void set_as_minsize();
+ void popup_centered_clamped(const Size2 &p_size = Size2(), float p_fallback_ratio = 0.75);
virtual void popup(const Rect2 &p_bounds = Rect2());
virtual String get_configuration_warning() const;