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>.
|
The QWindowSystemInterface provides an event queue for the QPA platform. More...
#include <qwindowsysteminterface.h>
Classes | |
struct | AsynchronousDelivery |
struct | DefaultDelivery |
struct | SynchronousDelivery |
struct | TouchPoint |
Static Public Member Functions | |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleMouseEvent (QWindow *window, const QPointF &local, const QPointF &global, Qt::MouseButtons state, Qt::MouseButton button, QEvent::Type type, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleMouseEvent (QWindow *window, const QPointingDevice *device, const QPointF &local, const QPointF &global, Qt::MouseButtons state, Qt::MouseButton button, QEvent::Type type, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleMouseEvent (QWindow *window, ulong timestamp, const QPointF &local, const QPointF &global, Qt::MouseButtons state, Qt::MouseButton button, QEvent::Type type, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleMouseEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, const QPointF &local, const QPointF &global, Qt::MouseButtons state, Qt::MouseButton button, QEvent::Type type, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized) |
static bool | handleShortcutEvent (QWindow *window, ulong timestamp, int k, Qt::KeyboardModifiers mods, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleKeyEvent (QWindow *window, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleKeyEvent (QWindow *window, ulong timestamp, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1) |
static bool | handleExtendedKeyEvent (QWindow *window, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1) |
static bool | handleExtendedKeyEvent (QWindow *window, ulong timestamp, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1) |
static bool | handleExtendedKeyEvent (QWindow *window, ulong timestamp, const QInputDevice *device, QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, quint32 nativeScanCode, quint32 nativeVirtualKey, quint32 nativeModifiers, const QString &text=QString(), bool autorep=false, ushort count=1) |
static bool | handleWheelEvent (QWindow *window, const QPointF &local, const QPointF &global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::ScrollPhase phase=Qt::NoScrollPhase, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized) |
static bool | handleWheelEvent (QWindow *window, ulong timestamp, const QPointF &local, const QPointF &global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::ScrollPhase phase=Qt::NoScrollPhase, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized, bool inverted=false) |
static bool | handleWheelEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, const QPointF &local, const QPointF &global, QPoint pixelDelta, QPoint angleDelta, Qt::KeyboardModifiers mods=Qt::NoModifier, Qt::ScrollPhase phase=Qt::NoScrollPhase, Qt::MouseEventSource source=Qt::MouseEventNotSynthesized, bool inverted=false) |
static void | registerInputDevice (const QInputDevice *device) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleTouchEvent (QWindow *window, const QPointingDevice *device, const QList< struct TouchPoint > &points, Qt::KeyboardModifiers mods=Qt::NoModifier) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleTouchEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, const QList< struct TouchPoint > &points, Qt::KeyboardModifiers mods=Qt::NoModifier) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleTouchCancelEvent (QWindow *window, const QPointingDevice *device, Qt::KeyboardModifiers mods=Qt::NoModifier) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleTouchCancelEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, Qt::KeyboardModifiers mods=Qt::NoModifier) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleGeometryChange (QWindow *window, const QRect &newRect) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleExposeEvent (QWindow *window, const QRegion ®ion) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handlePaintEvent (QWindow *window, const QRegion ®ion) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleCloseEvent (QWindow *window) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleEnterEvent (QWindow *window, const QPointF &local=QPointF(), const QPointF &global=QPointF()) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleLeaveEvent (QWindow *window) |
static void | handleEnterLeaveEvent (QWindow *enter, QWindow *leave, const QPointF &local=QPointF(), const QPointF &global=QPointF()) |
This method can be used to ensure leave and enter events are both in queue when moving from one QWindow to another. | |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleFocusWindowChanged (QWindow *window, Qt::FocusReason r=Qt::OtherFocusReason) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleWindowStateChanged (QWindow *window, Qt::WindowStates newState, int oldState=-1) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleWindowScreenChanged (QWindow *window, QScreen *newScreen) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleWindowDevicePixelRatioChanged (QWindow *window) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleSafeAreaMarginsChanged (QWindow *window) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleApplicationStateChanged (Qt::ApplicationState newState, bool forcePropagate=false) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static bool | handleApplicationTermination () |
static bool | handleNativeEvent (QWindow *window, const QByteArray &eventType, void *message, qintptr *result) |
Passes a native event identified by eventType to the window. | |
static void | handleScreenAdded (QPlatformScreen *screen, bool isPrimary=false) |
Should be called by the implementation whenever a new screen is added. | |
static void | handleScreenRemoved (QPlatformScreen *screen) |
Should be called by the implementation whenever a screen is removed. | |
static void | handlePrimaryScreenChanged (QPlatformScreen *newPrimary) |
Should be called whenever the primary screen changes. | |
static void | handleScreenOrientationChange (QScreen *screen, Qt::ScreenOrientation newOrientation) |
static void | handleScreenGeometryChange (QScreen *screen, const QRect &newGeometry, const QRect &newAvailableGeometry) |
static void | handleScreenLogicalDotsPerInchChange (QScreen *screen, qreal newDpiX, qreal newDpiY) |
static void | handleScreenRefreshRateChange (QScreen *screen, qreal newRefreshRate) |
template<typename Delivery = QWindowSystemInterface::DefaultDelivery> | |
static void | handleThemeChange (QWindow *window=nullptr) |
static void | handleFileOpenEvent (const QString &fileName) |
static void | handleFileOpenEvent (const QUrl &url) |
static bool | handleTabletEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, const QPointF &local, const QPointF &global, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEvent (QWindow *window, const QPointingDevice *device, const QPointF &local, const QPointF &global, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEvent (QWindow *window, ulong timestamp, const QPointF &local, const QPointF &global, int device, int pointerType, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, qint64 uid, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEvent (QWindow *window, const QPointF &local, const QPointF &global, int device, int pointerType, Qt::MouseButtons buttons, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, qint64 uid, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEnterLeaveProximityEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, bool inProximity, const QPointF &local=QPointF(), const QPointF &global=QPointF(), Qt::MouseButtons buttons={}, int xTilt=0, int yTilt=0, qreal tangentialPressure=0, qreal rotation=0, int z=0, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEnterLeaveProximityEvent (QWindow *window, const QPointingDevice *device, bool inProximity, const QPointF &local=QPointF(), const QPointF &global=QPointF(), Qt::MouseButtons buttons={}, int xTilt=0, int yTilt=0, qreal tangentialPressure=0, qreal rotation=0, int z=0, Qt::KeyboardModifiers modifiers=Qt::NoModifier) |
static bool | handleTabletEnterProximityEvent (ulong timestamp, int deviceType, int pointerType, qint64 uid) |
static void | handleTabletEnterProximityEvent (int deviceType, int pointerType, qint64 uid) |
static bool | handleTabletLeaveProximityEvent (ulong timestamp, int deviceType, int pointerType, qint64 uid) |
static void | handleTabletLeaveProximityEvent (int deviceType, int pointerType, qint64 uid) |
static bool | handleGestureEvent (QWindow *window, ulong timestamp, const QPointingDevice *device, Qt::NativeGestureType type, const QPointF &local, const QPointF &global, int fingerCount=0) |
static bool | handleGestureEventWithRealValue (QWindow *window, ulong timestamp, const QPointingDevice *device, Qt::NativeGestureType type, qreal value, const QPointF &local, const QPointF &global, int fingerCount=2) |
static bool | handleGestureEventWithValueAndDelta (QWindow *window, ulong timestamp, const QPointingDevice *device, Qt::NativeGestureType type, qreal value, const QPointF &delta, const QPointF &local, const QPointF &global, int fingerCount=2) |
static void | handlePlatformPanelEvent (QWindow *window) |
static void | handleContextMenuEvent (QWindow *window, bool mouseTriggered, const QPoint &pos, const QPoint &globalPos, Qt::KeyboardModifiers modifiers) |
static bool | sendWindowSystemEvents (QEventLoop::ProcessEventsFlags flags) |
static void | setSynchronousWindowSystemEvents (bool enable) |
static bool | flushWindowSystemEvents (QEventLoop::ProcessEventsFlags flags=QEventLoop::AllEvents) |
Make Qt Gui process all events on the event queue immediately. | |
static void | deferredFlushWindowSystemEvents (QEventLoop::ProcessEventsFlags flags) |
static int | windowSystemEventsQueued () |
static bool | nonUserInputEventsQueued () |
The QWindowSystemInterface provides an event queue for the QPA platform.
\preliminary
The platform plugins call the various functions to notify about events. The events are queued until sendWindowSystemEvents() is called by the event dispatcher.
Definition at line 36 of file qwindowsysteminterface.h.
|
static |
Definition at line 1088 of file qwindowsysteminterface.cpp.
References QThread::currentThread(), QWindowSystemInterfacePrivate::eventsFlushed, QWindowSystemInterfacePrivate::flushEventMutex, QCoreApplication::instance(), and Q_ASSERT.
|
static |
Make Qt Gui process all events on the event queue immediately.
Return the accepted state for the last event on the queue.
Definition at line 1064 of file qwindowsysteminterface.cpp.
References QThread::currentThread(), QWindowSystemInterfacePrivate::eventAccepted, QWindowSystemInterfacePrivate::eventsFlushed, QWindowSystemInterfacePrivate::flushEventMutex, QCoreApplication::instance(), qWarning, and QWindowSystemInterfacePrivate::windowSystemEventQueue.
Referenced by QAndroidPlatformWindow::applicationStateChanged(), QtWaylandClient::QWaylandWindow::applyConfigure(), QEglFSIntegration::createPlatformWindow(), QWindowSystemHelper< Delivery >::handleEvent(), QCocoaWindow::handleGeometryChange(), QWindowsWindow::handleWmPaint(), Q_TRACE_INSTRUMENT(), QPlatformWindow::setVisible(), QCocoaWindow::setVisible(), QEglFSWindow::setVisible(), QGuiApplication::sync(), QWindowsMouseHandler::translateMouseEvent(), and QWindowsPointerHandler::translateMouseEvent().
|
static |
Referenced by QIOSApplicationState::handleApplicationStateChanged(), QtAndroid::setAndroidPlatformIntegration(), and updateApplicationState().
|
static |
|
static |
Referenced by QtWaylandClient::QWaylandWindow::~QWaylandWindow(), QtWaylandClient::QWaylandExtendedSurface::extended_surface_close(), QXcbWindow::handleClientMessageEvent(), QtWaylandClient::QWaylandAdwaitaDecoration::handleTouch(), QGuiApplicationPrivate::processKeyEvent(), EventReader::run(), and QWindowsContext::windowsProc().
|
static |
Definition at line 1031 of file qwindowsysteminterface.cpp.
Referenced by QXcbKeyboard::handleKeyEvent().
|
static |
Referenced by QEglFSScreen::handleCursorMove(), QXcbWindow::handleEnterNotifyEvent(), QtWaylandClient::QWaylandWindow::handleMouse(), QXcbWindow::hide(), QOffscreenWindow::setVisible(), and QWindowsMouseHandler::translateMouseEvent().
|
static |
This method can be used to ensure leave and enter events are both in queue when moving from one QWindow to another.
This allows QWindow subclasses to check for a queued enter event when handling the leave event (QWindowSystemInterfacePrivate::peekWindowSystemEvent
) to determine where mouse went and act accordingly. E.g. QWidgetWindow needs to know if mouse cursor moves between windows in same window hierarchy.
Definition at line 237 of file qwindowsysteminterface.cpp.
Referenced by QEglFSScreen::handleCursorMove(), QXcbWindow::handleLeaveNotifyEvent(), and QOffscreenCursor::setPos().
|
static |
Referenced by QAndroidPlatformWindow::applicationStateChanged(), QAndroidPlatformOpenGLWindow::checkNativeSurface(), QXcbWindow::handleConfigureNotifyEvent(), QXcbWindow::handleExposeEvent(), QXcbWindow::handleMapNotifyEvent(), QXcbWindow::handleUnmapNotifyEvent(), QFbWindow::lower(), QEglFSWindow::lower(), QFbWindow::raise(), QEglFSWindow::raise(), QEglFSWindow::requestActivateWindow(), QAndroidPlatformWindow::sendExpose(), QtWaylandClient::QWaylandWindow::sendExposeEvent(), QAndroidPlatformScreen::setAvailableGeometry(), QQnxWindow::setExposed(), QEglFSWindow::setGeometry(), QVkKhrDisplayWindow::setGeometry(), QFbWindow::setGeometry(), QAndroidPlatformOpenGLWindow::setGeometry(), QAndroidPlatformVulkanWindow::setGeometry(), QQnxWindow::setGeometry(), QPlatformWindow::setVisible(), QFbWindow::setVisible(), QEglFSWindow::setVisible(), QHaikuWindow::setVisible(), QOffscreenWindow::setVisible(), QQnxWindow::setVisible(), and updateWindow().
|
static |
Definition at line 476 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::eventTime, text, time, and window().
Referenced by QXcbKeyboard::handleKeyEvent(), QQnxScreenEventHandler::injectKeyboardEvent(), QLibInputKeyboard::processKey(), QBsdKeyboardHandler::processKeyEvent(), sendExtendedPressRelease(), and QtWaylandClient::QWaylandQtKeyExtension::zqt_key_v1_key().
|
static |
|
static |
Definition at line 487 of file qwindowsysteminterface.cpp.
References text, and window().
Definition at line 874 of file qwindowsysteminterface.cpp.
References fileName, and QGuiApplicationPrivate::processWindowSystemEvent().
Definition at line 880 of file qwindowsysteminterface.cpp.
References QGuiApplicationPrivate::processWindowSystemEvent(), and url.
|
static |
Referenced by QXcbConnection::QXcbConnection(), QFbScreen::addWindow(), QXcbWindow::doFocusIn(), QXcbWindow::handleXEmbedMessage(), QFbScreen::lower(), QAndroidPlatformWindow::raise(), QFbScreen::raise(), QFbScreen::removeWindow(), QPlatformWindow::requestActivateWindow(), QEglFSWindow::requestActivateWindow(), QOffscreenWindow::requestActivateWindow(), QOffscreenWindow::setVisible(), and QAndroidPlatformScreen::topVisibleWindowChanged().
|
static |
Referenced by QMinimalEglWindow::QMinimalEglWindow(), QEglFSWindow::create(), QXcbWindow::handleConfigureNotifyEvent(), QCocoaWindow::handleGeometryChange(), QtWaylandClient::QWaylandWindow::setCanResize(), QEglFSWindow::setGeometry(), QMinimalEglWindow::setGeometry(), QWasmWindow::setGeometry(), QVkKhrDisplayWindow::setGeometry(), QFbWindow::setGeometry(), QAndroidPlatformWindow::setGeometry(), QtWaylandClient::QWaylandWindow::setGeometry(), and QOffscreenWindow::setVisible().
|
static |
Definition at line 1001 of file qwindowsysteminterface.cpp.
References device, global, and window().
Referenced by QtWaylandClient::QWaylandWindow::handlePinchGesture(), and QtWaylandClient::QWaylandWindow::handleSwipeGesture().
|
static |
Definition at line 1007 of file qwindowsysteminterface.cpp.
References device, global, and window().
Referenced by QtWaylandClient::QWaylandWindow::handlePinchGesture().
|
static |
Definition at line 1013 of file qwindowsysteminterface.cpp.
References device, QHighDpi::fromNativeGlobalPosition(), QHighDpi::fromNativeLocalPosition(), global, and window().
Referenced by QtWaylandClient::QWaylandWindow::handlePinchGesture(), and QtWaylandClient::QWaylandWindow::handleSwipeGesture().
|
static |
Referenced by QWasmInputContext::inputStringChanged(), QtAndroidInput::keyDown(), QtAndroidInput::keyUp(), qClipboardCopyTo(), qClipboardCutTo(), QWasmClipboard::sendClipboardData(), QtWaylandClient::QWaylandTextInputv1::zwp_text_input_v1_keysym(), and QtWaylandClient::QWaylandTextInputv2::zwp_text_input_v2_keysym().
|
static |
|
static |
Referenced by QEglFSScreen::handleCursorMove(), QXcbWindow::handleLeaveNotifyEvent(), QtWaylandClient::QWaylandWindow::handleMouse(), QWindowsMouseHandler::translateMouseEvent(), and QWindowsPointerHandler::translateMouseEvent().
|
static |
Referenced by QtWaylandClient::QWaylandWindow::handleMouse(), QEvdevMouseManager::handleMouseEvent(), QXcbWindow::handleMouseEvent(), QtAndroidInput::longPress(), QtAndroidInput::mouseMove(), QWasmWindow::onNonClientEvent(), HIDDeviceHandler::process_event(), QLibInputPointer::processAbsMotion(), QLibInputPointer::processButton(), QLibInputPointer::processMotion(), QWindowsOleDropSource::QueryContinueDrag(), QtAndroidInput::sendMouseButtonEvents(), QPlatformCursor::setPos(), QOffscreenCursor::setPos(), QCocoaWindow::setupPopupMonitor(), QtWaylandClient::QWaylandTouchExtension::touchCanceled(), QWindowsMouseHandler::translateMouseEvent(), and QWindowsPointerHandler::translateMouseEvent().
|
static |
|
static |
|
static |
|
static |
Passes a native event identified by eventType to the window.
Definition at line 869 of file qwindowsysteminterface.cpp.
References QGuiApplicationPrivate::processNativeEvent(), and window().
Referenced by QXcbWindow::handleNativeEvent().
|
static |
Definition at line 1025 of file qwindowsysteminterface.cpp.
|
static |
Should be called whenever the primary screen changes.
When the screen specified as primary changes, this method will notify QGuiApplication and emit the QGuiApplication::primaryScreenChanged signal.
Definition at line 791 of file qwindowsysteminterface.cpp.
References emit, Q_ASSERT, qGuiApp, and QGuiApplicationPrivate::screen_list.
Referenced by QWindowsScreen::handleChanges(), QWasmIntegration::removeContainerElement(), and QWasmIntegration::setContainerElements().
|
static |
|
static |
Should be called by the implementation whenever a new screen is added.
The first screen added will be the primary screen, used for default-created windows, GL contexts, and other resources unless otherwise specified.
This adds the screen to QGuiApplication::screens(), and emits the QGuiApplication::screenAdded() signal.
The screen should be deleted by calling QWindowSystemInterface::handleScreenRemoved().
Definition at line 714 of file qwindowsysteminterface.cpp.
References emit, qGuiApp, QGuiApplicationPrivate::resetCachedDevicePixelRatio(), screen, QGuiApplicationPrivate::screen_list, and QHighDpiScaling::updateHighDpiScaling().
Referenced by QAndroidPlatformIntegration::QAndroidPlatformIntegration(), QHaikuIntegration::QHaikuIntegration(), QMinimalEglIntegration::QMinimalEglIntegration(), QMinimalIntegration::QMinimalIntegration(), QWasmIntegration::addContainerElement(), QQnxIntegration::createDisplay(), QtWaylandClient::QWaylandDisplay::ensureScreen(), QAndroidPlatformIntegration::handleScreenAdded(), QWindowsScreenManager::handleScreenChanges(), QtWaylandClient::QWaylandDisplay::handleScreenInitialized(), QBsdFbIntegration::initialize(), QEglFSIntegration::initialize(), QIntegrityFbIntegration::initialize(), QIOSIntegration::initialize(), QLinuxFbIntegration::initialize(), QVkKhrDisplayIntegration::initialize(), QVncIntegration::initialize(), QDirectFbIntegration::initializeScreen(), QEglFSKmsDevice::registerScreen(), QEglFSEmulatorIntegration::screenInit(), QOffscreenIntegration::setConfiguration(), and QWasmIntegration::setContainerElements().
|
static |
Definition at line 808 of file qwindowsysteminterface.cpp.
References QHighDpi::fromNative(), QHighDpi::fromNativeScreenGeometry(), screen, and QRect::topLeft().
Referenced by QWindowsScreen::handleChanges(), QAndroidPlatformScreen::setAvailableGeometry(), QOffscreenIntegration::setConfiguration(), QFbScreen::setGeometry(), QWasmScreen::setGeometry(), QQnxScreen::setRotation(), QAndroidPlatformScreen::setSize(), QAndroidPlatformScreen::setSizeParameters(), QVkKhrDisplayScreen::setVk(), QXcbScreen::updateAvailableGeometry(), QXcbScreen::updateGeometry(), QtWaylandClient::QWaylandScreen::updateOutputProperties(), QIOSScreen::updateProperties(), and QtWaylandClient::QWaylandScreen::updateXdgOutputProperties().
|
static |
Definition at line 815 of file qwindowsysteminterface.cpp.
References QPlatformScreen::overrideDpi(), screen, and QHighDpiScaling::updateHighDpiScaling().
Referenced by QXcbVirtualDesktop::QXcbVirtualDesktop(), QWindowsScreen::handleChanges(), QXcbVirtualDesktop::handleScreenChange(), QOffscreenIntegration::setConfiguration(), and QWasmIntegration::updateDpi().
|
static |
Definition at line 803 of file qwindowsysteminterface.cpp.
References screen.
Referenced by QWindowsScreen::handleChanges(), QAndroidPlatformScreen::setOrientation(), QQnxScreen::setRotation(), QXcbScreen::updateGeometry(), QtWaylandClient::QWaylandScreen::updateOutputProperties(), and QIOSScreen::updateProperties().
|
static |
Definition at line 827 of file qwindowsysteminterface.cpp.
References screen.
Referenced by QAndroidPlatformScreen::setRefreshRate(), QtWaylandClient::QWaylandScreen::updateOutputProperties(), and QXcbScreen::updateRefreshRate().
|
static |
Should be called by the implementation whenever a screen is removed.
This removes the screen from QGuiApplication::screens(), and deletes it.
Failing to call this and manually deleting the QPlatformScreen instead may lead to a crash due to a pure virtual call.
Definition at line 741 of file qwindowsysteminterface.cpp.
References QGuiApplication::allWindows(), QCoreApplication::closingDown(), emit, QGuiApplication::primaryScreen, qApp, qGuiApp, QGuiApplicationPrivate::resetCachedDevicePixelRatio(), QPlatformScreen::screen(), screen, QGuiApplicationPrivate::screen_list, and window().
Referenced by QBsdFbIntegration::~QBsdFbIntegration(), QHaikuIntegration::~QHaikuIntegration(), QIntegrityFbIntegration::~QIntegrityFbIntegration(), QIOSIntegration::~QIOSIntegration(), QLinuxFbIntegration::~QLinuxFbIntegration(), QMinimalEglIntegration::~QMinimalEglIntegration(), QMinimalIntegration::~QMinimalIntegration(), QOffscreenIntegration::~QOffscreenIntegration(), QVkKhrDisplayIntegration::~QVkKhrDisplayIntegration(), QVncIntegration::~QVncIntegration(), QtWaylandClient::QWaylandDisplay::~QWaylandDisplay(), QXcbConnection::~QXcbConnection(), QWindowsScreenManager::clearScreens(), QWasmScreen::deleteScreen(), QtWaylandClient::QWaylandDisplay::handleScreenInitialized(), QAndroidPlatformIntegration::handleScreenRemoved(), QtWaylandClient::QWaylandDisplay::registry_global_remove(), QQnxIntegration::removeDisplay(), QEglFSDeviceIntegration::screenDestroy(), and QOffscreenIntegration::setConfiguration().
|
static |
Definition at line 422 of file qwindowsysteminterface.cpp.
References QGuiApplication::focusWindow(), QGuiApplicationPrivate::instance(), QKeySequence::NoMatch, Q_UNUSED, QEvent::ShortcutOverride, text, and window().
Referenced by QGuiApplicationPrivate::processKeyEvent(), and qt_handleKeyEvent().
|
static |
Definition at line 959 of file qwindowsysteminterface.cpp.
References device, QWindowSystemInterfacePrivate::eventTime, global, time, and window().
|
static |
|
static |
Definition at line 980 of file qwindowsysteminterface.cpp.
References deviceType(), QWindowSystemInterfacePrivate::eventTime, pointerType(), and time.
|
static |
Definition at line 972 of file qwindowsysteminterface.cpp.
References device, deviceType(), QPointingDeviceUniqueId::fromNumericId(), pointerType(), and QPointingDevicePrivate::tabletDevice().
Referenced by QEvdevTabletData::report(), and QtWaylandClient::QWaylandTabletToolV2::zwp_tablet_tool_v2_frame().
|
static |
Definition at line 928 of file qwindowsysteminterface.cpp.
References device, QWindowSystemInterfacePrivate::eventTime, global, pointerType(), time, and window().
|
static |
Definition at line 905 of file qwindowsysteminterface.cpp.
References device, QWindowSystemInterfacePrivate::eventTime, global, time, and window().
|
static |
Definition at line 917 of file qwindowsysteminterface.cpp.
References device, QPointingDeviceUniqueId::fromNumericId(), global, pointerType(), QPointingDevicePrivate::tabletDevice(), and window().
|
static |
Definition at line 891 of file qwindowsysteminterface.cpp.
References device, QHighDpi::fromNativeGlobalPosition(), QHighDpi::fromNativeLocalPosition(), global, and window().
Referenced by QQuickTest::pointerMove(), QQuickTest::pointerPress(), QQuickTest::pointerRelease(), QEvdevTabletData::report(), QtAndroidInput::tabletEvent(), QWindowsTabletSupport::translateTabletPacketEvent(), and QtWaylandClient::QWaylandTabletToolV2::zwp_tablet_tool_v2_frame().
|
static |
Definition at line 994 of file qwindowsysteminterface.cpp.
References deviceType(), QWindowSystemInterfacePrivate::eventTime, pointerType(), and time.
|
static |
Definition at line 986 of file qwindowsysteminterface.cpp.
References device, deviceType(), QPointingDeviceUniqueId::fromNumericId(), pointerType(), and QPointingDevicePrivate::tabletDevice().
Referenced by QEvdevTabletData::report(), and QtWaylandClient::QWaylandTabletToolV2::zwp_tablet_tool_v2_frame().
|
static |
Referenced by QGtk3Theme::QGtk3Theme(), QGtk3Storage::handleThemeChange(), QXcbIntegration::initialize(), QXdgDesktopPortalThemePrivate::settingChanged(), QAndroidPlatformTheme::updateColorScheme(), and QWindowsTheme::windowsThemeChanged().
|
static |
Referenced by QLibInputTouch::processTouchCancel(), and QtAndroidInput::touchCancel().
|
static |
|
static |
Referenced by QLibInputTouch::processTouchFrame(), QEvdevTouchScreenData::reportPoints(), QtAndroidInput::touchEnd(), and QWindowsMouseHandler::translateTouchEvent().
|
static |
|
static |
Definition at line 498 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::eventTime, global, time, and window().
Referenced by QXcbWindow::handleButtonPressEvent(), QtWaylandClient::QWaylandWindow::handleMouse(), QEvdevMouseManager::handleWheelEvent(), QtAndroidInput::mouseWheel(), QLibInputPointer::processAxis(), qt_handleWheelEvent(), and redirectWheelEvent().
|
static |
Definition at line 504 of file qwindowsysteminterface.cpp.
References global, QPointingDevice::primaryPointingDevice(), and window().
|
static |
Definition at line 511 of file qwindowsysteminterface.cpp.
References device, QHighDpi::fromNativeGlobalPosition(), QHighDpi::fromNativeLocalPosition(), global, Qt::Horizontal, QPoint::isNull(), Qt::ScrollUpdate, Qt::Vertical, window(), QPoint::x(), and QPoint::y().
|
static |
|
static |
Referenced by QXcbWindow::create(), QCocoaWindow::createNSWindow(), QXcbWindow::handleConfigureNotifyEvent(), and QXcbWindow::setGeometry().
|
static |
Referenced by QtWaylandClient::QWaylandQtSurface::applyConfigure(), QXcbWindow::handlePropertyNotifyEvent(), QtWaylandClient::QWaylandWindow::handleWindowStatesChanged(), QIOSWindow::setGeometry(), QOffscreenWindow::setWindowState(), and QQnxScreen::windowGroupStateChanged().
|
static |
Definition at line 1139 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::nonUserInputEventsQueued().
|
static |
Register a new input device.
It is expected that every platform plugin will discover available input devices at startup, and whenever a new device is plugged in, if possible. If that's not possible, then it at least must call this function before sending an event whose QInputEvent::source() is this device.
When a device is unplugged, the platform plugin should destroy the corresponding QInputDevice instance. There is no unregisterInputDevice() function, because it's enough for the destructor to call QInputDevicePrivate::unregisterDevice(); while other parts of Qt can connect to the QObject::destroyed() signal to be notified when a device is unplugged or otherwise destroyed.
Definition at line 577 of file qwindowsysteminterface.cpp.
References device, qCDebug, and QInputDevicePrivate::registerDevice().
Referenced by QAndroidPlatformIntegration::QAndroidPlatformIntegration(), QCocoaIntegration::QCocoaIntegration(), QQnxScreenEventHandler::QQnxScreenEventHandler(), QTuioHandler::QTuioHandler(), QWasmScreen::QWasmScreen(), createInputDevice(), QTest::createTouchDevice(), QtAndroidInput::getTouchDevice(), QCocoaTouch::getTouchDevice(), QIOSIntegration::initialize(), QNSView(Mouse)::initMouse, QWindowsContext::initTouch(), QLibInputTouch::registerDevice(), and QtWaylandClient::QWaylandInputDevice::seat_capabilities().
|
static |
Definition at line 1097 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::eventAccepted, QWindowSystemInterfacePrivate::eventHandler, QEventLoop::ExcludeUserInputEvents, QWindowSystemInterfacePrivate::FlushEvents, QWindowSystemInterfacePrivate::getNonUserInputWindowSystemEvent(), QWindowSystemInterfacePrivate::getWindowSystemEvent(), QGuiApplicationPrivate::processWindowSystemEvent(), and QWindowSystemInterfacePrivate::windowSystemEventsQueued().
Referenced by QUnixEventDispatcherQPA::processEvents(), QOffscreenEventDispatcher< BaseEventDispatcher >::processEvents(), QXcbUnixEventDispatcher::processEvents(), QCocoaEventDispatcherPrivate::processPostedEvents(), QIOSEventDispatcher::processPostedEvents(), QWasmEventDispatcher::processPostedEvents(), QWindowsGuiEventDispatcher::sendPostedEvents(), and userEventSourceDispatch().
|
static |
Definition at line 1129 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::synchronousWindowSystemEvents.
Referenced by QIOSEventDispatcher::QIOSEventDispatcher(), QWasmCompositor::QWasmCompositor(), and QOffscreenIntegration::setConfiguration().
|
static |
Definition at line 1134 of file qwindowsysteminterface.cpp.
References QWindowSystemInterfacePrivate::windowSystemEventsQueued().