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>.
|
#include <qwaylandtextinputv2_p.h>
Public Member Functions | |
QWaylandTextInputv2 (QWaylandDisplay *display, struct ::zwp_text_input_v2 *text_input) | |
~QWaylandTextInputv2 () override | |
void | reset () override |
void | commit () override |
void | updateState (Qt::InputMethodQueries queries, uint32_t flags) override |
void | setCursorInsidePreedit (int cursor) override |
bool | isInputPanelVisible () const override |
QRectF | keyboardRect () const override |
QLocale | locale () const override |
Qt::LayoutDirection | inputDirection () const override |
void | showInputPanel () override |
void | hideInputPanel () override |
void | enableSurface (::wl_surface *surface) override |
void | disableSurface (::wl_surface *surface) override |
Public Member Functions inherited from QtWaylandClient::QWaylandTextInputInterface | |
virtual | ~QWaylandTextInputInterface () |
Protected Member Functions | |
void | zwp_text_input_v2_enter (uint32_t serial, struct ::wl_surface *surface) override |
void | zwp_text_input_v2_leave (uint32_t serial, struct ::wl_surface *surface) override |
void | zwp_text_input_v2_modifiers_map (wl_array *map) 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_string (const QString &text, const QString &commit) override |
void | zwp_text_input_v2_preedit_styling (uint32_t index, uint32_t length, uint32_t style) override |
void | zwp_text_input_v2_preedit_cursor (int32_t index) 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_delete_surrounding_text (uint32_t before_length, uint32_t after_length) override |
void | zwp_text_input_v2_keysym (uint32_t time, uint32_t sym, uint32_t state, uint32_t modifiers) override |
void | zwp_text_input_v2_language (const QString &language) override |
void | zwp_text_input_v2_text_direction (uint32_t direction) override |
void | zwp_text_input_v2_input_method_changed (uint32_t serial, uint32_t flags) override |
Additional Inherited Members | |
Public Types inherited from QtWaylandClient::QWaylandTextInputInterface | |
enum | TextInputState { update_state_change = 0 , update_state_full = 1 , update_state_reset = 2 , update_state_enter = 3 } |
Definition at line 32 of file qwaylandtextinputv2_p.h.
QtWaylandClient::QWaylandTextInputv2::QWaylandTextInputv2 | ( | QWaylandDisplay * | display, |
struct ::zwp_text_input_v2 * | text_input ) |
Definition at line 40 of file qwaylandtextinputv2.cpp.
|
override |
Definition at line 46 of file qwaylandtextinputv2.cpp.
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 60 of file qwaylandtextinputv2.cpp.
References QGuiApplication::focusObject(), QString::isEmpty(), o, reset(), and QCoreApplication::sendEvent().
Referenced by zwp_text_input_v2_preedit_string().
|
inlineoverridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 62 of file qwaylandtextinputv2_p.h.
|
inlineoverridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 58 of file qwaylandtextinputv2_p.h.
|
inlineoverridevirtual |
Reimplemented from QtWaylandClient::QWaylandTextInputInterface.
Definition at line 54 of file qwaylandtextinputv2_p.h.
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 178 of file qwaylandtextinputv2.cpp.
Referenced by zwp_text_input_v2_text_direction().
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 163 of file qwaylandtextinputv2.cpp.
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 168 of file qwaylandtextinputv2.cpp.
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 173 of file qwaylandtextinputv2.cpp.
Referenced by zwp_text_input_v2_language().
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 53 of file qwaylandtextinputv2.cpp.
References Qt::ImQueryAll, QWaylandInputMethodEventBuilder::reset(), and updateState().
Referenced by commit().
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 158 of file qwaylandtextinputv2.cpp.
|
inlineoverridevirtual |
Reimplemented from QtWaylandClient::QWaylandTextInputInterface.
Definition at line 50 of file qwaylandtextinputv2_p.h.
|
overridevirtual |
Implements QtWaylandClient::QWaylandTextInputInterface.
Definition at line 90 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodContentType::convert(), cursor, QGuiApplication::focusObject(), QGuiApplication::focusWindow(), QWaylandInputMethodContentType::hint, Qt::ImAnchorPosition, Qt::ImCursorPosition, Qt::ImCursorRectangle, Qt::ImHints, Qt::ImPreferredLanguage, Qt::ImSurroundingText, QWaylandInputMethodEventBuilder::indexToWayland(), QGuiApplication::inputMethod(), QMargins::left(), QString::mid(), QWaylandInputMethodContentType::purpose, qAbs(), qBound(), qMin(), QCoreApplication::sendEvent(), QByteArray::size(), QString::size(), text, QHighDpi::toNativePixels(), QMargins::top(), QString::toUtf8(), QRect::translated(), window(), and QtWaylandClient::QWaylandDisplay::wl_display().
Referenced by reset(), zwp_text_input_v2_enter(), and zwp_text_input_v2_input_method_changed().
|
overrideprotected |
Definition at line 268 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::buildCommit(), QGuiApplication::focusObject(), qCDebug, QWaylandInputMethodEventBuilder::reset(), QCoreApplication::sendEvent(), and text.
|
overrideprotected |
Definition at line 287 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::setCursorPosition().
|
overrideprotected |
Definition at line 292 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::setDeleteSurroundingText().
|
overrideprotected |
Definition at line 183 of file qwaylandtextinputv2.cpp.
References Qt::ImQueryAll, and updateState().
|
overrideprotected |
Definition at line 354 of file qwaylandtextinputv2.cpp.
References Qt::ImQueryAll, Q_UNUSED, and updateState().
|
overrideprotected |
Definition at line 224 of file qwaylandtextinputv2.cpp.
References QGuiApplicationPrivate::platformIntegration().
|
overrideprotected |
Definition at line 297 of file qwaylandtextinputv2.cpp.
References QGuiApplication::focusWindow(), QWindowSystemInterface::handleKeyEvent(), QEvent::KeyPress, QEvent::KeyRelease, QXkbCommon::keysymToQtKey(), QXkbCommon::lookupStringNoKeysymTransformations(), Q_UNUSED, qCDebug, state, text, and time.
|
overrideprotected |
Definition at line 324 of file qwaylandtextinputv2.cpp.
References locale(), QGuiApplicationPrivate::platformIntegration(), and qCDebug.
|
overrideprotected |
Definition at line 191 of file qwaylandtextinputv2.cpp.
References Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 202 of file qwaylandtextinputv2.cpp.
References Qt::AltModifier, QList< T >::append(), QList< T >::clear(), Qt::ControlModifier, QByteArray::fromRawData(), map, Qt::MetaModifier, Qt::NoModifier, Qt::ShiftModifier, and QMap< Key, T >::size().
|
overrideprotected |
Definition at line 263 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::setPreeditCursor().
|
overrideprotected |
Definition at line 238 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::buildPreedit(), commit(), QGuiApplication::focusObject(), qCDebug, QWaylandInputMethodEventBuilder::reset(), QCoreApplication::sendEvent(), and text.
|
overrideprotected |
Definition at line 258 of file qwaylandtextinputv2.cpp.
References QWaylandInputMethodEventBuilder::addPreeditStyling().
|
overrideprotected |
Definition at line 338 of file qwaylandtextinputv2.cpp.
References direction, inputDirection(), Qt::LayoutDirectionAuto, Qt::LeftToRight, QGuiApplicationPrivate::platformIntegration(), qCDebug, and Qt::RightToLeft.