PlasmaQuick::EdgeEventForwarder Class

The EdgeEventForwarder class. More...

Header: #include <EdgeEventForwarder>
CMake: find_package(PlasmaQuick REQUIRED)
target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick)
Inherits: QObject

Public Functions

EdgeEventForwarder(QWindow *parent)
void setActiveEdges(Qt::Edges edges)
void setMargins(const QMargins &margins)

Detailed Description

This class forwards edge events to be replayed within the given margin. This is useful if children do not touch the edge of a window, but want to get input events.

Member Function Documentation

EdgeEventForwarder::EdgeEventForwarder(QWindow *parent)

EdgeEventForwarder constructor.

window The window to intercept and filter

The event forwarder is parented to the window.

void EdgeEventForwarder::setActiveEdges(Qt::Edges edges)

Sets which margins should be active for edge forwarding.

Typically this should match edges touching a screen edge.

void EdgeEventForwarder::setMargins(const QMargins &margins)

Sets the margins to use for the event forwarding.