FocusDirection.update

Update focus info with the given node. Automatically called when a node is drawn, shouldn't be called manually.

previous will be the last focusable node encountered before the focused node, and next will be the first one after. first and `last will be the last focusable nodes in the entire tree.

struct FocusDirection
void
update
in (current !is null, "Current node must not be null")

Parameters

current Node

Node to update the focus info with.

box Rectangle

Box defining node boundaries (padding box)

depth uint

Current tree depth. Pass in tree.depth.

Meta