summaryrefslogtreecommitdiffstats
path: root/platform/macos/native_menu_macos.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/native_menu_macos.h')
-rw-r--r--platform/macos/native_menu_macos.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/macos/native_menu_macos.h b/platform/macos/native_menu_macos.h
index b5dbb8b9b0..42cf6740d9 100644
--- a/platform/macos/native_menu_macos.h
+++ b/platform/macos/native_menu_macos.h
@@ -73,8 +73,11 @@ class NativeMenuMacOS : public NativeMenu {
public:
void _register_system_menus(NSMenu *p_main_menu, NSMenu *p_application_menu, NSMenu *p_window_menu, NSMenu *p_help_menu, NSMenu *p_dock_menu);
NSMenu *_get_dock_menu();
+
+ void _menu_need_update(NSMenu *p_menu);
void _menu_open(NSMenu *p_menu);
void _menu_close(NSMenu *p_menu);
+ void _menu_close_cb(const RID &p_rid);
virtual bool has_feature(Feature p_feature) const override;
@@ -98,6 +101,8 @@ public:
virtual void set_minimum_width(const RID &p_rid, float p_width) override;
virtual float get_minimum_width(const RID &p_rid) const override;
+ virtual bool is_opened(const RID &p_rid) const override;
+
virtual int add_submenu_item(const RID &p_rid, const String &p_label, const RID &p_submenu_rid, const Variant &p_tag = Variant(), int p_index = -1) override;
virtual int add_item(const RID &p_rid, const String &p_label, const Callable &p_callback = Callable(), const Callable &p_key_callback = Callable(), const Variant &p_tag = Variant(), Key p_accel = Key::NONE, int p_index = -1) override;
virtual int add_check_item(const RID &p_rid, const String &p_label, const Callable &p_callback = Callable(), const Callable &p_key_callback = Callable(), const Variant &p_tag = Variant(), Key p_accel = Key::NONE, int p_index = -1) override;