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
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
16class QJniEnvironment;
17
18namespace QtAndroidInput
19{
20 // Software keyboard support
21 void showSoftwareKeyboard(int top, int left, int width, int height, int inputHints, int enterKeyType);
26 void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd);
27 // Software keyboard support
28
29 // cursor/selection handles
30 void updateHandles(int handleCount, QPoint editMenuPos = QPoint(), uint32_t editButtons = 0,
31 QPoint cursor = QPoint(), QPoint anchor = QPoint(), bool rtl = false);
33
35 {
36 public:
38 virtual bool handleGenericMotionEvent(jobject event) = 0;
39 };
40
42 {
43 public:
44 virtual ~KeyEventListener();
45 virtual bool handleKeyEvent(jobject event) = 0;
46 };
47
50
53
55}
56
58
59#endif // ANDROIDJNIINPUT_H
\inmodule QtCore
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
virtual bool handleGenericMotionEvent(jobject event)=0
virtual bool handleKeyEvent(jobject event)=0
QCursor cursor
static bool registerNatives()
Combined button and popup list for selecting options.
void unregisterGenericMotionEventListener(QtAndroidInput::GenericMotionEventListener *listener)
void updateSelection(int selStart, int selEnd, int candidatesStart, int candidatesEnd)
void registerKeyEventListener(QtAndroidInput::KeyEventListener *listener)
void showSoftwareKeyboard(int left, int top, int width, int height, int inputHints, int enterKeyType)
void unregisterKeyEventListener(QtAndroidInput::KeyEventListener *listener)
bool isSoftwareKeyboardVisible()
void updateHandles(int mode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl)
void registerGenericMotionEventListener(QtAndroidInput::GenericMotionEventListener *listener)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble GLdouble top
GLint GLsizei width
GLint left
struct _cl_event * event