Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtWaylandClient::QWaylandInputDevice Class Reference

#include <qwaylandinputdevice_p.h>

Inheritance diagram for QtWaylandClient::QWaylandInputDevice:
Collaboration diagram for QtWaylandClient::QWaylandInputDevice:

Classes

class  Keyboard
class  Pointer
class  Touch

Public Member Functions

 QWaylandInputDevice (QWaylandDisplay *display, int version, uint32_t id)
 ~QWaylandInputDevice () override
uint32_t id () const
uint32_t capabilities () const
QString seatname () const
QWaylandDisplaydisplay () const
struct::wl_seat * wl_seat ()
void handleStartDrag ()
void handleEndDrag ()
void setTextInput (QWaylandTextInputInterface *textInput)
QWaylandTextInputInterfacetextInput () const
void setTextInputMethod (QWaylandTextInputMethod *textInputMethod)
QWaylandTextInputMethodtextInputMethod () const
void removeMouseButtonFromState (Qt::MouseButton button)
QWaylandWindowpointerFocus () const
QWaylandWindowkeyboardFocus () const
QWaylandWindowtouchFocus () const
QList< int > possibleKeys (const QKeyEvent *event) const
QPointF pointerSurfacePosition () const
Qt::KeyboardModifiers modifiers () const
uint32_t serial () const
virtual KeyboardcreateKeyboard (QWaylandInputDevice *device)
virtual PointercreatePointer (QWaylandInputDevice *device)
virtual TouchcreateTouch (QWaylandInputDevice *device)
Keyboardkeyboard () const
Pointerpointer () const
QWaylandPointerGestureSwipepointerGestureSwipe () const
QWaylandPointerGesturePinchpointerGesturePinch () const
Touchtouch () const
Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
QString objectName () const
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
QBindable< QStringbindableObjectName ()
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
bool isQmlObjectType () const
 Returns whether the object has been created by the QML engine or ownership has been explicitly set via QJSEngine::setObjectOwnership().
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
QThreadthread () const
 Returns the thread in which the object lives.
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
void killTimer (int id)
 Kills the timer with timer identifier, id.
void killTimer (Qt::TimerId id)
template<typename T>
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
template<typename T>
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
template<typename T>
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const QObjectListchildren () const
 Returns a list of child objects.
void setParent (QObject *parent)
 Makes the object a child of parent.
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
bool disconnect (const QObject *receiver, const char *member=nullptr) const
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
bool setProperty (const char *name, QVariant &&value)
QVariant property (const char *name) const
 Returns the value of the object's name property.
QList< QByteArraydynamicPropertyNames () const
QBindingStoragebindingStorage ()
const QBindingStoragebindingStorage () const
QObjectparent () const
 Returns a pointer to the parent object.
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.

Protected Member Functions

void seat_capabilities (uint32_t caps) override
void seat_name (const QString &name) override
void handleTouchPoint (int id, QEventPoint::State state, const QPointF &surfacePosition=QPoint())
Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
int senderSignalIndex () const
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
bool isSignalConnected (const QMetaMethod &signal) const
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
virtual void connectNotify (const QMetaMethod &signal)
virtual void disconnectNotify (const QMetaMethod &signal)
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)

Protected Attributes

QWaylandDisplaymQDisplay = nullptr
struct wl_display * mDisplay = nullptr
uint32_t mId = -1
uint32_t mCaps = 0
QString mSeatName
QScopedPointer< KeyboardmKeyboard
QScopedPointer< PointermPointer
QScopedPointer< QWaylandPointerGestureSwipemPointerGestureSwipe
QScopedPointer< QWaylandPointerGesturePinchmPointerGesturePinch
QScopedPointer< TouchmTouch
QScopedPointer< QWaylandTextInputInterfacemTextInput
QScopedPointer< QWaylandTextInputMethodmTextInputMethod
uint32_t mTime = 0
uint32_t mSerial = 0
QPointingDevicemTouchDevice = nullptr
QPointingDevicemTouchPadDevice = nullptr
Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr

Friends

class QWaylandTouchExtension
class QWaylandQtKeyExtension
class QWaylandPointerGestureSwipe
class QWaylandPointerGesturePinch
class QWaylandWindow
class QWaylandTabletToolV2

Additional Inherited Members

Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
template<typename Func1>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
Properties inherited from QObject
QString objectName
 the name of this object

Detailed Description

Definition at line 88 of file qwaylandinputdevice_p.h.

Constructor & Destructor Documentation

◆ QWaylandInputDevice()

QtWaylandClient::QWaylandInputDevice::QWaylandInputDevice ( QWaylandDisplay * display,
int version,
uint32_t id )

Definition at line 347 of file qwaylandinputdevice.cpp.

◆ ~QWaylandInputDevice()

QtWaylandClient::QWaylandInputDevice::~QWaylandInputDevice ( )
override

Definition at line 393 of file qwaylandinputdevice.cpp.

Member Function Documentation

◆ capabilities()

uint32_t QtWaylandClient::QWaylandInputDevice::capabilities ( ) const
inline

