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>.
Loading...
Searching...
No Matches
QWaylandTextInputPrivate Class Reference

#include <qwaylandtextinput_p.h>

+ Inheritance diagram for QWaylandTextInputPrivate:
+ Collaboration diagram for QWaylandTextInputPrivate:

Public Member Functions

 QWaylandTextInputPrivate (QWaylandCompositor *compositor)
 
void sendInputMethodEvent (QInputMethodEvent *event)
 
void sendKeyEvent (QKeyEvent *event)
 
void sendInputPanelState ()
 
void sendTextDirection ()
 
void sendLocale ()
 
void sendModifiersMap (const QByteArray &modifiersMap)
 
QVariant inputMethodQuery (Qt::InputMethodQuery property, QVariant argument) const
 
void setFocus (QWaylandSurface *surface)
 
- Public Member Functions inherited from QWaylandCompositorExtensionPrivate
 QWaylandCompositorExtensionPrivate ()
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QWaylandCompositorcompositor = nullptr
 
QWaylandSurfacefocus = nullptr
 
Resource * focusResource = nullptr
 
QWaylandDestroyListener focusDestroyListener
 
bool inputPanelVisible = false
 
std::unique_ptr< QWaylandTextInputClientStatecurrentState
 
std::unique_ptr< QWaylandTextInputClientStatependingState
 
uint32_t serial = 0
 
QHash< Resource *, QWaylandSurface * > enabledSurfaces
 
- Public Attributes inherited from QWaylandCompositorExtensionPrivate
QWaylandObjectextension_container = nullptr
 
bool initialized = false
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

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 QWaylandCompositorExtensionPrivateget (QWaylandCompositorExtension *extension)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 

Detailed Description

Definition at line 53 of file qwaylandtextinput_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputPrivate()

QWaylandTextInputPrivate::QWaylandTextInputPrivate ( QWaylandCompositor * compositor)
explicit

Definition at line 84 of file qwaylandtextinput.cpp.

Member Function Documentation

◆ inputMethodQuery()

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:

◆ sendInputMethodEvent()

void QWaylandTextInputPrivate::sendInputMethodEvent ( QInputMethodEvent * event)

Definition at line 91 of file qwaylandtextinput.cpp.

References currentState, cursor, QInputMethodEvent::Cursor, emit, focusResource, QWaylandInputMethodEventBuilder::indexToWayland(), qAbs(), qBound(), qCDebug, qMax(), qMin(), qWarning, QInputMethodEvent::Selection, QWaylandTextInputClientState::surroundingText, and QInputMethodEvent::TextFormat.

+ Here is the call graph for this function:

◆ sendInputPanelState()

void QWaylandTextInputPrivate::sendInputPanelState ( )

Definition at line 194 of file qwaylandtextinput.cpp.

References focusResource, QInputMethod::inputItemRectangle(), QInputMethod::inputItemTransform(), QRectF::intersected(), QInputMethod::isVisible(), QInputMethod::keyboardRectangle, QTransform::mapRect(), qApp, and QRectF::translated().

Referenced by setFocus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendKeyEvent()

void QWaylandTextInputPrivate::sendKeyEvent ( QKeyEvent * event)

Definition at line 167 of file qwaylandtextinput.cpp.

References Qt::AltModifier, Qt::ControlModifier, focusResource, QEvent::KeyPress, keysym, Qt::MetaModifier, Q_UNUSED, Qt::ShiftModifier, and QXkbCommon::toKeysym().

+ Here is the call graph for this function:

◆ sendLocale()

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:

◆ sendModifiersMap()

void QWaylandTextInputPrivate::sendModifiersMap ( const QByteArray & modifiersMap)

Definition at line 300 of file qwaylandtextinput.cpp.

References focusResource.

◆ sendTextDirection()

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:

◆ setFocus()

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:

◆ zwp_text_input_v2_bind_resource()

void QWaylandTextInputPrivate::zwp_text_input_v2_bind_resource ( Resource * resource)
overrideprotected

Definition at line 311 of file qwaylandtextinput.cpp.

