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 <qwaylandtextinputv3_p.h>
Protected Member Functions | |
void | zwp_text_input_v3_bind_resource (Resource *resource) override |
void | zwp_text_input_v3_destroy_resource (Resource *resource) override |
void | zwp_text_input_v3_destroy (Resource *resource) override |
void | zwp_text_input_v3_enable (Resource *resource) override |
void | zwp_text_input_v3_disable (Resource *resource) override |
void | zwp_text_input_v3_set_surrounding_text (Resource *resource, const QString &text, int32_t cursor, int32_t anchor) override |
void | zwp_text_input_v3_set_text_change_cause (Resource *resource, uint32_t cause) override |
void | zwp_text_input_v3_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override |
void | zwp_text_input_v3_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override |
void | zwp_text_input_v3_commit (Resource *resource) override |
Additional Inherited Members | |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Static Public Member Functions inherited from QWaylandCompositorExtensionPrivate | |
static QWaylandCompositorExtensionPrivate * | get (QWaylandCompositorExtension *extension) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 50 of file qwaylandtextinputv3_p.h.
|
explicit |
Definition at line 82 of file qwaylandtextinputv3.cpp.
QVariant QWaylandTextInputV3Private::inputMethodQuery | ( | Qt::InputMethodQuery | property, |
QVariant | argument ) const |
Definition at line 145 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::anchorPosition, argument, currentState, QWaylandTextInputV3ClientState::cursorPosition, QWaylandTextInputV3ClientState::cursorRectangle, QWaylandTextInputV3ClientState::hints, Qt::ImAbsolutePosition, Qt::ImAnchorPosition, Qt::ImCurrentSelection, Qt::ImCursorPosition, Qt::ImCursorRectangle, Qt::ImFont, Qt::ImHints, Qt::ImMaximumTextLength, Qt::ImSurroundingText, Qt::ImTextAfterCursor, Qt::ImTextBeforeCursor, QString::left(), QString::mid(), property, Q_FUNC_INFO, qAbs(), qCDebug, qMin(), QString::right(), and QWaylandTextInputV3ClientState::surroundingText.
void QWaylandTextInputV3Private::sendInputMethodEvent | ( | QInputMethodEvent * | event | ) |
Definition at line 89 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::anchorPosition, currentPreeditString, currentState, QWaylandTextInputV3ClientState::cursorPosition, focusResource, QWaylandInputMethodEventBuilder::indexToWayland(), QString::length(), Q_FUNC_INFO, qCDebug, qCWarning, qMax(), qMin(), serials, and QWaylandTextInputV3ClientState::surroundingText.
Definition at line 133 of file qwaylandtextinputv3.cpp.
References focusResource, Q_FUNC_INFO, qCDebug, and serials.
void QWaylandTextInputV3Private::setFocus | ( | QWaylandSurface * | surface | ) |
Definition at line 189 of file qwaylandtextinputv3.cpp.
References QLocale::Chinese, QString::clear(), currentPreeditString, focus, focusDestroyListener, focusResource, inputPanelVisible, QWaylandDestroyListener::listenForDestruction(), Q_FUNC_INFO, qApp, QByteArrayLiteral, qCDebug, qgetenv(), QWaylandDestroyListener::reset(), QWaylandSurface::resource(), and QWaylandSurface::waylandClient().
|
overrideprotected |
Definition at line 224 of file qwaylandtextinputv3.cpp.
References QHash< Key, T >::insert(), Q_FUNC_INFO, qCDebug, and serials.
|
overrideprotected |
Definition at line 292 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::anchorPosition, QWaylandTextInputV3ClientState::changedState, QInputMethod::Click, currentState, QWaylandTextInputV3ClientState::cursorPosition, QScopedPointer< T, Cleanup >::data(), QWaylandTextInputV3ClientState::mergeChanged(), pendingState, Q_FUNC_INFO, qApp, qCDebug, QScopedPointer< T, Cleanup >::reset(), serials, and QWaylandTextInputV3ClientState::surroundingText.
|
overrideprotected |
Definition at line 240 of file qwaylandtextinputv3.cpp.
References Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 231 of file qwaylandtextinputv3.cpp.
References focusResource, Q_FUNC_INFO, qCDebug, QHash< Key, T >::remove(), and serials.
|
overrideprotected |
Definition at line 262 of file qwaylandtextinputv3.cpp.
References QLocale::Chinese, emit, enabledSurfaces, pendingState, Q_FUNC_INFO, qApp, QByteArrayLiteral, qCDebug, qgetenv(), QScopedPointer< T, Cleanup >::reset(), and QHash< Key, T >::take().
|
overrideprotected |
Definition at line 247 of file qwaylandtextinputv3.cpp.
References emit, enabledSurfaces, focus, inputPanelVisible, QHash< Key, T >::insert(), pendingState, Q_FUNC_INFO, qApp, qCDebug, and QScopedPointer< T, Cleanup >::reset().
|
overrideprotected |
Definition at line 326 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::changedState, focusResource, hint(), QWaylandTextInputV3ClientState::hints, Qt::ImhDate, Qt::ImhDialableCharactersOnly, Qt::ImhDigitsOnly, Qt::ImhEmailCharactersOnly, Qt::ImhFormattedNumbersOnly, Qt::ImhHiddenText, Qt::ImHints, Qt::ImhLatinOnly, Qt::ImhLowercaseOnly, Qt::ImhMultiLine, Qt::ImhNoAutoUppercase, Qt::ImhNone, Qt::ImhNoPredictiveText, Qt::ImhPreferLowercase, Qt::ImhPreferUppercase, Qt::ImhSensitiveData, Qt::ImhTime, Qt::ImhUppercaseOnly, Qt::ImhUrlCharactersOnly, pendingState, Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 280 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::changedState, QWaylandTextInputV3ClientState::cursorRectangle, focusResource, Qt::ImCursorRectangle, pendingState, Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 395 of file qwaylandtextinputv3.cpp.
References QWaylandTextInputV3ClientState::anchorPosition, QWaylandTextInputV3ClientState::changedState, cursor, QWaylandTextInputV3ClientState::cursorPosition, focusResource, Qt::ImAnchorPosition, Qt::ImCursorPosition, Qt::ImSurroundingText, QWaylandInputMethodEventBuilder::indexFromWayland(), pendingState, Q_FUNC_INFO, qCDebug, QWaylandTextInputV3ClientState::surroundingText, and text.
|
overrideprotected |
Definition at line 409 of file qwaylandtextinputv3.cpp.
References Q_FUNC_INFO, Q_UNUSED, and qCDebug.
QWaylandCompositor* QWaylandTextInputV3Private::compositor = nullptr |
Definition at line 63 of file qwaylandtextinputv3_p.h.
QString QWaylandTextInputV3Private::currentPreeditString |
Definition at line 71 of file qwaylandtextinputv3_p.h.
Referenced by sendInputMethodEvent(), and setFocus().
QScopedPointer<QWaylandTextInputV3ClientState> QWaylandTextInputV3Private::currentState |
Definition at line 73 of file qwaylandtextinputv3_p.h.
Referenced by inputMethodQuery(), sendInputMethodEvent(), and zwp_text_input_v3_commit().
QHash<Resource *, QWaylandSurface *> QWaylandTextInputV3Private::enabledSurfaces |
Definition at line 77 of file qwaylandtextinputv3_p.h.
Referenced by zwp_text_input_v3_disable(), and zwp_text_input_v3_enable().
QWaylandSurface* QWaylandTextInputV3Private::focus = nullptr |
Definition at line 65 of file qwaylandtextinputv3_p.h.
Referenced by setFocus(), and zwp_text_input_v3_enable().
QWaylandDestroyListener QWaylandTextInputV3Private::focusDestroyListener |
Definition at line 67 of file qwaylandtextinputv3_p.h.
Referenced by setFocus().
Resource* QWaylandTextInputV3Private::focusResource = nullptr |
Definition at line 66 of file qwaylandtextinputv3_p.h.
Referenced by sendInputMethodEvent(), sendKeyEvent(), setFocus(), zwp_text_input_v3_destroy_resource(), zwp_text_input_v3_set_content_type(), zwp_text_input_v3_set_cursor_rectangle(), and zwp_text_input_v3_set_surrounding_text().
bool QWaylandTextInputV3Private::inputPanelVisible = false |
Definition at line 69 of file qwaylandtextinputv3_p.h.
Referenced by setFocus(), and zwp_text_input_v3_enable().
QScopedPointer<QWaylandTextInputV3ClientState> QWaylandTextInputV3Private::pendingState |
Definition at line 74 of file qwaylandtextinputv3_p.h.
Referenced by zwp_text_input_v3_commit(), zwp_text_input_v3_disable(), zwp_text_input_v3_enable(), zwp_text_input_v3_set_content_type(), zwp_text_input_v3_set_cursor_rectangle(), and zwp_text_input_v3_set_surrounding_text().
QHash<Resource *, uint32_t> QWaylandTextInputV3Private::serials |
Definition at line 76 of file qwaylandtextinputv3_p.h.
Referenced by sendInputMethodEvent(), sendKeyEvent(), zwp_text_input_v3_bind_resource(), zwp_text_input_v3_commit(), and zwp_text_input_v3_destroy_resource().