dagon · Dom
class Position
since 0.1.0-alpha.1linux
Constructors
new
new(IComponent owner)Fields
anchor_
weak IComponent | None anchor_anchorDx_
int anchorDx_anchorDy_
int anchorDy_anchorEdge_
AnchorEdge anchorEdge_hOverride_
int hOverride_lastX_
int lastX_lastY_
int lastY_method
PositionMethod methodowner_
weak IComponent | None owner_wantX_
int wantX_wantY_
int wantY_wOverride_
int wOverride_z
int zMethods
__resolveAbsolute
anchorTo
anchorTo(IComponent target, AnchorEdge edge, int dx, int dy) -> voidanchorX
anchorX(Rect t, int ow) -> intanchorY
anchorY(Rect t, int oh) -> intclearAnchor
clearAnchor() -> voidisAbsolute
isAbsolute() -> boolpingLayout
pingLayout() -> voidsetH
setH(int v) -> voidsetMethod
setMethod(PositionMethod m) -> voidsetW
setW(int v) -> voidsetX
setX(int v) -> voidsetY
setY(int v) -> voidsetZ
setZ(int v) -> voidx
x() -> inty
y() -> int