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

\qmltype WaylandSeat \instantiates QWaylandSeat \inqmlmodule QtWayland.Compositor More...

#include <qwaylandseat.h>

+ Inheritance diagram for QWaylandSeat:
+ Collaboration diagram for QWaylandSeat:

Public Types

enum  CapabilityFlag { Pointer = 0x01 , Keyboard = 0x02 , Touch = 0x04 , DefaultCapabilities = Pointer | Keyboard | Touch }
 This enum type describes the capabilities of a QWaylandSeat. More...
 

Signals

void mouseFocusChanged (QWaylandView *newFocus, QWaylandView *oldFocus)
 This signal is emitted when the mouse focus has changed from oldFocus to newFocus.
 
void keyboardFocusChanged (QWaylandSurface *newFocus, QWaylandSurface *oldFocus)
 \qmlsignal void QtWayland.Compositor::WaylandSeat::keyboardFocusChanged(QWaylandSurface newFocus, QWaylandSurface oldFocus)
 
void cursorSurfaceRequested (QWaylandSurface *surface, int hotspotX, int hotspotY, QWaylandClient *client)
 
- 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.
 

Public Member Functions

 QWaylandSeat (QWaylandCompositor *compositor, CapabilityFlags capabilityFlags=DefaultCapabilities)
 Constructs a QWaylandSeat for the given compositor and capabilityFlags.
 
 ~QWaylandSeat () override
 Destroys the QWaylandSeat.
 
virtual void initialize ()
 Initializes parts of the seat corresponding to the capabilities set in the constructor, or through setCapabilities().
 
bool isInitialized () const
 Returns true if the QWaylandSeat is initialized; false otherwise.
 
void sendMousePressEvent (Qt::MouseButton button)
 Sends a mouse press event for button to the QWaylandSeat's pointer device.
 
void sendMouseReleaseEvent (Qt::MouseButton button)
 Sends a mouse release event for button to the QWaylandSeat's pointer device.
 
void sendMouseMoveEvent (QWaylandView *surface, const QPointF &localPos, const QPointF &outputSpacePos=QPointF())
 Sets the mouse focus to view and sends a mouse move event to the pointer device with the local position localPos and output space position outputSpacePos.
 
void sendMouseWheelEvent (Qt::Orientation orientation, int delta)
 Sends a mouse wheel event to the QWaylandSeat's pointer device with the given orientation and delta.
 
void sendKeyPressEvent (uint code)
 Sends a key press event with the key code to the keyboard device.
 
void sendKeyReleaseEvent (uint code)
 Sends a key release event with the key code to the keyboard device.
 
void sendFullKeyEvent (QKeyEvent *event)
 Sends the event to the keyboard device.
 
Q_INVOKABLE void sendKeyEvent (int qtKey, bool pressed)
 \qmlmethod void QtWayland.Compositor::WaylandSeat::sendKeyEvent(int qtKey, bool pressed)
 
 Q_REVISION (6, 7) Q_INVOKABLE void sendUnicodeKeyPressEvent(uint unicode)
 
 Q_REVISION (6, 7) Q_INVOKABLE void sendUnicodeKeyReleaseEvent(uint unicode)
 
uint sendTouchPointEvent (QWaylandSurface *surface, int id, const QPointF &point, Qt::TouchPointState state)
 Sends a touch point event to the surface on a touch device with the given id, point and state.
 
Q_INVOKABLE uint sendTouchPointPressed (QWaylandSurface *surface, int id, const QPointF &position)
 \qmlmethod uint QtWayland.Compositor::WaylandSeat::sendTouchPointPressed(WaylandSurface surface, int id, point position)
 
Q_INVOKABLE uint sendTouchPointReleased (QWaylandSurface *surface, int id, const QPointF &position)
 \qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchPointReleased(WaylandSurface surface, int id, point position)
 
Q_INVOKABLE uint sendTouchPointMoved (QWaylandSurface *surface, int id, const QPointF &position)
 \qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchPointMoved(WaylandSurface surface, int id, point position)
 
