4#ifndef QWAYLANDINPUTMETHODCONTEXT_P_H
5#define QWAYLANDINPUTMETHODCONTEXT_P_H
18#include <QtGui/qpa/qplatforminputcontext.h>
19#include <QtGui/qevent.h>
20#include <QtCore/qlocale.h>
21#include <QtCore/qpointer.h>
22#include <QtCore/qlist.h>
23#include <QtCore/qhash.h>
25#include <QtWaylandClient/private/qwayland-qt-text-input-method-unstable-v1.h>
26#include <QtCore/private/qglobal_p.h>
31 class QWaylandDisplay;
57 return m_keyboardRect;
67 return m_layoutDirection;
76 struct ::wl_surface *m_surface;
79 bool m_isVisible =
false;
93 void reset()
override;
95 void update(Qt::InputMethodQueries)
override;
The QPlatformInputContext class abstracts the input method dependent data and composing state.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
void update(Qt::InputMethodQueries) override
Notification on editor updates.
Qt::LayoutDirection inputDirection() const override
bool isInputPanelVisible() const override
Returns input panel visibility status.
void reset() override
Method to be called when input method needs to be reset.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
void hideInputPanel() override
Request to hide input panel.
QRectF keyboardRect() const override
This function can be reimplemented to return virtual keyboard rectangle in currently active window co...
~QWaylandInputMethodContext() override
void showInputPanel() override
Request to show input panel.
bool isValid() const override
Returns input context validity.
void invokeAction(QInputMethod::Action, int cursorPosition) override
Called when the word currently being composed in the input item is tapped by the user.
QLocale locale() const override
void text_input_method_v1_start_input_method_event(uint32_t serial, int32_t surrounding_text_offset) override
void text_input_method_v1_key(int32_t type, int32_t key, int32_t modifiers, int32_t autoRepeat, int32_t count, int32_t nativeScanCode, int32_t nativeVirtualKey, int32_t nativeModifiers, const QString &text) override
void text_input_method_v1_input_method_event_attribute(uint32_t serial, int32_t type, int32_t start, int32_t length, const QString &value) override
QRectF keyboardRect() const
~QWaylandTextInputMethod() override
void text_input_method_v1_leave(struct ::wl_surface *surface) override
void text_input_method_v1_end_input_method_event(uint32_t serial, const QString &commitString, const QString &preeditString, int32_t replacementStart, int32_t replacementLength) override
void sendInputState(QInputMethodQueryEvent *state, Qt::InputMethodQueries queries=Qt::ImQueryInput)
Qt::LayoutDirection inputDirection() const
void text_input_method_v1_keyboard_rectangle_changed(wl_fixed_t x, wl_fixed_t y, wl_fixed_t width, wl_fixed_t height) override
void text_input_method_v1_input_direction_changed(int32_t inputDirection) override
void text_input_method_v1_locale_changed(const QString &localeName) override
void text_input_method_v1_enter(struct ::wl_surface *surface) override
void text_input_method_v1_visible_changed(int32_t visible) override
EGLImageKHR int int EGLuint64KHR * modifiers
struct wl_display * display
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLenum GLsizei length
GLenum GLenum GLsizei count