blob: 1645ce750b5e5f07c41e3950e19ed1f1921aa04c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef ANDROIDJNIMENU_H
#define ANDROIDJNIMENU_H
#include <jni.h>
#include <qglobal.h>
QT_BEGIN_NAMESPACE
class QAndroidPlatformMenuBar;
class QAndroidPlatformMenu;
class QAndroidPlatformMenuItem;
class QWindow;
class QRect;
class QPoint;
namespace QtAndroidMenu
{
// Menu support
void openOptionsMenu();
void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect, JNIEnv *env);
void hideContextMenu(QAndroidPlatformMenu *menu);
void syncMenu(QAndroidPlatformMenu *menu);
void androidPlatformMenuDestroyed(QAndroidPlatformMenu *menu);
void setMenuBar(QAndroidPlatformMenuBar *menuBar, QWindow *window);
void setActiveTopLevelWindow(QWindow *window);
void addMenuBar(QAndroidPlatformMenuBar *menuBar);
void removeMenuBar(QAndroidPlatformMenuBar *menuBar);
// Menu support
bool registerNatives(JNIEnv *env);
}
QT_END_NAMESPACE
#endif // ANDROIDJNIMENU_H
|