![]() |
Qt 6.x
The Qt SDK
|
#include <qwaylandtextinputv4_p.h>
Protected Member Functions | |
void | zwp_text_input_v4_bind_resource (Resource *resource) override |
void | zwp_text_input_v4_destroy_resource (Resource *resource) override |
void | zwp_text_input_v4_destroy (Resource *resource) override |
void | zwp_text_input_v4_enable (Resource *resource) override |
void | zwp_text_input_v4_disable (Resource *resource) override |
void | zwp_text_input_v4_set_surrounding_text (Resource *resource, const QString &text, int32_t cursor, int32_t anchor) override |
void | zwp_text_input_v4_set_text_change_cause (Resource *resource, uint32_t cause) override |
void | zwp_text_input_v4_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override |
void | zwp_text_input_v4_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override |
void | zwp_text_input_v4_commit (Resource *resource) override |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
![]() | |
static QWaylandCompositorExtensionPrivate * | get (QWaylandCompositorExtension *extension) |
![]() | |
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 qwaylandtextinputv4_p.h.
|
explicit |
Definition at line 82 of file qwaylandtextinputv4.cpp.
QVariant QWaylandTextInputV4Private::inputMethodQuery | ( | Qt::InputMethodQuery | property, |
QVariant | argument | ||
) | const |
Definition at line 148 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::anchorPosition, argument, currentState, QWaylandTextInputV4ClientState::cursorPosition, QWaylandTextInputV4ClientState::cursorRectangle, QWaylandTextInputV4ClientState::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 QWaylandTextInputV4ClientState::surroundingText.
void QWaylandTextInputV4Private::sendInputMethodEvent | ( | QInputMethodEvent * | event | ) |
Definition at line 89 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::anchorPosition, currentPreeditString, currentState, QWaylandTextInputV4ClientState::cursorPosition, focusResource, QWaylandInputMethodEventBuilder::indexToWayland(), QString::length(), Q_FUNC_INFO, qCDebug, qCWarning, qMax(), qMin(), serial, and QWaylandTextInputV4ClientState::surroundingText.
Definition at line 134 of file qwaylandtextinputv4.cpp.
References focusResource, Q_FUNC_INFO, qCDebug, and serial.
void QWaylandTextInputV4Private::setFocus | ( | QWaylandSurface * | surface | ) |
Definition at line 192 of file qwaylandtextinputv4.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 228 of file qwaylandtextinputv4.cpp.
References Q_FUNC_INFO, Q_UNUSED, and qCDebug.
|
overrideprotected |
Definition at line 298 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::anchorPosition, QWaylandTextInputV4ClientState::changedState, QInputMethod::Click, currentState, QWaylandTextInputV4ClientState::cursorPosition, QScopedPointer< T, Cleanup >::data(), focusResource, QWaylandTextInputV4ClientState::mergeChanged(), pendingState, Q_FUNC_INFO, qApp, qCDebug, QScopedPointer< T, Cleanup >::reset(), serial, and QWaylandTextInputV4ClientState::surroundingText.
|
overrideprotected |
Definition at line 243 of file qwaylandtextinputv4.cpp.
References Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 235 of file qwaylandtextinputv4.cpp.
References focusResource, Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 266 of file qwaylandtextinputv4.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 250 of file qwaylandtextinputv4.cpp.
References emit, enabledSurfaces, focus, inputPanelVisible, QHash< Key, T >::insert(), pendingState, Q_FUNC_INFO, qApp, qCDebug, QScopedPointer< T, Cleanup >::reset(), and serial.
|
overrideprotected |
Definition at line 339 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::changedState, focusResource, hint(), QWaylandTextInputV4ClientState::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 284 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::changedState, QWaylandTextInputV4ClientState::cursorRectangle, focusResource, Qt::ImCursorRectangle, pendingState, Q_FUNC_INFO, and qCDebug.
|
overrideprotected |
Definition at line 408 of file qwaylandtextinputv4.cpp.
References QWaylandTextInputV4ClientState::anchorPosition, QWaylandTextInputV4ClientState::changedState, cursor, QWaylandTextInputV4ClientState::cursorPosition, focusResource, Qt::ImAnchorPosition, Qt::ImCursorPosition, Qt::ImSurroundingText, QWaylandInputMethodEventBuilder::indexFromWayland(), pendingState, Q_FUNC_INFO, qCDebug, QWaylandTextInputV4ClientState::surroundingText, and text.
|
overrideprotected |
Definition at line 422 of file qwaylandtextinputv4.cpp.
References Q_FUNC_INFO, Q_UNUSED, and qCDebug.
QWaylandCompositor* QWaylandTextInputV4Private::compositor = nullptr |
Definition at line 63 of file qwaylandtextinputv4_p.h.
QString QWaylandTextInputV4Private::currentPreeditString |
Definition at line 71 of file qwaylandtextinputv4_p.h.
Referenced by sendInputMethodEvent(), and setFocus().
QScopedPointer<QWaylandTextInputV4ClientState> QWaylandTextInputV4Private::currentState |
Definition at line 73 of file qwaylandtextinputv4_p.h.
Referenced by inputMethodQuery(), sendInputMethodEvent(), and zwp_text_input_v4_commit().
QHash<Resource *, QWaylandSurface*> QWaylandTextInputV4Private::enabledSurfaces |
Definition at line 78 of file qwaylandtextinputv4_p.h.
Referenced by zwp_text_input_v4_disable(), and zwp_text_input_v4_enable().
QWaylandSurface* QWaylandTextInputV4Private::focus = nullptr |
Definition at line 65 of file qwaylandtextinputv4_p.h.
Referenced by setFocus(), and zwp_text_input_v4_enable().
QWaylandDestroyListener QWaylandTextInputV4Private::focusDestroyListener |
Definition at line 67 of file qwaylandtextinputv4_p.h.
Referenced by setFocus().
Resource* QWaylandTextInputV4Private::focusResource = nullptr |
Definition at line 66 of file qwaylandtextinputv4_p.h.
Referenced by sendInputMethodEvent(), sendKeyEvent(), setFocus(), zwp_text_input_v4_commit(), zwp_text_input_v4_destroy_resource(), zwp_text_input_v4_set_content_type(), zwp_text_input_v4_set_cursor_rectangle(), and zwp_text_input_v4_set_surrounding_text().
bool QWaylandTextInputV4Private::inputPanelVisible = false |
Definition at line 69 of file qwaylandtextinputv4_p.h.
Referenced by setFocus(), and zwp_text_input_v4_enable().
QScopedPointer<QWaylandTextInputV4ClientState> QWaylandTextInputV4Private::pendingState |
Definition at line 74 of file qwaylandtextinputv4_p.h.
Referenced by zwp_text_input_v4_commit(), zwp_text_input_v4_disable(), zwp_text_input_v4_enable(), zwp_text_input_v4_set_content_type(), zwp_text_input_v4_set_cursor_rectangle(), and zwp_text_input_v4_set_surrounding_text().
uint32_t QWaylandTextInputV4Private::serial = 0 |
Definition at line 76 of file qwaylandtextinputv4_p.h.
Referenced by sendInputMethodEvent(), sendKeyEvent(), zwp_text_input_v4_commit(), and zwp_text_input_v4_enable().