FocusDirection

Members

Functions

checkDirection
bool checkDirection(Rectangle box, Style.Side side)

Check if the given box is located to the given side of the focus box.

distance2
float distance2(Rectangle box, Style.Side side)

Get the square of the distance between given box and lastFocusBox.

update
void update(Node current, Rectangle box, uint depth)

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

Structs

WithPriority
struct WithPriority
Undocumented in source.

Variables

first
FluidFocusable first;
last
FluidFocusable last;

First and last focusable nodes in the tree.

lastFocusBox
Rectangle lastFocusBox;

Available space box of the focused item after last frame.

next
FluidFocusable next;

Nodes that may get focus with tab navigation.

positional
WithPriority[4] positional;

Focusable nodes, by direction from the focused node.

previous
FluidFocusable previous;

Nodes that may get focus with tab navigation.

priority
int priority;

Focus priority for the currently drawn node.

Meta