![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
#include <qwaylandtextinput_p.h>
 Inheritance diagram for QWaylandTextInputPrivate:
 Collaboration diagram for QWaylandTextInputPrivate:Protected Member Functions | |
| void | zwp_text_input_v2_bind_resource (Resource *resource) override | 
| void | zwp_text_input_v2_destroy_resource (Resource *resource) override | 
| void | zwp_text_input_v2_destroy (Resource *resource) override | 
| void | zwp_text_input_v2_enable (Resource *resource, wl_resource *surface) override | 
| void | zwp_text_input_v2_disable (Resource *resource, wl_resource *surface) override | 
| void | zwp_text_input_v2_show_input_panel (Resource *resource) override | 
| void | zwp_text_input_v2_hide_input_panel (Resource *resource) override | 
| void | zwp_text_input_v2_set_surrounding_text (Resource *resource, const QString &text, int32_t cursor, int32_t anchor) override | 
| void | zwp_text_input_v2_set_content_type (Resource *resource, uint32_t hint, uint32_t purpose) override | 
| void | zwp_text_input_v2_set_cursor_rectangle (Resource *resource, int32_t x, int32_t y, int32_t width, int32_t height) override | 
| void | zwp_text_input_v2_set_preferred_language (Resource *resource, const QString &language) override | 
| void | zwp_text_input_v2_update_state (Resource *resource, uint32_t serial, uint32_t flags) 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 53 of file qwaylandtextinput_p.h.
      
  | 
  explicit | 
Definition at line 84 of file qwaylandtextinput.cpp.
| QVariant QWaylandTextInputPrivate::inputMethodQuery | ( | Qt::InputMethodQuery | property, | 
| QVariant | argument | ||
| ) | const | 
Definition at line 229 of file qwaylandtextinput.cpp.
References argument, currentState, Qt::ImAbsolutePosition, Qt::ImAnchorPosition, Qt::ImCurrentSelection, Qt::ImCursorPosition, Qt::ImCursorRectangle, Qt::ImFont, Qt::ImHints, Qt::ImMaximumTextLength, Qt::ImPreferredLanguage, Qt::ImSurroundingText, Qt::ImTextAfterCursor, Qt::ImTextBeforeCursor, property, qAbs(), and qMin().
 Here is the call graph for this function:| void QWaylandTextInputPrivate::sendInputMethodEvent | ( | QInputMethodEvent * | event | ) | 
Definition at line 91 of file qwaylandtextinput.cpp.
References QWaylandTextInputClientState::anchorPosition, currentState, cursor, QInputMethodEvent::Cursor, QWaylandTextInputClientState::cursorPosition, emit, focusResource, QWaylandInputMethodEventBuilder::indexToWayland(), QString::insert(), qAbs(), qBound(), qCDebug, qMax(), qMin(), qWarning, QString::remove(), QInputMethodEvent::Selection, QString::size(), QWaylandTextInputClientState::surroundingText, and QInputMethodEvent::TextFormat.
 Here is the call graph for this function:| void QWaylandTextInputPrivate::sendInputPanelState | ( | ) | 
Definition at line 194 of file qwaylandtextinput.cpp.
References focusResource, QRectF::height(), QInputMethod::inputItemRectangle(), QInputMethod::inputItemTransform(), QRectF::intersected(), QInputMethod::isVisible(), QInputMethod::keyboardRectangle, QTransform::mapRect(), qApp, QRectF::topLeft(), QRectF::translated(), QRectF::width(), QRectF::x(), and QRectF::y().
Referenced by setFocus().
 Here is the call graph for this function:
 Here is the caller graph for this function:Definition at line 167 of file qwaylandtextinput.cpp.
References Qt::AltModifier, Qt::ControlModifier, focusResource, QEvent::KeyPress, Qt::MetaModifier, Q_UNUSED, Qt::ShiftModifier, and QXkbCommon::toKeysym().
 Here is the call graph for this function:| void QWaylandTextInputPrivate::sendLocale | ( | ) | 
Definition at line 220 of file qwaylandtextinput.cpp.
References focusResource, and qApp.
Referenced by setFocus().
 Here is the caller graph for this function:| void QWaylandTextInputPrivate::sendModifiersMap | ( | const QByteArray & | modifiersMap | ) | 
Definition at line 300 of file qwaylandtextinput.cpp.
References focusResource.
| void QWaylandTextInputPrivate::sendTextDirection | ( | ) | 
Definition at line 209 of file qwaylandtextinput.cpp.
References direction, focusResource, Qt::LeftToRight, qApp, and Qt::RightToLeft.
Referenced by setFocus().
 Here is the caller graph for this function:| void QWaylandTextInputPrivate::setFocus | ( | QWaylandSurface * | surface | ) | 
Definition at line 270 of file qwaylandtextinput.cpp.
References compositor, currentState, focus, focusDestroyListener, focusResource, inputPanelVisible, QWaylandDestroyListener::listenForDestruction(), pendingState, qApp, QWaylandDestroyListener::reset(), QWaylandSurface::resource(), sendInputPanelState(), sendLocale(), sendTextDirection(), serial, and QWaylandSurface::waylandClient().
 Here is the call graph for this function:
      
  | 
  overrideprotected | 
Definition at line 311 of file qwaylandtextinput.cpp.
References XKB_MOD_NAME_ALT, XKB_MOD_NAME_CTRL, XKB_MOD_NAME_LOGO, and XKB_MOD_NAME_SHIFT.
      
  | 
  overrideprotected | 
Definition at line 326 of file qwaylandtextinput.cpp.
      
  | 
  overrideprotected | 
Definition at line 320 of file qwaylandtextinput.cpp.
References focusResource.
      
  | 
  overrideprotected | 
Definition at line 345 of file qwaylandtextinput.cpp.
References emit, enabledSurfaces, and QHash< Key, T >::take().
 Here is the call graph for this function:
      
  | 
  overrideprotected | 
Definition at line 331 of file qwaylandtextinput.cpp.
References emit, enabledSurfaces, QWaylandSurface::fromResource(), QHash< Key, T >::insert(), and QWaylandInputMethodControl::updateTextInput().
 Here is the call graph for this function:
      
  | 
  overrideprotected | 
Definition at line 360 of file qwaylandtextinput.cpp.
References inputPanelVisible, and qApp.
      
  | 
  overrideprotected | 
Definition at line 410 of file qwaylandtextinput.cpp.
References focusResource, hint(), 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, and pendingState.
 Here is the call graph for this function:
      
  | 
  overrideprotected | 
Definition at line 367 of file qwaylandtextinput.cpp.
References focusResource, Qt::ImCursorRectangle, and pendingState.
      
  | 
  overrideprotected | 
Definition at line 476 of file qwaylandtextinput.cpp.
References focusResource, Qt::ImPreferredLanguage, and pendingState.
      
  | 
  overrideprotected | 
Definition at line 486 of file qwaylandtextinput.cpp.
References cursor, focusResource, Qt::ImAnchorPosition, Qt::ImCursorPosition, Qt::ImSurroundingText, QWaylandInputMethodEventBuilder::indexFromWayland(), pendingState, and text.
 Here is the call graph for this function:
      
  | 
  overrideprotected | 
Definition at line 353 of file qwaylandtextinput.cpp.
References inputPanelVisible, and qApp.
      
  | 
  overrideprotected | 
Definition at line 377 of file qwaylandtextinput.cpp.
References currentState, emit, focusResource, pendingState, qApp, qCDebug, and serial.
| QWaylandCompositor* QWaylandTextInputPrivate::compositor = nullptr | 
Definition at line 70 of file qwaylandtextinput_p.h.
Referenced by setFocus().
| std::unique_ptr<QWaylandTextInputClientState> QWaylandTextInputPrivate::currentState | 
Definition at line 78 of file qwaylandtextinput_p.h.
Referenced by inputMethodQuery(), sendInputMethodEvent(), setFocus(), and zwp_text_input_v2_update_state().
| QHash<Resource *, QWaylandSurface*> QWaylandTextInputPrivate::enabledSurfaces | 
Definition at line 83 of file qwaylandtextinput_p.h.
Referenced by zwp_text_input_v2_disable(), and zwp_text_input_v2_enable().
| QWaylandSurface* QWaylandTextInputPrivate::focus = nullptr | 
Definition at line 72 of file qwaylandtextinput_p.h.
Referenced by setFocus().
| QWaylandDestroyListener QWaylandTextInputPrivate::focusDestroyListener | 
Definition at line 74 of file qwaylandtextinput_p.h.
Referenced by setFocus().
| Resource* QWaylandTextInputPrivate::focusResource = nullptr | 
Definition at line 73 of file qwaylandtextinput_p.h.
Referenced by sendInputMethodEvent(), sendInputPanelState(), sendKeyEvent(), sendLocale(), sendModifiersMap(), sendTextDirection(), setFocus(), zwp_text_input_v2_destroy_resource(), zwp_text_input_v2_set_content_type(), zwp_text_input_v2_set_cursor_rectangle(), zwp_text_input_v2_set_preferred_language(), zwp_text_input_v2_set_surrounding_text(), and zwp_text_input_v2_update_state().
| bool QWaylandTextInputPrivate::inputPanelVisible = false | 
Definition at line 76 of file qwaylandtextinput_p.h.
Referenced by setFocus(), zwp_text_input_v2_hide_input_panel(), and zwp_text_input_v2_show_input_panel().
| std::unique_ptr<QWaylandTextInputClientState> QWaylandTextInputPrivate::pendingState | 
Definition at line 79 of file qwaylandtextinput_p.h.
Referenced by setFocus(), zwp_text_input_v2_set_content_type(), zwp_text_input_v2_set_cursor_rectangle(), zwp_text_input_v2_set_preferred_language(), zwp_text_input_v2_set_surrounding_text(), and zwp_text_input_v2_update_state().
| uint32_t QWaylandTextInputPrivate::serial = 0 | 
Definition at line 81 of file qwaylandtextinput_p.h.
Referenced by setFocus(), and zwp_text_input_v2_update_state().