Pages
API Documentation
On this page

PlasmaQuick::EdgeEventForwarder Class

The EdgeEventForwarder class. More...

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

List of all members, including inherited members

Public Functions

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.

Note: Setter function for property activeEdges.

See also activeEdges()

void EdgeEventForwarder::setMargins(const QMargins &margins)

Sets the margins to use for the event forwarding.

Note: Setter function for property margins.

See also margins()

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.