ScreenEdgeHandler QML Type

Qml export for reserving a Screen Edge. More...

Import Statement: import org.kde.kwin

Properties

Signals

Detailed Description

The edge is controlled by the enabled property and the edge property. If the edge is enabled and gets triggered the activated() signal gets emitted.

Example usage:

ScreenEdgeHandler {
    edge: ScreenEdgeHandler.LeftEdge
    onActivated: doSomething()
}

Property Documentation

edge : enumeration

Which of the screen edges is to be reserved. Default value is NoEdge.

ConstantDescription
ScreenEdgeHandler.TopEdgeThe top edge of the screen.
ScreenEdgeHandler.TopRightEdgeThe top right corner of the screen.
ScreenEdgeHandler.RightEdgeThe right edge of the screen.
ScreenEdgeHandler.BottomRightEdgeThe bottom right corner of the screen.
ScreenEdgeHandler.BottomEdgeThe bottom edge of the screen.
ScreenEdgeHandler.BottomLeftEdgeThe bottom left corner of the screen.
ScreenEdgeHandler.LeftEdgeThe left edge of the screen.
ScreenEdgeHandler.TopLeftEdgeThe top left corner of the screen.
ScreenEdgeHandler.NoEdgeNo edge.

enabled : bool

Whether the edge is currently enabled, that is reserved. Default value is true.


mode : enumeration

The operation mode for this edge. Default value is Mode::Pointer

ConstantDescription
ScreenEdgeHandler.PointerThe screen edge is triggered by a pointer input device.
ScreenEdgeHandler.TouchThe screen edge is triggered by a touch input device.

Signal Documentation

activated()

This signal is emitted when the screen edge is activated by the user.

The way how the screen edge gets activated depends on the mode(). For example, with Mode::Pointer, the screen edge will be activated when the pointer hits the screen edge; with Mode::Touch, the screen edge will be activated when user swipes their fingers from the corresponding screen border towards the center of the screen.

Note: The corresponding handler is onActivated.