diff options
| author | Thomas Herzog <karroffel@users.noreply.github.com> | 2017-07-11 00:11:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-11 00:11:03 +0200 |
| commit | 34edac54e3fe1e5bd34f662143f039920a55ff3b (patch) | |
| tree | 7a33cd5d02f99a92eac79c1a9e77952ffd4ccb7b /scene/gui/tabs.h | |
| parent | e5334fdd29b75099de2fb10e1f57e57df4b95a51 (diff) | |
| parent | 29c2aabdafca48cbc6aee6b2d4e1f09c8164abc2 (diff) | |
| download | redot-engine-34edac54e3fe1e5bd34f662143f039920a55ff3b.tar.gz | |
Merge pull request #9510 from kubecz3k/tab-reposition
ability to reposition scene tabs with drag & drop
Diffstat (limited to 'scene/gui/tabs.h')
| -rw-r--r-- | scene/gui/tabs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scene/gui/tabs.h b/scene/gui/tabs.h index 65d409c410..613c604b12 100644 --- a/scene/gui/tabs.h +++ b/scene/gui/tabs.h @@ -96,6 +96,11 @@ protected: void _notification(int p_what); static void _bind_methods(); + Variant get_drag_data(const Point2 &p_point); + bool can_drop_data(const Point2 &p_point, const Variant &p_data) const; + void drop_data(const Point2 &p_point, const Variant &p_data); + int get_tab_idx_at_point(const Point2 &p_point) const; + public: void add_tab(const String &p_str = "", const Ref<Texture> &p_icon = Ref<Texture>()); @@ -128,7 +133,7 @@ public: void ensure_tab_visible(int p_idx); void set_min_width(int p_width); - Rect2 get_tab_rect(int p_tab); + Rect2 get_tab_rect(int p_tab) const; Size2 get_minimum_size() const; Tabs(); |
