diff options
Diffstat (limited to 'scene/gui/popup.h')
-rw-r--r-- | scene/gui/popup.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/scene/gui/popup.h b/scene/gui/popup.h index 5678043b23..b53c8be50f 100644 --- a/scene/gui/popup.h +++ b/scene/gui/popup.h @@ -42,15 +42,12 @@ class Popup : public Window { LocalVector<Window *> visible_parents; bool popped_up = false; - bool close_on_parent_focus = true; void _input_from_window(const Ref<InputEvent> &p_event); void _initialize_visible_parents(); void _deinitialize_visible_parents(); - void _parent_focused(); - protected: void _close_pressed(); virtual Rect2i _popup_adjust_rect() const override; @@ -58,12 +55,11 @@ protected: void _notification(int p_what); static void _bind_methods(); -public: - void set_as_minsize(); + virtual void _parent_focused(); - void set_close_on_parent_focus(bool p_close); - bool get_close_on_parent_focus(); + virtual void _post_popup() override; +public: Popup(); ~Popup(); }; @@ -71,7 +67,7 @@ public: class PopupPanel : public Popup { GDCLASS(PopupPanel, Popup); - Panel *panel; + Panel *panel = nullptr; protected: void _update_child_rects(); |