Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
androidjnimenu.h
Go to the documentation of this file.
1// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
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 ANDROIDJNIMENU_H
5#define ANDROIDJNIMENU_H
6
7#include <jni.h>
8#include <qglobal.h>
9
11
15class QWindow;
16class QRect;
17class QPoint;
18
19namespace QtAndroidMenu
20{
21 // Menu support
22 void openOptionsMenu();
23 void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect, JNIEnv *env);
27
32
33 // Menu support
34 bool registerNatives(JNIEnv *env);
35}
36
38
39#endif // ANDROIDJNIMENU_H
\inmodule QtCore\reentrant
Definition qpoint.h:23
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtGui
Definition qwindow.h:63
static bool registerNatives()
Combined button and popup list for selecting options.
void hideContextMenu(QAndroidPlatformMenu *menu)
void setActiveTopLevelWindow(QWindow *window)
void removeMenuBar(QAndroidPlatformMenuBar *menuBar)
void syncMenu(QAndroidPlatformMenu *)
void androidPlatformMenuDestroyed(QAndroidPlatformMenu *menu)
void addMenuBar(QAndroidPlatformMenuBar *menuBar)
void showContextMenu(QAndroidPlatformMenu *menu, const QRect &anchorRect, JNIEnv *env)
void setMenuBar(QAndroidPlatformMenuBar *menuBar, QWindow *window)
aWidget window() -> setWindowTitle("New Window Title")
[2]
QMenu menu
[5]
QMenuBar * menuBar
[0]