5#ifndef QANDROIDPLATFORMSCREEN_H
6#define QANDROIDPLATFORMSCREEN_H
11#include <QWaitCondition>
12#include <QtCore/QJniObject>
13#include <qpa/qplatformscreen.h>
14#include <QtGui/qscreen_platform.h>
18class QAndroidPlatformWindow;
41 QWindow *topLevelAt(
const QPoint & p)
const override;
43 void addWindow(QAndroidPlatformWindow *window);
44 void removeWindow(QAndroidPlatformWindow *window);
45 void raise(QAndroidPlatformWindow *window);
46 void lower(QAndroidPlatformWindow *window);
56 void setAvailableGeometry(
const QRect &rect);
57 void setSize(
const QSize &size);
81 void applicationStateChanged(Qt::ApplicationState);
jboolean beginBatchEdit()
jboolean setSelection(jint start, jint end)
void touchDown(int x, int y)
void longPress(int x, int y)
jboolean finishComposingText()
bool isValid() const override
Returns input context validity.
jint getCursorCapsMode(jint reqModes)
QString getSelectedText(jint flags)
bool isAnimating() const override
This function can be reimplemented to return true whenever input method is animating shown or hidden.
void hideSelectionHandles()
QString getTextAfterCursor(jint length, jint flags)
void reportFullscreenMode(jboolean enabled)
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
void reset() override
Method to be called when input method needs to be reset.
void hideInputPanel() override
Request to hide input panel.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
jboolean setComposingRegion(jint start, jint end)
static QAndroidInputContext * androidInputContext()
void updateSelectionHandles()
void update(Qt::InputMethodQueries queries) override
Notification on editor updates.
QString getTextBeforeCursor(jint length, jint flags)
void sendShortcut(const QKeySequence &)
void invokeAction(QInputMethod::Action action, int cursorPosition) override
Called when the word currently being composed in the input item is tapped by the user.
void updateCursorPosition()
jboolean deleteSurroundingText(jint leftLength, jint rightLength)
void handleLocationChanged(int handleId, int x, int y)
void showInputPanel() override
Request to show input panel.
const ExtractedText & getExtractedText(jint hintMaxChars, jint hintMaxLines, jint flags)
bool isInputPanelVisible() const override
Returns input panel visibility status.
jboolean fullscreenMode()