LEVIATHAN v962456e · 962456eee1

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

owner_

weak IComponent | None owner_

wantX_

int wantX_

wantY_

int wantY_

wOverride_

int wOverride_

z

int z

Methods

__resolveAbsolute

__resolveAbsolute(Rect content, Size desired) -> Rect

anchorTo

anchorTo(IComponent target, AnchorEdge edge, int dx, int dy) -> void

anchorX

anchorX(Rect t, int ow) -> int

anchorY

anchorY(Rect t, int oh) -> int

clearAnchor

clearAnchor() -> void

isAbsolute

isAbsolute() -> bool

pingLayout

pingLayout() -> void

setH

setH(int v) -> void

setMethod

setMethod(PositionMethod m) -> void

setW

setW(int v) -> void

setX

setX(int v) -> void

setY

setY(int v) -> void

setZ

setZ(int v) -> void

x

x() -> int

y

y() -> int