PlasmaQuick::EdgeEventForwarder Class

class PlasmaQuick::EdgeEventForwarder
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

@brief The EdgeEventForwarder class 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)

@brief EdgeEventForwarder constructor @param window The window to intercept and filter The event forwarder is parented to the window

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

@brief setActiveEdges sets which margins should be active for edge forwarding typically this should match edges touching a screen edge

void EdgeEventForwarder::setMargins(const QMargins &margins)

@brief setMargins sets the margins to use for the event forwarding