Q_INVOKABLE void sendTouchFrameEvent (QWaylandClient *client)
 \qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchFrameEvent(WaylandClient client)
 
Q_INVOKABLE void sendTouchCancelEvent (QWaylandClient *client)
 \qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchCancelEvent(WaylandClient client)
 
void sendFullTouchEvent (QWaylandSurface *surface, QTouchEvent *event)
 Sends the event to the specified surface on the touch device.
 
QWaylandPointerpointer () const
 Returns the pointer device for this QWaylandSeat.
 
QWaylandViewmouseFocus () const
 Returns the view that currently has mouse focus.
 
void setMouseFocus (QWaylandView *view)
 Sets the current mouse focus to view.
 
QWaylandKeyboardkeyboard () const
 Returns the keyboard for this input device.
 
QWaylandSurfacekeyboardFocus () const
 Returns the current focused surface for keyboard input.
 
bool setKeyboardFocus (QWaylandSurface *surface)
 Sets the current keyboard focus to surface.
 
QWaylandKeymapkeymap ()
 
QWaylandTouchtouch () const
 Returns the touch device for this QWaylandSeat.
 
QWaylandCompositorcompositor () const
 Returns the compositor for this QWaylandSeat.
 
QWaylandSeat::CapabilityFlags capabilities () const
 Returns the drag object for this QWaylandSeat.
 
virtual bool isOwner (QInputEvent *inputEvent) const
 
- Public Member Functions inherited from QWaylandObject
 ~QWaylandObject () override
 
QWaylandCompositorExtensionextension (const QByteArray &name)
 Returns the compositor extension which matches name if one has been registered with the QWaylandObject.
 
QWaylandCompositorExtensionextension (const wl_interface *interface)
 Returns the compositor extension which matches interface if one has been registered with the QWaylandObject.
 
QList< QWaylandCompositorExtension * > extensions () const
 Returns the list of compositor extensions that have been registered with this QWaylandObject.
 
void addExtension (QWaylandCompositorExtension *extension)
 Registers extension with this QWaylandObject.
 
void removeExtension (QWaylandCompositorExtension *extension)
 Removes extension from the list of registered extensions in this QWaylandObject, if it has previously been registered using \l{addExtension()}.
 
- 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 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.
 

Static Public Member Functions

static QWaylandSeatfromSeatResource (struct ::wl_resource *resource)
 Returns the QWaylandSeat corresponding to the resource.
 
- 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

QWaylandKeymapkeymap
 Returns the keymap object for this QWaylandSeat.
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 
- Protected Member Functions inherited from QWaylandObject
 QWaylandObject (QObject *parent=nullptr)
 Creates a QWaylandObject as a child of parent.
 
 QWaylandObject (QObjectPrivate &d, QObject *parent=nullptr)
 
- 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 inherited from QWaylandObject
QList< QWaylandCompositorExtension * > extension_vector
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Detailed Description

\qmltype WaylandSeat \instantiates QWaylandSeat \inqmlmodule QtWayland.Compositor

Since
5.8

Provides access to keyboard, mouse, and touch input.

The WaylandSeat type provides access to different types of user input and maintains a keyboard focus and a mouse pointer. It corresponds to the wl_seat interface in the Wayland protocol.

\inmodule QtWaylandCompositor

Since
5.8

The QWaylandSeat class provides access to keyboard, mouse, and touch input.

The QWaylandSeat provides access to different types of user input and maintains a keyboard focus and a mouse pointer. It corresponds to the wl_seat interface in the Wayland protocol.

Definition at line 30 of file qwaylandseat.h.

Member Enumeration Documentation

◆ CapabilityFlag

This enum type describes the capabilities of a QWaylandSeat.

\value Pointer The QWaylandSeat supports pointer input. \value Keyboard The QWaylandSeat supports keyboard input. \value Touch The QWaylandSeat supports touch input. \value DefaultCapabilities The QWaylandSeat has the default capabilities.

Enumerator
Pointer 
Keyboard 
Touch 
DefaultCapabilities 

Definition at line 47 of file qwaylandseat.h.

Constructor & Destructor Documentation

◆ QWaylandSeat()

