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>.
|
Classes | |
class | GenericMotionEventListener |
class | KeyEventListener |
Enumerations | |
enum | AndroidMouseButton { BUTTON_PRIMARY = 0x00000001 , BUTTON_SECONDARY = 0x00000002 , BUTTON_TERTIARY = 0x00000004 , BUTTON_BACK = 0x00000008 , BUTTON_FORWARD = 0x00000010 , BUTTON_STYLUS_PRIMARY = 0x00000020 , BUTTON_STYLUS_SECONDARY = 0x00000040 } |
Functions | |
static jboolean | dispatchGenericMotionEvent (JNIEnv *, jclass, jobject event) |
static jboolean | dispatchKeyEvent (JNIEnv *, jclass, jobject event) |
void | registerGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener) |
void | unregisterGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener) |
void | registerKeyEventListener (QtAndroidInput::KeyEventListener *listener) |
void | unregisterKeyEventListener (QtAndroidInput::KeyEventListener *listener) |
QJniObject | qtLayout () |
void | updateSelection (int selStart, int selEnd, int candidatesStart, int candidatesEnd) |
void | showSoftwareKeyboard (int left, int top, int width, int height, int inputHints, int enterKeyType) |
void | resetSoftwareKeyboard () |
void | hideSoftwareKeyboard () |
bool | isSoftwareKeyboardVisible () |
QRect | softwareKeyboardRect () |
int | getSelectHandleWidth () |
void | updateHandles (int mode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl) |
static Qt::MouseButtons | toMouseButtons (jint j_buttons) |
static void | sendMouseButtonEvents (QWindow *topLevel, QPoint localPos, QPoint globalPos, jint mouseButtonState, QEvent::Type type) |
static void | mouseDown (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState) |
static void | mouseUp (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState) |
static void | mouseMove (JNIEnv *, jobject, jint winId, jint x, jint y) |
static void | mouseWheel (JNIEnv *, jobject, jint winId, jint x, jint y, jfloat hdelta, jfloat vdelta) |
static void | longPress (JNIEnv *, jobject, jint winId, jint x, jint y) |
static void | touchBegin (JNIEnv *, jobject, jint) |
static void | touchAdd (JNIEnv *, jobject, jint, jint id, jint action, jboolean, jint x, jint y, jfloat major, jfloat minor, jfloat rotation, jfloat pressure) |
static QPointingDevice * | getTouchDevice () |
static void | touchEnd (JNIEnv *, jobject, jint winId, jint) |
static void | touchCancel (JNIEnv *, jobject, jint winId) |
static bool | isTabletEventSupported (JNIEnv *, jobject) |
static void | tabletEvent (JNIEnv *, jobject, jint winId, jint deviceId, jlong time, jint action, jint pointerType, jint buttonState, jfloat x, jfloat y, jfloat pressure) |
static QKeyCombination | mapAndroidKey (int key) |
static Qt::KeyboardModifiers | mapAndroidModifiers (jint modifiers) |
static QString | toString (jint unicode) |
static void | keyDown (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat) |
static void | keyUp (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat) |
static void | keyboardVisibilityChanged (JNIEnv *, jobject, jboolean visibility) |
static void | keyboardGeometryChanged (JNIEnv *, jobject, jint x, jint y, jint w, jint h) |
static void | handleLocationChanged (JNIEnv *, jobject, int id, int x, int y) |
bool | registerNatives (QJniEnvironment &env) |
Variables | |
static bool | m_ignoreMouseEvents = false |
static Qt::MouseButtons | m_buttons = Qt::NoButton |
static QRect | m_softwareKeyboardRect |
static QList< QWindowSystemInterface::TouchPoint > | m_touchPoints |
static QPointer< QWindow > | m_mouseGrabber |
static const JNINativeMethod | methods [] |
Enumerator | |
---|---|
BUTTON_PRIMARY | |
BUTTON_SECONDARY | |
BUTTON_TERTIARY | |
BUTTON_BACK | |
BUTTON_FORWARD | |
BUTTON_STYLUS_PRIMARY | |
BUTTON_STYLUS_SECONDARY |
Definition at line 166 of file androidjniinput.cpp.
|
static |
Definition at line 48 of file androidjniinput.cpp.
|
static |
Definition at line 66 of file androidjniinput.cpp.
int QtAndroidInput::getSelectHandleWidth | ( | ) |
Definition at line 150 of file androidjniinput.cpp.
References getSelectHandleWidth(), and QtAndroid::qtInputDelegate().
Referenced by getSelectHandleWidth(), and QAndroidInputContext::updateSelectionHandles().
|
static |
Definition at line 366 of file androidjniinput.cpp.
References QtAndroid::androidPlatformIntegration(), QInputDevice::Area, QPointingDevice::Finger, getTouchDevice(), QInputDevice::NormalizedPosition, QInputDevice::Position, QInputDevice::Pressure, QWindowSystemInterface::registerInputDevice(), QAndroidPlatformIntegration::setTouchDevice(), QAndroidPlatformIntegration::touchDevice(), and QInputDevice::TouchScreen.
Referenced by getTouchDevice(), touchCancel(), and touchEnd().
|
static |
Definition at line 951 of file androidjniinput.cpp.
References QAndroidInputContext::androidInputContext(), Qt::BlockingQueuedConnection, handleLocationChanged(), QMetaObject::invokeMethod(), Q_ARG, qCDebug, and qGuiApp.
Referenced by handleLocationChanged().
void QtAndroidInput::hideSoftwareKeyboard | ( | ) |
Definition at line 134 of file androidjniinput.cpp.
References hideSoftwareKeyboard(), qCDebug, and QtAndroid::qtInputDelegate().
Referenced by QAndroidInputContext::hideInputPanel(), hideSoftwareKeyboard(), and QAndroidInputContext::reset().
bool QtAndroidInput::isSoftwareKeyboardVisible | ( | ) |
Definition at line 140 of file androidjniinput.cpp.
References isSoftwareKeyboardVisible(), and QtAndroid::qtInputDelegate().
Referenced by QAndroidInputContext::isInputPanelVisible(), and isSoftwareKeyboardVisible().
|
static |
Definition at line 421 of file androidjniinput.cpp.
References isTabletEventSupported().
Referenced by isTabletEventSupported().
|
static |
Definition at line 938 of file androidjniinput.cpp.
References QAndroidInputContext::androidInputContext(), QPlatformInputContext::emitKeyboardRectChanged(), keyboardGeometryChanged(), m_softwareKeyboardRect, qCDebug, and qGuiApp.
Referenced by keyboardGeometryChanged().
|
static |
Definition at line 922 of file androidjniinput.cpp.
References QAndroidInputContext::androidInputContext(), QPlatformInputContext::emitInputPanelVisibleChanged(), QPlatformInputContext::emitKeyboardRectChanged(), QMetaObject::invokeMethod(), keyboardVisibilityChanged(), m_softwareKeyboardRect, qCDebug, qGuiApp, and Qt::QueuedConnection.
Referenced by keyboardVisibilityChanged().
|
static |
Definition at line 902 of file androidjniinput.cpp.
References QWindowSystemInterface::handleKeyEvent(), keyDown(), QEvent::KeyPress, mapAndroidKey(), mapAndroidModifiers(), and toString().
Referenced by keyDown().
|
static |
Definition at line 912 of file androidjniinput.cpp.
References QWindowSystemInterface::handleKeyEvent(), QEvent::KeyRelease, keyUp(), mapAndroidKey(), mapAndroidModifiers(), and toString().
Referenced by keyUp().
|
static |
Definition at line 295 of file androidjniinput.cpp.
References QAndroidInputContext::androidInputContext(), QWindowSystemInterface::handleMouseEvent(), QMetaObject::invokeMethod(), longPress(), m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, Qt::NoButton, Q_ARG, qEnvironmentVariableIntValue(), qGuiApp, Qt::RightButton, window(), and QtAndroid::windowFromId().
Referenced by longPress().
|
static |
Definition at line 477 of file androidjniinput.cpp.
References QKeyCombination::fromCombined(), Qt::Key_0, Qt::Key_A, Qt::Key_AddFavorite, Qt::Key_Alt, Qt::Key_Apostrophe, Qt::Key_Asterisk, Qt::Key_At, Qt::Key_AudioCycleTrack, Qt::Key_AudioForward, Qt::Key_AudioRewind, Qt::Key_Back, Qt::Key_Backslash, Qt::Key_Backspace, Qt::Key_Blue, Qt::Key_BracketLeft, Qt::Key_BracketRight, Qt::Key_Calculator, Qt::Key_Calendar, Qt::Key_Call, Qt::Key_Camera, Qt::Key_CameraFocus, Qt::Key_CapsLock, Qt::Key_ChannelDown, Qt::Key_ChannelUp, Qt::Key_Clear, Qt::Key_Comma, Qt::Key_Control, Qt::Key_Delete, Qt::Key_Down, Qt::Key_Eject, Qt::Key_End, Qt::Key_Enter, Qt::Key_Equal, Qt::Key_Escape, Qt::Key_Explorer, Qt::Key_F1, Qt::Key_Forward, Qt::Key_Green, Qt::Key_Guide, Qt::Key_Hangup, Qt::Key_Home, Qt::Key_Info, Qt::Key_Insert, Qt::Key_KeyboardBrightnessDown, Qt::Key_KeyboardBrightnessUp, Qt::Key_LaunchMail, Qt::Key_Left, Qt::Key_MediaNext, Qt::Key_MediaPause, Qt::Key_MediaPlay, Qt::Key_MediaPrevious, Qt::Key_MediaRecord, Qt::Key_MediaStop, Qt::Key_MediaTogglePlayPause, Qt::Key_Menu, Qt::Key_Meta, Qt::Key_MicMute, Qt::Key_Minus, Qt::Key_Music, Qt::Key_NumberSign, Qt::Key_NumLock, Qt::Key_PageDown, Qt::Key_PageUp, Qt::Key_ParenLeft, Qt::Key_ParenRight, Qt::Key_Pause, Qt::Key_Period, Qt::Key_Plus, Qt::Key_PowerOff, Qt::Key_Print, Qt::Key_QuoteLeft, Qt::Key_Red, Qt::Key_Return, Qt::Key_Right, Qt::Key_ScrollLock, Qt::Key_Search, Qt::Key_Semicolon, Qt::Key_Settings, Qt::Key_Shift, Qt::Key_Slash, Qt::Key_Space, Qt::Key_Subtitle, Qt::Key_Tab, Qt::Key_unknown, Qt::Key_Up, Qt::Key_VolumeDown, Qt::Key_VolumeMute, Qt::Key_VolumeUp, Qt::Key_Yellow, Qt::Key_ZoomIn, Qt::Key_ZoomOut, Qt::KeypadModifier, mapAndroidKey(), and qWarning.
Referenced by keyDown(), keyUp(), and mapAndroidKey().
|
static |
Definition at line 877 of file androidjniinput.cpp.
References Qt::AltModifier, Qt::ControlModifier, mapAndroidModifiers(), Qt::MetaModifier, and Qt::ShiftModifier.
Referenced by keyDown(), keyUp(), and mapAndroidModifiers().
|
static |
Definition at line 230 of file androidjniinput.cpp.
References m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonPress, mouseDown(), sendMouseButtonEvents(), window(), and QtAndroid::windowFromId().
Referenced by mouseDown().
|
static |
Definition at line 258 of file androidjniinput.cpp.
References QWindowSystemInterface::handleMouseEvent(), Qt::LeftButton, m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseMove, mouseMove(), Qt::NoButton, window(), and QtAndroid::windowFromId().
Referenced by mouseMove().
|
static |
Definition at line 243 of file androidjniinput.cpp.
References m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonRelease, mouseUp(), sendMouseButtonEvents(), window(), and QtAndroid::windowFromId().
Referenced by mouseUp().
|
static |
Definition at line 275 of file androidjniinput.cpp.
References QWindowSystemInterface::handleWheelEvent(), m_ignoreMouseEvents, m_mouseGrabber, mouseWheel(), window(), and QtAndroid::windowFromId().
Referenced by mouseWheel().
QJniObject QtAndroidInput::qtLayout | ( | ) |
Definition at line 99 of file androidjniinput.cpp.
References QtAndroid::qtActivityDelegate(), and qtLayout().
Referenced by qtLayout(), showSoftwareKeyboard(), and updateHandles().
void QtAndroidInput::registerGenericMotionEventListener | ( | QtAndroidInput::GenericMotionEventListener * | listener | ) |
Definition at line 75 of file androidjniinput.cpp.
References mutex, and registerGenericMotionEventListener().
Referenced by registerGenericMotionEventListener().
void QtAndroidInput::registerKeyEventListener | ( | QtAndroidInput::KeyEventListener * | listener | ) |
Definition at line 87 of file androidjniinput.cpp.
References mutex, and registerKeyEventListener().
Referenced by registerKeyEventListener().
bool QtAndroidInput::registerNatives | ( | QJniEnvironment & | env | ) |
Definition at line 983 of file androidjniinput.cpp.
References methods.
Referenced by JNI_OnLoad().
void QtAndroidInput::resetSoftwareKeyboard | ( | ) |
Definition at line 128 of file androidjniinput.cpp.
References qCDebug, QtAndroid::qtInputDelegate(), and resetSoftwareKeyboard().
Referenced by QAndroidInputContext::reset(), and resetSoftwareKeyboard().
|
static |
Definition at line 210 of file androidjniinput.cpp.
References button, QWindowSystemInterface::handleMouseEvent(), Qt::NoButton, sendMouseButtonEvents(), and toMouseButtons().
Referenced by mouseDown(), mouseUp(), and sendMouseButtonEvents().
void QtAndroidInput::showSoftwareKeyboard | ( | int | left, |
int | top, | ||
int | width, | ||
int | height, | ||
int | inputHints, | ||
int | enterKeyType ) |
Definition at line 114 of file androidjniinput.cpp.
References QtAndroidPrivate::activity(), qCDebug, QtAndroid::qtInputDelegate(), qtLayout(), and showSoftwareKeyboard().
Referenced by QAndroidInputContext::showInputPanel(), and showSoftwareKeyboard().
QRect QtAndroidInput::softwareKeyboardRect | ( | ) |
Definition at line 145 of file androidjniinput.cpp.
References m_softwareKeyboardRect, and softwareKeyboardRect().
Referenced by QAndroidInputContext::keyboardRect(), and softwareKeyboardRect().
|
static |
Definition at line 430 of file androidjniinput.cpp.
References QWindowSystemInterface::handleTabletEvent(), Qt::LeftButton, Qt::NoButton, Qt::NoModifier, pointerType(), qCDebug, QInputDevice::Stylus, tabletEvent(), time, window(), and QtAndroid::windowFromId().
Referenced by tabletEvent().
|
static |
Definition at line 177 of file androidjniinput.cpp.
References Qt::BackButton, BUTTON_BACK, BUTTON_FORWARD, BUTTON_PRIMARY, BUTTON_SECONDARY, BUTTON_STYLUS_PRIMARY, BUTTON_STYLUS_SECONDARY, BUTTON_TERTIARY, Qt::ForwardButton, Qt::LeftButton, Qt::MiddleButton, Qt::NoButton, Q_UNLIKELY, qWarning, and Qt::RightButton.
Referenced by sendMouseButtonEvents().
|
inlinestatic |
Definition at line 897 of file androidjniinput.cpp.
|
static |
Definition at line 327 of file androidjniinput.cpp.
References QAndroidInputContext::androidInputContext(), QWindowSystemInterface::TouchPoint::area, QtAndroid::availableHeightPixels(), QtAndroid::availableWidthPixels(), QWindowSystemInterface::TouchPoint::id, QMetaObject::invokeMethod(), m_touchPoints, QWindowSystemInterface::TouchPoint::normalPosition, QEventPoint::Pressed, QWindowSystemInterface::TouchPoint::pressure, Q_ARG, qGuiApp, qRadiansToDegrees(), QEventPoint::Released, QWindowSystemInterface::TouchPoint::rotation, QWindowSystemInterface::TouchPoint::state, state, QEventPoint::Stationary, touchAdd(), and QEventPoint::Updated.
Referenced by touchAdd().
|
static |
Definition at line 322 of file androidjniinput.cpp.
References m_touchPoints, and touchBegin().
Referenced by touchBegin().
|
static |
Definition at line 405 of file androidjniinput.cpp.
References getTouchDevice(), QWindowSystemInterface::handleTouchCancelEvent(), lock, m_touchPoints, QtAndroid::platformInterfaceMutex(), touchCancel(), window(), and QtAndroid::windowFromId().
Referenced by touchCancel().
|
static |
Definition at line 389 of file androidjniinput.cpp.
References getTouchDevice(), QWindowSystemInterface::handleTouchEvent(), lock, m_touchPoints, QtAndroid::platformInterfaceMutex(), touchEnd(), window(), and QtAndroid::windowFromId().
Referenced by touchEnd().
void QtAndroidInput::unregisterGenericMotionEventListener | ( | QtAndroidInput::GenericMotionEventListener * | listener | ) |
Definition at line 81 of file androidjniinput.cpp.
References mutex, and unregisterGenericMotionEventListener().
Referenced by unregisterGenericMotionEventListener().
void QtAndroidInput::unregisterKeyEventListener | ( | QtAndroidInput::KeyEventListener * | listener | ) |
Definition at line 93 of file androidjniinput.cpp.
References mutex, and unregisterKeyEventListener().
Referenced by unregisterKeyEventListener().
void QtAndroidInput::updateHandles | ( | int | mode, |
QPoint | editMenuPos, | ||
uint32_t | editButtons, | ||
QPoint | cursor, | ||
QPoint | anchor, | ||
bool | rtl ) |
Definition at line 155 of file androidjniinput.cpp.
References QtAndroidPrivate::activity(), cursor, QtAndroid::qtInputDelegate(), qtLayout(), updateHandles(), QPoint::x(), and QPoint::y().
Referenced by updateHandles(), and QAndroidInputContext::updateSelectionHandles().
void QtAndroidInput::updateSelection | ( | int | selStart, |
int | selEnd, | ||
int | candidatesStart, | ||
int | candidatesEnd ) |
Definition at line 104 of file androidjniinput.cpp.
References qCDebug, QtAndroid::qtInputDelegate(), and updateSelection().
Referenced by QAndroidInputContext::updateCursorPosition(), and updateSelection().
|
static |
Definition at line 31 of file androidjniinput.cpp.
|
static |
Definition at line 30 of file androidjniinput.cpp.
Referenced by longPress(), mouseDown(), mouseMove(), mouseUp(), and mouseWheel().
Definition at line 37 of file androidjniinput.cpp.
Referenced by longPress(), mouseDown(), mouseMove(), mouseUp(), and mouseWheel().
|
static |
Definition at line 33 of file androidjniinput.cpp.
Referenced by keyboardGeometryChanged(), keyboardVisibilityChanged(), and softwareKeyboardRect().
|
static |
Definition at line 35 of file androidjniinput.cpp.
Referenced by touchAdd(), touchBegin(), touchCancel(), and touchEnd().
|
static |
Definition at line 962 of file androidjniinput.cpp.