-->
import Quickshell
The strategy used to adjust the popup’s position if it would otherwise not fit on screen, based on the anchor rect, preferred edges, and gravity.
See the documentation for PopupAdjustment for details.
The point on the anchor rectangle the popup should anchor to.
Opposing edges suchs as Edges.Left | Edges.Right
are not allowed.
Defaults to Edges.Top | Edges.Left
.
The direction the popup should expand towards, relative to the anchorpoint.
Opposing edges suchs as Edges.Left | Edges.Right
are not allowed.
Defaults to Edges.Bottom | Edges.Right
.
The anchorpoints the popup will attach to. Which anchors will be used is determined by the edges, gravity, and adjustment.
If you leave edges, gravity and adjustment at their default values,
setting more than x
and y
does not matter. The anchor rect cannot
be smaller than 1x1 pixels.
NOTE
To position a popup relative to an item inside a window, you can use coordinate mapping functions (note the warning below).
WARNING
Using coordinate mapping functions in a binding to this property will position the anchor incorrectly. If you want to use them, do so in anchoring(), or use TransformWatcher if you need real-time updates to mapped coordinates.
The window to anchor / attach the popup to.
Emitted when this anchor is about to be used. Mostly useful for modifying the anchor rect using coordinate mapping functions, which are not reactive.