WindowAnchor enumeration
Which point of the window overlay a DefaultRect is anchored to on first placement. TopLeft (default) = DefaultRect.X/Y is the absolute top-left position (legacy behaviour). Any other value places the window’s matching point at that point of the canvas, with DefaultRect.X/Y as a canvas-unit OFFSET from it (Center + offset (0,0) = dead centre). The framework resolves this in canvas units, so plugins never need the CanvasScaler scaleFactor.
public enum WindowAnchorValues
Section titled “Values”| name | value | description |
|---|---|---|
| TopLeft | 0 |
Top-left corner (default). DefaultRect.X/Y is the absolute top-left position (legacy behaviour). |
| Top | 1 |
Top edge, horizontally centred. DefaultRect.X/Y is a canvas-unit offset from that point. |
| TopRight | 2 |
Top-right corner. DefaultRect.X/Y is a canvas-unit offset from that point. |
| Left | 3 |
Left edge, vertically centred. DefaultRect.X/Y is a canvas-unit offset from that point. |
| Center | 4 |
Dead centre of the canvas. DefaultRect.X/Y is a canvas-unit offset from that point (offset (0,0) = dead centre). |
| Right | 5 |
Right edge, vertically centred. DefaultRect.X/Y is a canvas-unit offset from that point. |
| BottomLeft | 6 |
Bottom-left corner. DefaultRect.X/Y is a canvas-unit offset from that point. |
| Bottom | 7 |
Bottom edge, horizontally centred. DefaultRect.X/Y is a canvas-unit offset from that point. |
| BottomRight | 8 |
Bottom-right corner. DefaultRect.X/Y is a canvas-unit offset from that point. |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Domain