Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
androidjniinput.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 ANDROIDJNIINPUT_H
5#define ANDROIDJNIINPUT_H
6
7#include <jni.h>
8#include <QtCore/qglobal.h>
9#include <QtCore/QLoggingCategory>
10#include <QtCore/QRect>
11
13
14Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods);
15
16namespace QtAndroidInput
17{
18 // Software keyboard support
19 void showSoftwareKeyboard(int top, int left, int width, int height, int inputHints, int enterKeyType);
24 void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd);
25 // Software keyboard support
26
27 // cursor/selection handles
28 void updateHandles(int handleCount, QPoint editMenuPos = QPoint(), uint32_t editButtons = 0,
29 QPoint cursor = QPoint(), QPoint anchor = QPoint(), bool rtl = false);
31
32 bool registerNatives(JNIEnv *env);
33}
34
36
37#endif // ANDROIDJNIINPUT_H
\inmodule QtCore\reentrant
Definition qpoint.h:23
\inmodule QtCore\reentrant
Definition qrect.h:30
QCursor cursor
static bool registerNatives()
Combined button and popup list for selecting options.
void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd)
void showSoftwareKeyboard(int left, int top, int width, int height, int inputHints, int enterKeyType)
bool isSoftwareKeyboardVisible()
void updateHandles(int mode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl)
QRect softwareKeyboardRect()
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
GLint GLsizei width
GLint left