PlasmaQuick::EdgeEventForwarder Class
The EdgeEventForwarder class. More...
| Header: | #include <EdgeEventForwarder> |
| CMake: | find_package(PlasmaQuick REQUIRED)target_link_libraries(mytarget PRIVATE Plasma::PlasmaQuick) |
Public Functions
| EdgeEventForwarder(QWindow *parent) | |
| Qt::Edges | activeEdges() |
| QMargins | margins() |
| void | setActiveEdges(Qt::Edges edges) |
| void | setMargins(const QMargins &margins) |
| void | setWindow(QWindow *window) |
| QWindow * | window() const |
Signals
| void | activeEdgesChanged() |
| void | marginsChanged() |
| void | windowChanged() |
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.
See also activeEdges().
void EdgeEventForwarder::setMargins(const QMargins &margins)
Sets the margins to use for the event forwarding.
See also margins().