Stateless helper that traverses a widget tree depth-first and finds all IFocusable instances in declaration order. More...
Static Public Member Functions | |
| static IReadOnlyList< IFocusable > | CollectFocusable (IWidget root) |
| Collect all IFocusable widgets from the tree rooted at root in depth-first, declaration order. | |
| static ? IFocusable | FindFocusableAt (IWidget root, ResolvedLayout layout, int col, int row) |
| Returns the IFocusable whose allocated region in layout contains the point (col , row ), or null if none. | |
| static ? IFocusable | GetNext (IFocusable? current, IReadOnlyList< IFocusable > all) |
| Return the next focusable after current (wrapping). | |
| static ? IFocusable | GetPrev (IFocusable? current, IReadOnlyList< IFocusable > all) |
| Return the previous focusable before current (wrapping). | |
Stateless helper that traverses a widget tree depth-first and finds all IFocusable instances in declaration order.
|
static |
Returns the IFocusable whose allocated region in layout contains the point (col , row ), or null if none.
When multiple widgets overlap (e.g. inside a ZStack), the last one in depth-first order wins (topmost layer).
|
static |
Return the next focusable after current (wrapping).
If current is null or not found, returns the first item. Returns null if all is empty.
|
static |
Return the previous focusable before current (wrapping).
If current is null or not found, returns the last item. Returns null if all is empty.