summaryrefslogtreecommitdiffstats
path: root/scene/gui/subviewport_container.h
diff options
context:
space:
mode:
authorSpartan322 <Megacake1234@gmail.com>2024-11-26 12:56:19 -0500
committerSpartan322 <Megacake1234@gmail.com>2024-11-26 12:56:19 -0500
commite58e18261ea7ed3978146ef8d77a900be2601be3 (patch)
tree79c2a4c34f2d888ff962d76edf474c518d1abdea /scene/gui/subviewport_container.h
parentc5b1645e60a59c0292c04bece3fdb0715a61afea (diff)
parentd09d82d433b03bb3773fd2a8cc8d6ccc2f8739ce (diff)
downloadredot-engine-e58e18261ea7ed3978146ef8d77a900be2601be3.tar.gz
Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ce
Diffstat (limited to 'scene/gui/subviewport_container.h')
-rw-r--r--scene/gui/subviewport_container.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/subviewport_container.h b/scene/gui/subviewport_container.h
index dccbec11ab..fba129b1b7 100644
--- a/scene/gui/subviewport_container.h
+++ b/scene/gui/subviewport_container.h
@@ -40,6 +40,8 @@ class SubViewportContainer : public Container {
bool stretch = false;
int shrink = 1;
+ bool consume_drag_and_drop = false;
+
void _notify_viewports(int p_notification);
bool _is_propagated_in_gui_input(const Ref<InputEvent> &p_event);
void _send_event_to_viewports(const Ref<InputEvent> &p_event);
@@ -65,6 +67,9 @@ public:
int get_stretch_shrink() const;
void recalc_force_viewport_sizes();
+ void set_consume_drag_and_drop(bool p_enable);
+ bool is_consume_drag_and_drop_enabled();
+
virtual Size2 get_minimum_size() const override;
virtual Vector<int> get_allowed_size_flags_horizontal() const override;