5#ifndef QWAYLANDINPUTCONTEXT_H
6#define QWAYLANDINPUTCONTEXT_H
19#include <qpa/qplatforminputcontext.h>
25#if QT_CONFIG(xkbcommon)
26#include <xkbcommon/xkbcommon-compose.h>
30struct wl_callback_listener;
47 void reset()
override;
49 void update(Qt::InputMethodQueries)
override;
63#if QT_CONFIG(xkbcommon)
74 QPointer<QWindow> mCurrentWindow;
76#if QT_CONFIG(xkbcommon)
79 bool m_initialized =
false;
80 QObject *m_focusObject =
nullptr;
81 xkb_compose_table *m_composeTable =
nullptr;
82 xkb_compose_state *m_composeState =
nullptr;
83 struct xkb_context *m_XkbContext =
nullptr;
The QPlatformInputContext class abstracts the input method dependent data and composing state.
virtual bool filterEvent(const QEvent *event)
This function can be reimplemented to filter input events.
\inmodule QtCore\reentrant
QWaylandInputContext(QWaylandDisplay *display)
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...
void reset() override
Method to be called when input method needs to be reset.
~QWaylandInputContext() override
void showInputPanel() override
Request to show input panel.
Qt::LayoutDirection inputDirection() const override
void invokeAction(QInputMethod::Action, int cursorPosition) override
Called when the word currently being composed in the input item is tapped by the user.
void setFocusObject(QObject *object) override
This virtual method gets called to notify updated focus to object.
bool isValid() const override
Returns input context validity.
bool isInputPanelVisible() const override
Returns input panel visibility status.
void update(Qt::InputMethodQueries) override
Notification on editor updates.
QLocale locale() const override
struct wl_display * display
Combined button and popup list for selecting options.
static void ensureInitialized()