QWaylandSeat::QWaylandSeat ( QWaylandCompositor * compositor,
CapabilityFlags capabilityFlags = DefaultCapabilities )

Constructs a QWaylandSeat for the given compositor and capabilityFlags.

Definition at line 150 of file qwaylandseat.cpp.

References compositor(), QObject::connect(), cursorSurfaceRequested(), d, and initialize().

+ Here is the call graph for this function:

◆ ~QWaylandSeat()

QWaylandSeat::~QWaylandSeat ( )
override

Destroys the QWaylandSeat.

Definition at line 166 of file qwaylandseat.cpp.

Member Function Documentation

◆ capabilities()

QWaylandSeat::CapabilityFlags QWaylandSeat::capabilities ( ) const

Returns the drag object for this QWaylandSeat.

Returns the capability flags for this QWaylandSeat.

Definition at line 766 of file qwaylandseat.cpp.

References d.

◆ compositor()

QWaylandCompositor * QWaylandSeat::compositor ( ) const

Returns the compositor for this QWaylandSeat.

Definition at line 746 of file qwaylandseat.cpp.

References d.

Referenced by QWaylandSeat(), QWaylandKeyboardPrivate::compositor(), QWaylandPointerPrivate::compositor(), and QWaylandTouchPrivate::compositor().

+ Here is the caller graph for this function:

◆ cursorSurfaceRequested

void QWaylandSeat::cursorSurfaceRequested ( QWaylandSurface * surface,
int hotspotX,
int hotspotY,
QWaylandClient * client )
signal

Referenced by QWaylandSeat(), and QWaylandPointerPrivate::pointer_set_cursor().

+ Here is the caller graph for this function:

◆ fromSeatResource()

◆ initialize()

void QWaylandSeat::initialize ( )
virtual

Initializes parts of the seat corresponding to the capabilities set in the constructor, or through setCapabilities().

Note
Normally, this function is called automatically after the seat and compositor have been created, so calling it manually is usually unnecessary.

Definition at line 178 of file qwaylandseat.cpp.

References d, QWaylandCompositorPrivate::get(), Keyboard, Pointer, and Touch.

Referenced by QWaylandSeat().

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

◆ isInitialized()

bool QWaylandSeat::isInitialized ( ) const

Returns true if the QWaylandSeat is initialized; false otherwise.

The value true indicates that it's now possible for clients to start using the seat.

Definition at line 198 of file qwaylandseat.cpp.

References d.

◆ isOwner()

bool QWaylandSeat::isOwner ( QInputEvent * inputEvent) const
virtual

Definition at line 775 of file qwaylandseat.cpp.

References Q_UNUSED.

Referenced by QWaylandCompositorPrivate::seatFor().

+ Here is the caller graph for this function:

◆ keyboard()

QWaylandKeyboard * QWaylandSeat::keyboard ( ) const

Returns the keyboard for this input device.

Definition at line 641 of file qwaylandseat.cpp.

References d.

Referenced by QtWayland::DataDevice::data_device_set_selection().

+ Here is the caller graph for this function:

◆ keyboardFocus()

QWaylandSurface * QWaylandSeat::keyboardFocus ( ) const

Returns the current focused surface for keyboard input.

Definition at line 650 of file qwaylandseat.cpp.

References d.

Referenced by QtWayland::DataDeviceManager::overrideSelection(), sendFullKeyEvent(), sendKeyEvent(), and setKeyboardFocus().

+ Here is the caller graph for this function:

◆ keyboardFocusChanged

void QWaylandSeat::keyboardFocusChanged ( QWaylandSurface * newFocus,
QWaylandSurface * oldFocus )
signal

\qmlsignal void QtWayland.Compositor::WaylandSeat::keyboardFocusChanged(QWaylandSurface newFocus, QWaylandSurface oldFocus)

This signal is emitted when setKeyboardFocus() is called or when a WaylandQuickItem has focus and the user starts pressing keys.

newFocus has the surface that received keyboard focus; or nullptr if no surface has focus. oldFocus has the surface that lost keyboard focus; or nullptr if no surface had focus.