Definition at line 102 of file qwaylandinputdevice_p.h.

◆ createKeyboard()

QWaylandInputDevice::Keyboard * QtWaylandClient::QWaylandInputDevice::createKeyboard ( QWaylandInputDevice * device)
virtual

Definition at line 454 of file qwaylandinputdevice.cpp.

◆ createPointer()

QWaylandInputDevice::Pointer * QtWaylandClient::QWaylandInputDevice::createPointer ( QWaylandInputDevice * device)
virtual

Definition at line 459 of file qwaylandinputdevice.cpp.

◆ createTouch()

QWaylandInputDevice::Touch * QtWaylandClient::QWaylandInputDevice::createTouch ( QWaylandInputDevice * device)
virtual

Definition at line 464 of file qwaylandinputdevice.cpp.

◆ display()

QWaylandDisplay * QtWaylandClient::QWaylandInputDevice::display ( ) const
inline

Definition at line 105 of file qwaylandinputdevice_p.h.

◆ handleEndDrag()

void QtWaylandClient::QWaylandInputDevice::handleEndDrag ( )

Definition at line 494 of file qwaylandinputdevice.cpp.

◆ handleStartDrag()

void QtWaylandClient::QWaylandInputDevice::handleStartDrag ( )

Definition at line 502 of file qwaylandinputdevice.cpp.

◆ handleTouchPoint()

void QtWaylandClient::QWaylandInputDevice::handleTouchPoint ( int id,
QEventPoint::State state,
const QPointF & surfacePosition = QPoint() )
protected

Definition at line 1523 of file qwaylandinputdevice.cpp.

◆ id()

uint32_t QtWaylandClient::QWaylandInputDevice::id ( ) const
inline

Definition at line 101 of file qwaylandinputdevice_p.h.

◆ keyboard()

QWaylandInputDevice::Keyboard * QtWaylandClient::QWaylandInputDevice::keyboard ( ) const

Definition at line 469 of file qwaylandinputdevice.cpp.

◆ keyboardFocus()

QWaylandWindow * QtWaylandClient::QWaylandInputDevice::keyboardFocus ( ) const

Definition at line 587 of file qwaylandinputdevice.cpp.

◆ modifiers()

Qt::KeyboardModifiers QtWaylandClient::QWaylandInputDevice::modifiers ( ) const

Definition at line 613 of file qwaylandinputdevice.cpp.

◆ pointer()

QWaylandInputDevice::Pointer * QtWaylandClient::QWaylandInputDevice::pointer ( ) const

Definition at line 474 of file qwaylandinputdevice.cpp.

◆ pointerFocus()

QWaylandWindow * QtWaylandClient::QWaylandInputDevice::pointerFocus ( ) const

Definition at line 582 of file qwaylandinputdevice.cpp.

◆ pointerGesturePinch()

QWaylandPointerGesturePinch * QtWaylandClient::QWaylandInputDevice::pointerGesturePinch ( ) const

Definition at line 484 of file qwaylandinputdevice.cpp.

◆ pointerGestureSwipe()

QWaylandPointerGestureSwipe * QtWaylandClient::QWaylandInputDevice::pointerGestureSwipe ( ) const

Definition at line 479 of file qwaylandinputdevice.cpp.

◆ pointerSurfacePosition()

QPointF QtWaylandClient::QWaylandInputDevice::pointerSurfacePosition ( ) const

Definition at line 597 of file qwaylandinputdevice.cpp.

◆ possibleKeys()

QList< int > QtWaylandClient::QWaylandInputDevice::possibleKeys ( const QKeyEvent * event) const

Definition at line 602 of file qwaylandinputdevice.cpp.

◆ removeMouseButtonFromState()

void QtWaylandClient::QWaylandInputDevice::removeMouseButtonFromState ( Qt::MouseButton button)

Definition at line 576 of file qwaylandinputdevice.cpp.

◆ seat_capabilities()

void QtWaylandClient::QWaylandInputDevice::seat_capabilities ( uint32_t caps)
overrideprotected

Definition at line 401 of file qwaylandinputdevice.cpp.

◆ seat_name()

void QtWaylandClient::QWaylandInputDevice::seat_name ( const QString & name)
overrideprotected

Definition at line 449 of file qwaylandinputdevice.cpp.

◆ seatname()

QString QtWaylandClient::QWaylandInputDevice::seatname ( ) const
inline

Definition at line 103 of file qwaylandinputdevice_p.h.

◆ serial()

uint32_t QtWaylandClient::QWaylandInputDevice::serial ( ) const
inline

Definition at line 225 of file qwaylandinputdevice_p.h.

◆ setTextInput()

void QtWaylandClient::QWaylandInputDevice::setTextInput ( QWaylandTextInputInterface * textInput)

Definition at line 544 of file qwaylandinputdevice.cpp.

◆ setTextInputMethod()

void QtWaylandClient::QWaylandInputDevice::setTextInputMethod ( QWaylandTextInputMethod * textInputMethod)

Definition at line 561 of file qwaylandinputdevice.cpp.

◆ textInput()

