Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWaylandTextInputV4Private Class Reference

#include <qwaylandtextinputv4_p.h>

+ Inheritance diagram for QWaylandTextInputV4Private:
+ Collaboration diagram for QWaylandTextInputV4Private:

Public Member Functions

 QWaylandTextInputV4Private (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)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () 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
 
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< QWaylandTextInputV4ClientStatecurrentState
 
QScopedPointer< QWaylandTextInputV4ClientStatependingState
 
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 unused: 21
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

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

- 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 qwaylandtextinputv4_p.h.

Constructor & Destructor Documentation

◆ QWaylandTextInputV4Private()

QWaylandTextInputV4Private::QWaylandTextInputV4Private ( QWaylandCompositor compositor)
explicit

Definition at line 82 of file qwaylandtextinputv4.cpp.

Member Function Documentation

◆ inputMethodQuery()

◆ sendInputMethodEvent()

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.

+ Here is the call graph for this function:

◆ sendKeyEvent()

void QWaylandTextInputV4Private::sendKeyEvent ( QKeyEvent event)

Definition at line 134 of file qwaylandtextinputv4.cpp.

References focusResource, Q_FUNC_INFO, qCDebug, and serial.

◆ setFocus()

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

+ Here is the call graph for this function:

◆ zwp_text_input_v4_bind_resource()

void QWaylandTextInputV4Private::zwp_text_input_v4_bind_resource ( Resource *  resource)
overrideprotected

Definition at line 228 of file qwaylandtextinputv4.cpp.

References Q_FUNC_INFO, Q_UNUSED, and qCDebug.

◆ zwp_text_input_v4_commit()

void QWaylandTextInputV4Private::zwp_text_input_v4_commit ( Resource *  resource)
overrideprotected

◆ zwp_text_input_v4_destroy()

void QWaylandTextInputV4Private::zwp_text_input_v4_destroy ( Resource *  resource)
overrideprotected

Definition at line 243 of file qwaylandtextinputv4.cpp.

References Q_FUNC_INFO, and qCDebug.

◆ zwp_text_input_v4_destroy_resource()

void QWaylandTextInputV4Private::zwp_text_input_v4_destroy_resource ( Resource *  resource)
overrideprotected

Definition at line 235 of file qwaylandtextinputv4.cpp.

References focusResource, Q_FUNC_INFO, and qCDebug.

◆ zwp_text_input_v4_disable()

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

+ Here is the call graph for this function:

◆ zwp_text_input_v4_enable()

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

+ Here is the call graph for this function:

◆ zwp_text_input_v4_set_content_type()

void QWaylandTextInputV4Private::zwp_text_input_v4_set_content_type ( Resource *  resource,
uint32_t  hint,
uint32_t  purpose 
)
overrideprotected

◆ zwp_text_input_v4_set_cursor_rectangle()

void QWaylandTextInputV4Private::zwp_text_input_v4_set_cursor_rectangle ( Resource *  resource,
int32_t  x,
int32_t  y,
int32_t  width,
int32_t  height 
)
overrideprotected

◆ zwp_text_input_v4_set_surrounding_text()

void QWaylandTextInputV4Private::zwp_text_input_v4_set_surrounding_text ( Resource *  resource,
const QString text,
int32_t  cursor,
int32_t  anchor 
)
overrideprotected

◆ zwp_text_input_v4_set_text_change_cause()

void QWaylandTextInputV4Private::zwp_text_input_v4_set_text_change_cause ( Resource *  resource,
uint32_t  cause 
)
overrideprotected

Definition at line 422 of file qwaylandtextinputv4.cpp.

References Q_FUNC_INFO, Q_UNUSED, and qCDebug.

Member Data Documentation

◆ compositor

QWaylandCompositor* QWaylandTextInputV4Private::compositor = nullptr

Definition at line 63 of file qwaylandtextinputv4_p.h.

◆ currentPreeditString

QString QWaylandTextInputV4Private::currentPreeditString

Definition at line 71 of file qwaylandtextinputv4_p.h.

Referenced by sendInputMethodEvent(), and setFocus().

◆ currentState

QScopedPointer<QWaylandTextInputV4ClientState> QWaylandTextInputV4Private::currentState

◆ enabledSurfaces

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

◆ focus

QWaylandSurface* QWaylandTextInputV4Private::focus = nullptr

Definition at line 65 of file qwaylandtextinputv4_p.h.

Referenced by setFocus(), and zwp_text_input_v4_enable().

◆ focusDestroyListener

QWaylandDestroyListener QWaylandTextInputV4Private::focusDestroyListener

Definition at line 67 of file qwaylandtextinputv4_p.h.

Referenced by setFocus().

◆ focusResource

◆ inputPanelVisible

bool QWaylandTextInputV4Private::inputPanelVisible = false

Definition at line 69 of file qwaylandtextinputv4_p.h.

Referenced by setFocus(), and zwp_text_input_v4_enable().

◆ pendingState

◆ serial

uint32_t QWaylandTextInputV4Private::serial = 0

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