aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/MenuPrivate.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-03 23:09:43 +0800
committercrupest <crupest@outlook.com>2022-02-03 23:09:43 +0800
commit3cff638896ed1bacd9953d5bf29542556e7abaf2 (patch)
tree32d5a971f749ac5fdfe353007c4ee4d8baf8ae1a /src/osx/gui/MenuPrivate.h
parent168c73731cefabdec877e0c9c2cdf15e1b06a9bc (diff)
downloadcru-3cff638896ed1bacd9953d5bf29542556e7abaf2.tar.gz
cru-3cff638896ed1bacd9953d5bf29542556e7abaf2.tar.bz2
cru-3cff638896ed1bacd9953d5bf29542556e7abaf2.zip
...
Diffstat (limited to 'src/osx/gui/MenuPrivate.h')
-rw-r--r--src/osx/gui/MenuPrivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osx/gui/MenuPrivate.h b/src/osx/gui/MenuPrivate.h
index 433f246d..02b34422 100644
--- a/src/osx/gui/MenuPrivate.h
+++ b/src/osx/gui/MenuPrivate.h
@@ -6,7 +6,7 @@
@interface CruOsxMenuItemClickHandler : NSObject
- init:(cru::platform::gui::osx::details::OsxMenuItemPrivate*)p;
-- (void)handleClick:(id)sender;
+- (void)handleClick;
@end
namespace cru::platform::gui::osx {
@@ -51,10 +51,12 @@ class OsxMenuPrivate {
~OsxMenuPrivate();
public:
+ void SetParentItem(OsxMenuItem* item) { parent_item_ = item; }
void AttachToNative(NSMenu* native_menu);
private:
OsxMenu* d_;
+ OsxMenuItem* parent_item_ = nullptr;
NSMenu* menu_ = nullptr;
std::vector<OsxMenuItem*> items_;
};