Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcocoansmenu.h
Go to the documentation of this file.
1// Copyright (C) 2018 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QCOCOANSMENU_H
5#define QCOCOANSMENU_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/private/qcore_mac_p.h>
19
22
24+ (instancetype)sharedMenuDelegate;
25- (NSMenuItem *)findItemInMenu:(NSMenu *)menu forKey:(NSString *)key modifiers:(NSUInteger)modifiers;
26)
27
29@property (readonly, nonatomic) QCocoaMenu *platformMenu;
31- (instancetype)initWithoutPlatformMenu:(NSString *)menu;
32)
33
35@property (nonatomic) QCocoaMenuItem *platformMenuItem;
36+ (instancetype)separatorItemWithPlatformMenuItem:(QCocoaMenuItem *)menuItem;
37- (instancetype)initWithPlatformMenuItem:(QCocoaMenuItem *)menuItem;
38- (instancetype)init;
39)
40
41#endif // QCOCOANSMENU_H
EGLImageKHR int int EGLuint64KHR * modifiers
instancetype initWithoutPlatformMenu
instancetype initWithPlatformMenu
QT_FORWARD_DECLARE_CLASS(QCocoaMenu)
NSMenu QCocoaMenu * platformMenu
unsigned long NSUInteger
#define QT_DECLARE_NAMESPACED_OBJC_INTERFACE(classname, definition)
Definition qcore_mac_p.h:70
GLuint64 key
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QMenu menu
[5]