4#ifndef QWAYLANDTEXTINPUTV3_P_H
5#define QWAYLANDTEXTINPUTV3_P_H
19#include <QtWaylandClient/private/qwayland-text-input-unstable-v3.h>
20#include <QLoggingCategory>
23struct wl_callback_listener;
39 void reset()
override;
41 void updateState(Qt::InputMethodQueries queries, uint32_t flags)
override;
63 ::wl_surface *m_surface =
nullptr;
75 friend bool operator==(
const PreeditInfo& lhs,
const PreeditInfo& rhs) {
76 return (lhs.text == rhs.text)
77 && (lhs.cursorBegin == rhs.cursorBegin)
78 && (lhs.cursorEnd == rhs.cursorEnd);
82 PreeditInfo m_pendingPreeditString;
83 PreeditInfo m_currentPreeditString;
84 QString m_pendingCommitString;
85 uint m_pendingDeleteBeforeText = 0;
86 uint m_pendingDeleteAfterText = 0;
88 QString m_surroundingText;
92 uint32_t m_contentHint = 0;
93 uint32_t m_contentPurpose = 0;
96 uint m_currentSerial = 0;
98 bool m_condReselection =
false;
void readAndDispatchEvents()
virtual void enableSurface(::wl_surface *surface)=0
virtual bool isInputPanelVisible() const =0
virtual QRectF keyboardRect() const =0
virtual void hideInputPanel()
virtual void setCursorInsidePreedit(int cursor)=0
virtual void showInputPanel()
virtual QLocale locale() const =0
virtual void disableSurface(::wl_surface *surface)=0
virtual Qt::LayoutDirection inputDirection() const =0
virtual ~QWaylandTextInputInterface()
virtual void updateState(Qt::InputMethodQueries queries, uint32_t flags)=0
void showInputPanel() override
QRectF keyboardRect() const override
void zwp_text_input_v1_language(uint32_t serial, const QString &language) override
void zwp_text_input_v1_keysym(uint32_t serial, uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers) override
void hideInputPanel() override
void zwp_text_input_v1_enter(struct ::wl_surface *surface) override
void zwp_text_input_v1_input_panel_state(uint32_t state) override
Qt::LayoutDirection inputDirection() const override
QLocale locale() const override
~QWaylandTextInputv1() override
bool isInputPanelVisible() const override
void disableSurface(::wl_surface *surface) override
void zwp_text_input_v1_cursor_position(int32_t index, int32_t anchor) override
void zwp_text_input_v1_leave() override
void zwp_text_input_v1_modifiers_map(wl_array *map) override
void zwp_text_input_v1_preedit_string(uint32_t serial, const QString &text, const QString &commit) override
void enableSurface(::wl_surface *surface) override
void zwp_text_input_v1_commit_string(uint32_t serial, const QString &text) override
void zwp_text_input_v1_delete_surrounding_text(int32_t before_length, uint32_t after_length) override
void updateState(Qt::InputMethodQueries queries, uint32_t flags) override
void zwp_text_input_v1_preedit_cursor(int32_t index) override
void zwp_text_input_v1_text_direction(uint32_t serial, uint32_t direction) override
void zwp_text_input_v1_preedit_styling(uint32_t index, uint32_t length, uint32_t style) override
void setCursorInsidePreedit(int cursor) override
void zwp_text_input_v2_keysym(uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers) override
~QWaylandTextInputv2() override
bool isInputPanelVisible() const override
void zwp_text_input_v2_preedit_styling(uint32_t index, uint32_t length, uint32_t style) override
void updateState(Qt::InputMethodQueries queries, uint32_t flags) override
QRectF keyboardRect() const override
void enableSurface(::wl_surface *surface) override
void hideInputPanel() override
void zwp_text_input_v2_delete_surrounding_text(uint32_t before_length, uint32_t after_length) override
void setCursorInsidePreedit(int cursor) override
void disableSurface(::wl_surface *surface) override
void zwp_text_input_v2_preedit_string(const QString &text, const QString &commit) override
void zwp_text_input_v2_input_method_changed(uint32_t serial, uint32_t flags) override
void zwp_text_input_v2_language(const QString &language) override
Qt::LayoutDirection inputDirection() const override
void zwp_text_input_v2_enter(uint32_t serial, struct ::wl_surface *surface) override
QLocale locale() const override
void zwp_text_input_v2_text_direction(uint32_t direction) override
void zwp_text_input_v2_modifiers_map(wl_array *map) override
void zwp_text_input_v2_commit_string(const QString &text) override
void zwp_text_input_v2_cursor_position(int32_t index, int32_t anchor) override
void zwp_text_input_v2_input_panel_state(uint32_t state, int32_t x, int32_t y, int32_t width, int32_t height) override
void zwp_text_input_v2_preedit_cursor(int32_t index) override
void zwp_text_input_v2_leave(uint32_t serial, struct ::wl_surface *surface) override
void showInputPanel() override
~QWaylandTextInputv3() override
void disableSurface(::wl_surface *) override
void zwp_text_input_v3_commit_string(const QString &text) override
Qt::LayoutDirection inputDirection() const override
QLocale locale() const override
void updateState(Qt::InputMethodQueries queries, uint32_t flags) override
void zwp_text_input_v3_enter(struct ::wl_surface *surface) override
void zwp_text_input_v3_preedit_string(const QString &text, int32_t cursor_begin, int32_t cursor_end) override
QRectF keyboardRect() const override
void zwp_text_input_v3_delete_surrounding_text(uint32_t before_length, uint32_t after_length) override
void zwp_text_input_v3_leave(struct ::wl_surface *surface) override
void enableSurface(::wl_surface *) override
void setCursorInsidePreedit(int cursor) override
bool isInputPanelVisible() const override
void zwp_text_input_v3_done(uint32_t serial) override
Combined button and popup list for selecting options.
Q_LOGGING_CATEGORY(lcQpaWayland, "qt.qpa.wayland")
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
static QWaylandInputMethodContentType convert(Qt::InputMethodHints hints)
static QWaylandInputMethodContentType convertV3(Qt::InputMethodHints hints)