QWaylandTextInputInterface * QtWaylandClient::QWaylandInputDevice::textInput ( ) const

Definition at line 566 of file qwaylandinputdevice.cpp.

◆ textInputMethod()

QWaylandTextInputMethod * QtWaylandClient::QWaylandInputDevice::textInputMethod ( ) const

Definition at line 571 of file qwaylandinputdevice.cpp.

◆ touch()

QWaylandInputDevice::Touch * QtWaylandClient::QWaylandInputDevice::touch ( ) const

Definition at line 489 of file qwaylandinputdevice.cpp.

◆ touchFocus()

QWaylandWindow * QtWaylandClient::QWaylandInputDevice::touchFocus ( ) const

Definition at line 592 of file qwaylandinputdevice.cpp.

◆ wl_seat()

struct::wl_seat * QtWaylandClient::QWaylandInputDevice::wl_seat ( )
inline

Definition at line 106 of file qwaylandinputdevice_p.h.

◆ QWaylandPointerGesturePinch

friend class QWaylandPointerGesturePinch
friend

Definition at line 220 of file qwaylandinputdevice_p.h.

◆ QWaylandPointerGestureSwipe

friend class QWaylandPointerGestureSwipe
friend

Definition at line 219 of file qwaylandinputdevice_p.h.

◆ QWaylandQtKeyExtension

friend class QWaylandQtKeyExtension
friend

Definition at line 218 of file qwaylandinputdevice_p.h.

◆ QWaylandTabletToolV2

friend class QWaylandTabletToolV2
friend

Definition at line 222 of file qwaylandinputdevice_p.h.

◆ QWaylandTouchExtension

friend class QWaylandTouchExtension
friend

Definition at line 217 of file qwaylandinputdevice_p.h.

◆ QWaylandWindow

friend class QWaylandWindow
friend

Definition at line 221 of file qwaylandinputdevice_p.h.

Member Data Documentation

◆ mCaps

uint32_t QtWaylandClient::QWaylandInputDevice::mCaps = 0
protected

Definition at line 169 of file qwaylandinputdevice_p.h.

◆ mDisplay

struct wl_display* QtWaylandClient::QWaylandInputDevice::mDisplay = nullptr
protected

Definition at line 166 of file qwaylandinputdevice_p.h.

◆ mId

uint32_t QtWaylandClient::QWaylandInputDevice::mId = -1
protected

Definition at line 168 of file qwaylandinputdevice_p.h.

◆ mKeyboard

QScopedPointer<Keyboard> QtWaylandClient::QWaylandInputDevice::mKeyboard
protected

Definition at line 195 of file qwaylandinputdevice_p.h.

◆ mPointer

QScopedPointer<Pointer> QtWaylandClient::QWaylandInputDevice::mPointer
protected

Definition at line 196 of file qwaylandinputdevice_p.h.

◆ mPointerGesturePinch

QScopedPointer<QWaylandPointerGesturePinch> QtWaylandClient::QWaylandInputDevice::mPointerGesturePinch
protected

Definition at line 198 of file qwaylandinputdevice_p.h.

◆ mPointerGestureSwipe

QScopedPointer<QWaylandPointerGestureSwipe> QtWaylandClient::QWaylandInputDevice::mPointerGestureSwipe
protected

Definition at line 197 of file qwaylandinputdevice_p.h.

◆ mQDisplay

QWaylandDisplay* QtWaylandClient::QWaylandInputDevice::mQDisplay = nullptr
protected

Definition at line 165 of file qwaylandinputdevice_p.h.

◆ mSeatName

QString QtWaylandClient::QWaylandInputDevice::mSeatName
protected

Definition at line 170 of file qwaylandinputdevice_p.h.

◆ mSerial

uint32_t QtWaylandClient::QWaylandInputDevice::mSerial = 0
protected

Definition at line 208 of file qwaylandinputdevice_p.h.

◆ mTextInput

QScopedPointer<QWaylandTextInputInterface> QtWaylandClient::QWaylandInputDevice::mTextInput
protected

Definition at line 201 of file qwaylandinputdevice_p.h.

◆ mTextInputMethod

QScopedPointer<QWaylandTextInputMethod> QtWaylandClient::QWaylandInputDevice::mTextInputMethod
protected

Definition at line 202 of file qwaylandinputdevice_p.h.

◆ mTime

uint32_t QtWaylandClient::QWaylandInputDevice::mTime = 0
protected

Definition at line 207 of file qwaylandinputdevice_p.h.

◆ mTouch

QScopedPointer<Touch> QtWaylandClient::QWaylandInputDevice::mTouch
protected

Definition at line 199 of file qwaylandinputdevice_p.h.

◆ mTouchDevice

QPointingDevice* QtWaylandClient::QWaylandInputDevice::mTouchDevice = nullptr
protected

Definition at line 214 of file qwaylandinputdevice_p.h.

◆ mTouchPadDevice

QPointingDevice* QtWaylandClient::QWaylandInputDevice::mTouchPadDevice = nullptr
protected

Definition at line 215 of file qwaylandinputdevice_p.h.


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