Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
androidjniinput.cpp File Reference

(0a9f572e681611d10c725eea73d9a5d1f2bce046)

#include <QtGui/qtguiglobal.h>
#include "androidjniinput.h"
#include "androidjnimenu.h"
#include "androidjnimain.h"
#include "qandroidplatformintegration.h"
#include <qpa/qplatformwindow.h>
#include <qpa/qwindowsysteminterface.h>
#include <QtGui/private/qpointingdevice_p.h>
#include <QTouchEvent>
#include <QPointer>
#include <QGuiApplication>
#include <QThread>
#include <QtMath>
Include dependency graph for androidjniinput.cpp:

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 , 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
}
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 , 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")
void QtAndroidInput::updateSelection (int selStart, int selEnd, int candidatesStart, int candidatesEnd)
void QtAndroidInput::showSoftwareKeyboard (int leftleft, int toptop, int widthwidth, int heightheight, int inputHints, int enterKeyType)
void QtAndroidInput::resetSoftwareKeyboard ()
void QtAndroidInput::hideSoftwareKeyboard ()
bool QtAndroidInput::isSoftwareKeyboardVisible ()
QRect QtAndroidInput::softwareKeyboardRect ()
int QtAndroidInput::getSelectHandleWidth ()
void QtAndroidInput::updateHandles (int modemode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl)
static Qt::MouseButtons QtAndroidInput::toMouseButtons (jint j_buttons)
static Qt::KeyboardModifiers QtAndroidInput::mapAndroidModifiers (jint modifiersmodifiers)
static void QtAndroidInput::sendMouseButtonEvents (QWindow *topLevel, QPoint localPos, QPoint globalPos, jint mouseButtonState, jint metaState, QEvent::Type typetype)
static void QtAndroidInput::mouseDown (JNIEnv *, jobject, jint winId, jint xx, jint yy, jint mouseButtonState, jint metaState)
static void QtAndroidInput::mouseUp (JNIEnv *, jobject, jint winId, jint xx, jint yy, jint mouseButtonState, jint metaState)
static void QtAndroidInput::mouseMove (JNIEnv *, jobject, jint winId, jint xx, jint yy, jint mouseButtonState, jint metaState)
static void QtAndroidInput::mouseWheel (JNIEnv *, jobject, jint winId, jint xx, jint yy, jfloat hdelta, jfloat vdelta, jint metaState)
static void QtAndroidInput::longPress (JNIEnv *, jobject, jint winId, jint xx, jint yy, jint metaState)
static void QtAndroidInput::touchBegin (JNIEnv *, jobject, jint)
static void QtAndroidInput::touchAdd (JNIEnv *, jobject, jint winId, jint idid, jint action, jboolean, jint xx, jint yy, jfloat major, jfloat minor, jfloat rotation, jfloat pressure)
static QPointingDevice * QtAndroidInput::getTouchDevice ()
static void QtAndroidInput::touchEnd (JNIEnv *, jobject, jint winId, jint, jint metaState)
static void QtAndroidInput::touchCancel (JNIEnv *, jobject, jint winId, jint metaState)
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 xx, jfloat yy, jfloat pressure, jint metaState)
static QKeyCombination QtAndroidInput::mapAndroidKey (int keykey)
static QString QtAndroidInput::toString (jint unicode)
static bool QtAndroidInput::sendKeyEventSynchronously (QEvent::Type typetype, int keykey, Qt::KeyboardModifiers modifiersmodifiers, const QString &text, bool autoRepeat)
static void QtAndroidInput::keyDown (JNIEnv *, jobject, jint keykey, jint unicode, jint modifier, jboolean autoRepeat)
static void QtAndroidInput::moveActivityToBackground ()
static void QtAndroidInput::keyUp (JNIEnv *, jobject, jint keykey, jint unicode, jint modifier, jboolean autoRepeat)
static void QtAndroidInput::keyboardVisibilityChanged (JNIEnv *, jobject, jboolean visibility)
static void QtAndroidInput::keyboardGeometryChanged (JNIEnv *, jobject, jint xx, jint yy, jint ww, jint hh)
static void QtAndroidInput::handleLocationChanged (JNIEnv *, jobject, int idid, int xx, int yy)
bool QtAndroidInput::registerNatives (QJniEnvironment &env)

Variables

static bool QtAndroidInput::m_ignoreMouseEvents = false
static Qt::MouseButtons QtAndroidInput::m_lastSeenButtons = Qt::NoButton
static QRect QtAndroidInput::m_softwareKeyboardRect
static QList< QWindowSystemInterface::TouchPoint > QtAndroidInput::m_touchPoints
static QPointer< QWindow > QtAndroidInput::m_mouseGrabber
static bool QtAndroidInput::m_backKeyPressAccepted = false
static bool QtAndroidInput::m_menuKeyPressAccepted = false
static const JNINativeMethod QtAndroidInput::methods []

Function Documentation

◆ Q_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY ( lcQpaInputMethods ,
"qt.qpa.input.methods"  )