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>.
|
#include <QtGui/qtguiglobal.h>
#include "androidjniinput.h"
#include "androidjnimain.h"
#include "qandroidplatformintegration.h"
#include <qpa/qplatformwindow.h>
#include <qpa/qwindowsysteminterface.h>
#include <QTouchEvent>
#include <QPointer>
#include <QGuiApplication>
#include <QtMath>
Go to the source code of this file.
Namespaces | |
namespace | QtAndroidInput |
Enumerations | |
enum | QtAndroidInput::AndroidMouseButton { QtAndroidInput::BUTTON_PRIMARY = 0x00000001 , QtAndroidInput::BUTTON_SECONDARY = 0x00000002 , QtAndroidInput::BUTTON_TERTIARY = 0x00000004 , QtAndroidInput::BUTTON_BACK = 0x00000008 , QtAndroidInput::BUTTON_FORWARD = 0x00000010 , QtAndroidInput::BUTTON_STYLUS_PRIMARY = 0x00000020 , QtAndroidInput::BUTTON_STYLUS_SECONDARY = 0x00000040 } |
Functions | |
QT_BEGIN_NAMESPACE | Q_LOGGING_CATEGORY (lcQpaInputMethods, "qt.qpa.input.methods") |
static jboolean | QtAndroidInput::dispatchGenericMotionEvent (JNIEnv *, jclass, jobject event) |
static jboolean | QtAndroidInput::dispatchKeyEvent (JNIEnv *, jclass, jobject event) |
void | QtAndroidInput::registerGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener) |
void | QtAndroidInput::unregisterGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener) |
void | QtAndroidInput::registerKeyEventListener (QtAndroidInput::KeyEventListener *listener) |
void | QtAndroidInput::unregisterKeyEventListener (QtAndroidInput::KeyEventListener *listener) |
QJniObject | QtAndroidInput::qtLayout () |
void | QtAndroidInput::updateSelection (int selStart, int selEnd, int candidatesStart, int candidatesEnd) |
void | QtAndroidInput::showSoftwareKeyboard (int left, int top, int width, int height, int inputHints, int enterKeyType) |
void | QtAndroidInput::resetSoftwareKeyboard () |
void | QtAndroidInput::hideSoftwareKeyboard () |
bool | QtAndroidInput::isSoftwareKeyboardVisible () |
QRect | QtAndroidInput::softwareKeyboardRect () |
int | QtAndroidInput::getSelectHandleWidth () |
void | QtAndroidInput::updateHandles (int mode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl) |
static Qt::MouseButtons | QtAndroidInput::toMouseButtons (jint j_buttons) |
static void | QtAndroidInput::sendMouseButtonEvents (QWindow *topLevel, QPoint localPos, QPoint globalPos, jint mouseButtonState, QEvent::Type type) |
static void | QtAndroidInput::mouseDown (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState) |
static void | QtAndroidInput::mouseUp (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState) |
static void | QtAndroidInput::mouseMove (JNIEnv *, jobject, jint winId, jint x, jint y) |
static void | QtAndroidInput::mouseWheel (JNIEnv *, jobject, jint winId, jint x, jint y, jfloat hdelta, jfloat vdelta) |
static void | QtAndroidInput::longPress (JNIEnv *, jobject, jint winId, jint x, jint y) |
static void | QtAndroidInput::touchBegin (JNIEnv *, jobject, jint) |
static void | QtAndroidInput::touchAdd (JNIEnv *, jobject, jint, jint id, jint action, jboolean, jint x, jint y, jfloat major, jfloat minor, jfloat rotation, jfloat pressure) |
static QPointingDevice * | QtAndroidInput::getTouchDevice () |
static void | QtAndroidInput::touchEnd (JNIEnv *, jobject, jint winId, jint) |
static void | QtAndroidInput::touchCancel (JNIEnv *, jobject, jint winId) |
static bool | QtAndroidInput::isTabletEventSupported (JNIEnv *, jobject) |
static void | QtAndroidInput::tabletEvent (JNIEnv *, jobject, jint winId, jint deviceId, jlong time, jint action, jint pointerType, jint buttonState, jfloat x, jfloat y, jfloat pressure) |
static QKeyCombination | QtAndroidInput::mapAndroidKey (int key) |
static Qt::KeyboardModifiers | QtAndroidInput::mapAndroidModifiers (jint modifiers) |
static QString | QtAndroidInput::toString (jint unicode) |
static void | QtAndroidInput::keyDown (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat) |
static void | QtAndroidInput::keyUp (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat) |
static void | QtAndroidInput::keyboardVisibilityChanged (JNIEnv *, jobject, jboolean visibility) |
static void | QtAndroidInput::keyboardGeometryChanged (JNIEnv *, jobject, jint x, jint y, jint w, jint h) |
static void | QtAndroidInput::handleLocationChanged (JNIEnv *, jobject, int id, int x, int y) |
bool | QtAndroidInput::registerNatives (QJniEnvironment &env) |
Variables | |
static bool | QtAndroidInput::m_ignoreMouseEvents = false |
static Qt::MouseButtons | QtAndroidInput::m_buttons = Qt::NoButton |
static QRect | QtAndroidInput::m_softwareKeyboardRect |
static QList< QWindowSystemInterface::TouchPoint > | QtAndroidInput::m_touchPoints |
static QPointer< QWindow > | QtAndroidInput::m_mouseGrabber |
static const JNINativeMethod | QtAndroidInput::methods [] |
QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY | ( | lcQpaInputMethods | , |
"qt.qpa.input.methods" | ) |
QList<QtAndroidInput::KeyEventListener *> listeners |
Definition at line 43 of file androidjniinput.cpp.
Referenced by QtAndroidInput::dispatchGenericMotionEvent(), QtAndroidInput::dispatchKeyEvent(), QtAndroidPrivate::handleActivityResult(), QtAndroidPrivate::handleNewIntent(), QtAndroidPrivate::handlePause(), QtAndroidPrivate::handleResume(), QQuick3DObjectPrivate::itemChange(), QQuickItemPrivate::notifyChangeListeners(), and QQuick3DObjectPrivate::siblingOrderChanged().
QMutex mutex |
Definition at line 42 of file androidjniinput.cpp.
Referenced by QtAndroidInput::dispatchGenericMotionEvent(), QtAndroidInput::dispatchKeyEvent(), QtAndroidInput::registerGenericMotionEventListener(), QtAndroidInput::registerKeyEventListener(), QtAndroidInput::unregisterGenericMotionEventListener(), and QtAndroidInput::unregisterKeyEventListener().