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
QWaylandTextInputV3Private Class Reference

#include <qwaylandtextinputv3_p.h>

+ Inheritance diagram for QWaylandTextInputV3Private:
+ Collaboration diagram for QWaylandTextInputV3Private:

Public Member Functions

 QWaylandTextInputV3Private (QWaylandCompositor *compositor)
 
void sendInputMethodEvent (QInputMethodEvent *event)
 
void sendKeyEvent (QKeyEvent *event)
 
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
 
QString currentPreeditString
 
QScopedPointer< QWaylandTextInputV3ClientStatecurrentState
 
QScopedPointer< QWaylandTextInputV3ClientStatependingState
 
QHash< Resource *, uint32_t > serials
 
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_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 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 50 of file qwaylandtextinputv3_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputV3Private()

QWaylandTextInputV3Private::QWaylandTextInputV3Private ( QWaylandCompositor * compositor)
explicit

Definition at line 82 of file qwaylandtextinputv3.cpp.

Member Function Documentation

◆ inputMethodQuery()

◆ sendInputMethodEvent()

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.

+ Here is the call graph for this function:

◆ sendKeyEvent()

void QWaylandTextInputV3Private::sendKeyEvent ( QKeyEvent * event)

Definition at line 133 of file qwaylandtextinputv3.cpp.

References focusResource, Q_FUNC_INFO, qCDebug, and serials.

◆ setFocus()

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

+ Here is the call graph for this function:

◆ zwp_text_input_v3_bind_resource()

void QWaylandTextInputV3Private::zwp_text_input_v3_bind_resource ( Resource * resource)
overrideprotected

Definition at line 224 of file qwaylandtextinputv3.cpp.

References QHash< Key, T >::insert(), Q_FUNC_INFO, qCDebug, and serials.

+ Here is the call graph for this function:

◆ zwp_text_input_v3_commit()

void QWaylandTextInputV3Private::zwp_text_input_v3_commit ( Resource * resource)
overrideprotected

◆ zwp_text_input_v3_destroy()

void QWaylandTextInputV3Private::zwp_text_input_v3_destroy ( Resource * resource)
overrideprotected

Definition at line 240 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, and qCDebug.

◆ zwp_text_input_v3_destroy_resource()

void QWaylandTextInputV3Private::zwp_text_input_v3_destroy_resource ( Resource * resource)
overrideprotected

Definition at line 231 of file qwaylandtextinputv3.cpp.

References focusResource, Q_FUNC_INFO, qCDebug, QHash< Key, T >::remove(), and serials.

+ Here is the call graph for this function:

◆ zwp_text_input_v3_disable()

void QWaylandTextInputV3Private::zwp_text_input_v3_disable ( Resource * resource)
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().

+ Here is the call graph for this function:

◆ zwp_text_input_v3_enable()

void QWaylandTextInputV3Private::zwp_text_input_v3_enable ( Resource * resource)
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().

+ Here is the call graph for this function:

◆ zwp_text_input_v3_set_content_type()

void QWaylandTextInputV3Private::zwp_text_input_v3_set_content_type ( Resource * resource,
uint32_t hint,
uint32_t purpose )
overrideprotected

◆ zwp_text_input_v3_set_cursor_rectangle()

void QWaylandTextInputV3Private::zwp_text_input_v3_set_cursor_rectangle ( Resource * resource,
int32_t x,
int32_t y,
int32_t width,
int32_t height )
overrideprotected

◆ zwp_text_input_v3_set_surrounding_text()

void QWaylandTextInputV3Private::zwp_text_input_v3_set_surrounding_text ( Resource * resource,
const QString & text,
int32_t cursor,
int32_t anchor )
overrideprotected

◆ zwp_text_input_v3_set_text_change_cause()

void QWaylandTextInputV3Private::zwp_text_input_v3_set_text_change_cause ( Resource * resource,
uint32_t cause )
overrideprotected

Definition at line 409 of file qwaylandtextinputv3.cpp.

References Q_FUNC_INFO, Q_UNUSED, and qCDebug.

Member Data Documentation

◆ compositor

QWaylandCompositor* QWaylandTextInputV3Private::compositor = nullptr

Definition at line 63 of file qwaylandtextinputv3_p.h.

◆ currentPreeditString

QString QWaylandTextInputV3Private::currentPreeditString

Definition at line 71 of file qwaylandtextinputv3_p.h.

Referenced by sendInputMethodEvent(), and setFocus().

◆ currentState

QScopedPointer<QWaylandTextInputV3ClientState> QWaylandTextInputV3Private::currentState

◆ enabledSurfaces

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

◆ focus

QWaylandSurface* QWaylandTextInputV3Private::focus = nullptr

Definition at line 65 of file qwaylandtextinputv3_p.h.

Referenced by setFocus(), and zwp_text_input_v3_enable().

◆ focusDestroyListener

QWaylandDestroyListener QWaylandTextInputV3Private::focusDestroyListener

Definition at line 67 of file qwaylandtextinputv3_p.h.

Referenced by setFocus().

◆ focusResource

◆ inputPanelVisible

bool QWaylandTextInputV3Private::inputPanelVisible = false

Definition at line 69 of file qwaylandtextinputv3_p.h.

Referenced by setFocus(), and zwp_text_input_v3_enable().

◆ pendingState

◆ serials

QHash<Resource *, uint32_t> QWaylandTextInputV3Private::serials

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