This signal is emitted when setKeyboardFocus() is called.

newFocus has the surface that received keyboard focus; or nullptr if no surface has focus. oldFocus has the surface that lost keyboard focus; or nullptr if no surface had focus.

Referenced by setKeyboardFocus().

+ Here is the caller graph for this function:

◆ keymap()

QWaylandKeymap * QWaylandSeat::keymap ( )

◆ mouseFocus()

QWaylandView * QWaylandSeat::mouseFocus ( ) const

Returns the view that currently has mouse focus.

Definition at line 717 of file qwaylandseat.cpp.

References d.

Referenced by QWaylandQuickItem::touchEvent().

+ Here is the caller graph for this function:

◆ mouseFocusChanged

void QWaylandSeat::mouseFocusChanged ( QWaylandView * newFocus,
QWaylandView * oldFocus )
signal

This signal is emitted when the mouse focus has changed from oldFocus to newFocus.

Referenced by QWaylandPointer::QWaylandPointer(), and setMouseFocus().

+ Here is the caller graph for this function:

◆ pointer()

QWaylandPointer * QWaylandSeat::pointer ( ) const

Returns the pointer device for this QWaylandSeat.

Definition at line 699 of file qwaylandseat.cpp.

References d.

◆ Q_REVISION() [1/2]

QWaylandSeat::Q_REVISION ( 6 ,
7  )

◆ Q_REVISION() [2/2]

QWaylandSeat::Q_REVISION ( 6 ,
7  )

◆ sendFullKeyEvent()

void QWaylandSeat::sendFullKeyEvent ( QKeyEvent * event)

Sends the event to the keyboard device.

Note
The event should correspond to an actual keyboard key in the current mapping. For example, Qt::Key_Exclam is normally not a separate key: with most keyboards the exclamation mark is produced with Shift + 1. In that case, to send an exclamation mark key press event, use {QKeyEvent(QEvent::KeyPress, Qt::Key_1, Qt::ShiftModifier)}.

Definition at line 441 of file qwaylandseat.cpp.

References d, enabled, QWaylandCompositorExtensionTemplate< QtKeyExtensionGlobal >::findIn(), QWaylandCompositorExtensionTemplate< QWaylandTextInputV3 >::findIn(), QWaylandCompositorExtensionTemplate< QWaylandQtTextInputMethod >::findIn(), QWaylandCompositorExtensionTemplate< QWaylandTextInput >::findIn(), QWaylandKeyboardPrivate::get(), keyboardFocus(), QEvent::KeyPress, QEvent::KeyRelease, QtWayland::QtKeyExtensionGlobal::postQtKeyEvent(), QWaylandClient::QtTextInputMethodV1, qWarning, QWaylandQtTextInputMethod::sendKeyEvent(), QWaylandTextInput::sendKeyEvent(), QWaylandTextInputV3::sendKeyEvent(), testFlag(), QWaylandClient::TextInputV2, and QWaylandClient::TextInputV3.

Referenced by QWaylandQuickItem::keyPressEvent(), and QWaylandQuickItem::keyReleaseEvent().

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

◆ sendFullTouchEvent()

void QWaylandSeat::sendFullTouchEvent ( QWaylandSurface * surface,
QTouchEvent * event )

Sends the event to the specified surface on the touch device.

Warning
This API will automatically map \l QEventPoint::id() to a sequential id before sending it to the client. It should therefore not be used in combination with the other API using explicit ids, as collisions might occur.

Definition at line 423 of file qwaylandseat.cpp.

References d.

Referenced by QWaylandQuickItem::touchEvent().

+ Here is the caller graph for this function:

◆ sendKeyEvent()

void QWaylandSeat::sendKeyEvent ( int qtKey,
bool pressed )

\qmlmethod void QtWayland.Compositor::WaylandSeat::sendKeyEvent(int qtKey, bool pressed)

Since
5.12

Sends a key press (if pressed is true) or release (if pressed is false) event of a key qtKey to the keyboard device.

Sends a key press (if pressed is true) or release (if pressed is false) event of a key qtKey to the keyboard device.