References QByteArray(), XKB_MOD_NAME_ALT, XKB_MOD_NAME_CTRL, XKB_MOD_NAME_LOGO, and XKB_MOD_NAME_SHIFT.

+ Here is the call graph for this function:

◆ zwp_text_input_v2_destroy()

void QWaylandTextInputPrivate::zwp_text_input_v2_destroy ( Resource * resource)
overrideprotected

Definition at line 326 of file qwaylandtextinput.cpp.

◆ zwp_text_input_v2_destroy_resource()

void QWaylandTextInputPrivate::zwp_text_input_v2_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 320 of file qwaylandtextinput.cpp.

References focusResource.

◆ zwp_text_input_v2_disable()

void QWaylandTextInputPrivate::zwp_text_input_v2_disable ( Resource * resource,
wl_resource * surface )
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:

◆ zwp_text_input_v2_enable()

void QWaylandTextInputPrivate::zwp_text_input_v2_enable ( Resource * resource,
wl_resource * surface )
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:

◆ zwp_text_input_v2_hide_input_panel()

void QWaylandTextInputPrivate::zwp_text_input_v2_hide_input_panel ( Resource * resource)
overrideprotected

Definition at line 360 of file qwaylandtextinput.cpp.

References inputPanelVisible, and qApp.

◆ zwp_text_input_v2_set_content_type()

void QWaylandTextInputPrivate::zwp_text_input_v2_set_content_type ( Resource * resource,
uint32_t hint,
uint32_t purpose )
overrideprotected

◆ zwp_text_input_v2_set_cursor_rectangle()

void QWaylandTextInputPrivate::zwp_text_input_v2_set_cursor_rectangle ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

Definition at line 367 of file qwaylandtextinput.cpp.

References focusResource, Qt::ImCursorRectangle, and pendingState.

◆ zwp_text_input_v2_set_preferred_language()

void QWaylandTextInputPrivate::zwp_text_input_v2_set_preferred_language ( Resource * resource,
const QString & language )
overrideprotected

Definition at line 476 of file qwaylandtextinput.cpp.

References focusResource, Qt::ImPreferredLanguage, and pendingState.

◆ zwp_text_input_v2_set_surrounding_text()

void QWaylandTextInputPrivate::zwp_text_input_v2_set_surrounding_text ( Resource * resource,
const QString & text,
int32_t cursor,
int32_t anchor )
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:

◆ zwp_text_input_v2_show_input_panel()

void QWaylandTextInputPrivate::zwp_text_input_v2_show_input_panel ( Resource * resource)
overrideprotected

Definition at line 353 of file qwaylandtextinput.cpp.

References inputPanelVisible, and qApp.

◆ zwp_text_input_v2_update_state()

void QWaylandTextInputPrivate::zwp_text_input_v2_update_state ( Resource * resource,
uint32_t serial,
uint32_t flags )
overrideprotected

Definition at line 377 of file qwaylandtextinput.cpp.

References currentState, emit, focusResource, pendingState, qApp, qCDebug, and serial.

Member Data Documentation

◆ compositor

QWaylandCompositor* QWaylandTextInputPrivate::compositor = nullptr

Definition at line 70 of file qwaylandtextinput_p.h.

Referenced by setFocus().

◆ currentState

std::unique_ptr<QWaylandTextInputClientState> QWaylandTextInputPrivate::currentState

◆ enabledSurfaces

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().

◆ focus

QWaylandSurface* QWaylandTextInputPrivate::focus = nullptr

Definition at line 72 of file qwaylandtextinput_p.h.

Referenced by setFocus().

◆ focusDestroyListener

QWaylandDestroyListener QWaylandTextInputPrivate::focusDestroyListener

Definition at line 74 of file qwaylandtextinput_p.h.

Referenced by setFocus().

◆ focusResource

◆ inputPanelVisible

bool QWaylandTextInputPrivate::inputPanelVisible = false

◆ pendingState

◆ serial

uint32_t QWaylandTextInputPrivate::serial = 0

Definition at line 81 of file qwaylandtextinput_p.h.

Referenced by setFocus(), and zwp_text_input_v2_update_state().


The documentation for this class was generated from the following files: