LEVIATHAN v962456e · 962456eee1

moby · Dom

class Position

since 0.1.0-alpha.1linux

Constructors

new

new(IComponent owner)

Fields

anchorDx_

int anchorDx_

anchorDy_

int anchorDy_

anchorEdge_

AnchorEdge anchorEdge_

anchorTarget_

weak IComponent | None anchorTarget_

desiredX_

int desiredX_

desiredY_

int desiredY_

h_

int h_

hasAnchor_

bool hasAnchor_

lastX_

int lastX_

lastY_

int lastY_

method_

owner_

weak IComponent | None owner_

w_

int w_

z_

int z_

Accessors

h

get h()
set h(int v)

method

get method()
set method(PositionMethod m)

w

get w()
set w(int v)

x

get x()
set x(int v)

y

get y()
set y(int v)

z

get z()
set z(int v)

Methods

__resolveAbsolute

__resolveAbsolute(Size desired) -> Rect

anchorTo

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

anchorX

anchorX(Rect t, int ow) -> int

anchorY

anchorY(Rect t, int oh) -> int

applyFixedH

applyFixedH() -> void

applyFixedW

applyFixedW() -> void

clearAnchor

clearAnchor() -> void

isAbsolute

isAbsolute() -> bool

liveX

liveX() -> int

liveY

liveY() -> int

pingLayout

pingLayout() -> void