Note
This function does not support key events that require modifiers, such as Qt::Key_Exclam. Use \l{sendFullKeyEvent} instead.
Since
5.12

Definition at line 522 of file qwaylandseat.cpp.

References d, keyboardFocus(), qtKey(), and qWarning.

+ Here is the call graph for this function:

◆ sendKeyPressEvent()

void QWaylandSeat::sendKeyPressEvent ( uint code)

Sends a key press event with the key code to the keyboard device.

Definition at line 244 of file qwaylandseat.cpp.

References d.

◆ sendKeyReleaseEvent()

void QWaylandSeat::sendKeyReleaseEvent ( uint code)

Sends a key release event with the key code to the keyboard device.

Definition at line 253 of file qwaylandseat.cpp.

References d.

◆ sendMouseMoveEvent()

void QWaylandSeat::sendMouseMoveEvent ( QWaylandView * surface,
const QPointF & localPos,
const QPointF & outputSpacePos = QPointF() )

Sets the mouse focus to view and sends a mouse move event to the pointer device with the local position localPos and output space position outputSpacePos.

Definition at line 226 of file qwaylandseat.cpp.

References d, and view.

Referenced by QWaylandQuickItem::hoverEnterEvent(), QWaylandQuickItem::hoverMoveEvent(), QWaylandQuickItem::mouseMoveEvent(), QWaylandQuickItem::mousePressEvent(), QWaylandQuickItem::sendMouseMoveEvent(), and QWaylandQuickItem::touchEvent().

+ Here is the caller graph for this function:

◆ sendMousePressEvent()

void QWaylandSeat::sendMousePressEvent ( Qt::MouseButton button)

Sends a mouse press event for button to the QWaylandSeat's pointer device.

Definition at line 207 of file qwaylandseat.cpp.

References button, and d.

Referenced by QWaylandQuickItem::mousePressEvent().

+ Here is the caller graph for this function:

◆ sendMouseReleaseEvent()

void QWaylandSeat::sendMouseReleaseEvent ( Qt::MouseButton button)

Sends a mouse release event for button to the QWaylandSeat's pointer device.

Definition at line 216 of file qwaylandseat.cpp.

References button, and d.

Referenced by QWaylandQuickItem::mouseReleaseEvent().

+ Here is the caller graph for this function:

◆ sendMouseWheelEvent()

void QWaylandSeat::sendMouseWheelEvent ( Qt::Orientation orientation,
int delta )

Sends a mouse wheel event to the QWaylandSeat's pointer device with the given orientation and delta.

Definition at line 235 of file qwaylandseat.cpp.

References d.

◆ sendTouchCancelEvent()

void QWaylandSeat::sendTouchCancelEvent ( QWaylandClient * client)

\qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchCancelEvent(WaylandClient client)

Sends a cancel event to the touch device of a client.

Sends a cancel event to the touch device of a client.

Definition at line 408 of file qwaylandseat.cpp.

References d.

Referenced by QWaylandQuickItem::touchUngrabEvent().

+ Here is the caller graph for this function:

◆ sendTouchFrameEvent()

void QWaylandSeat::sendTouchFrameEvent ( QWaylandClient * client)

\qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchFrameEvent(WaylandClient client)

Sends a frame event to the touch device of a client to indicate the end of a series of touch up, down, and motion events.

Sends a frame event to the touch device of a client to indicate the end of a series of touch up, down, and motion events.

Definition at line 392 of file qwaylandseat.cpp.

References d.

◆ sendTouchPointEvent()

uint QWaylandSeat::sendTouchPointEvent ( QWaylandSurface * surface,
int id,
const QPointF & point,
Qt::TouchPointState state )

Sends a touch point event to the surface on a touch device with the given id, point and state.

Warning
This API should not be used in combination with forwarding of touch events using \l QWaylandQuickItem::touchEventsEnabled or \l sendFullTouchEvent, as it might lead to conflicting touch ids.

Returns the serial for the touch up or touch down event.

Definition at line 269 of file qwaylandseat.cpp.

References d, and state.

Referenced by sendTouchPointMoved(), sendTouchPointPressed(), and sendTouchPointReleased().

+ Here is the caller graph for this function:

◆ sendTouchPointMoved()

uint QWaylandSeat::sendTouchPointMoved ( QWaylandSurface * surface,
int id,
const QPointF & position )

\qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchPointMoved(WaylandSurface surface, int id, point position)

Sends a touch moved event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.

Returns the serial for the touch motion event.

Sends a touch moved event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l QWaylandQuickItem::touchEventsEnabled or \l sendFullTouchEvent, as it might lead to conflicting touch ids.

Returns the serial for the touch motion event.

Definition at line 376 of file qwaylandseat.cpp.

References position(), sendTouchPointEvent(), and Qt::TouchPointMoved.

+ Here is the call graph for this function:

◆ sendTouchPointPressed()

uint QWaylandSeat::sendTouchPointPressed ( QWaylandSurface * surface,
int id,
const QPointF & position )

\qmlmethod uint QtWayland.Compositor::WaylandSeat::sendTouchPointPressed(WaylandSurface surface, int id, point position)

Sends a touch pressed event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.

Returns the serial for the touch down event.

Sends a touch pressed event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l QWaylandQuickItem::touchEventsEnabled or \l sendFullTouchEvent, as it might lead to conflicting touch ids.

Returns the serial for the touch down event.

Definition at line 308 of file qwaylandseat.cpp.

References position(), sendTouchPointEvent(), and Qt::TouchPointPressed.

+ Here is the call graph for this function:

◆ sendTouchPointReleased()

uint QWaylandSeat::sendTouchPointReleased ( QWaylandSurface * surface,
int id,
const QPointF & position )

\qmlmethod void QtWayland.Compositor::WaylandSeat::sendTouchPointReleased(WaylandSurface surface, int id, point position)

Sends a touch released event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l WaylandQuickItem::touchEventsEnabled, as it might lead to conflicting touch ids.

Returns the serial for the touch up event.

Sends a touch released event for the touch point id on surface with position position.

Note
You need to send a touch frame event when you are done sending touch events.
Warning
This API should not be used in combination with forwarding of touch events using \l QWaylandQuickItem::touchEventsEnabled or \l sendFullTouchEvent, as it might lead to conflicting touch ids.

Returns the serial for the touch up event.

Definition at line 342 of file qwaylandseat.cpp.

References position(), sendTouchPointEvent(), and Qt::TouchPointReleased.

+ Here is the call graph for this function:

◆ setKeyboardFocus()

bool QWaylandSeat::setKeyboardFocus ( QWaylandSurface * surface)

Sets the current keyboard focus to surface.

Returns a boolean indicating if the operation was successful.

Definition at line 664 of file qwaylandseat.cpp.

References QWaylandSurface::client, d, emit, QWaylandSurface::isDestroyed(), keyboardFocus(), and keyboardFocusChanged().

Referenced by QWaylandQuickItem::keyPressEvent(), and QWaylandQtShellSurface::setActive().

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

◆ setMouseFocus()

void QWaylandSeat::setMouseFocus ( QWaylandView * view)

Sets the current mouse focus to view.

Definition at line 726 of file qwaylandseat.cpp.

References QObject::connect(), d, QObject::destroyed(), disconnect(), emit, mouseFocusChanged(), and view.

Referenced by QWaylandQuickItem::hoverLeaveEvent().

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

◆ touch()

QWaylandTouch * QWaylandSeat::touch ( ) const

Returns the touch device for this QWaylandSeat.

Definition at line 708 of file qwaylandseat.cpp.

References d.

Property Documentation

◆ keymap

QWaylandSeat::keymap
read

Returns the keymap object for this QWaylandSeat.

This property holds the keymap object.

A keymap provides a way to translate actual key scan codes into a meaningful value. For example, if you use a keymap with a Norwegian layout, the key to the right of the letter L produces an Ø.

Keymaps can also be used to customize key functions, such as to specify whether Control and CAPS lock should be swapped, and so on.

Definition at line 39 of file qwaylandseat.h.

Referenced by QWaylandKeyboard::QWaylandKeyboard().


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