- focusAbove
FocusSearchAction focusAbove()
- focusBelow
FocusSearchAction focusBelow()
- focusDirection
FocusSearchAction focusDirection(Style.Side side)
Positional focus: Switch focus from the currently focused node to another based on screen
position.
- focusDown
bool focusDown()
Undocumented in source. Be warned that the author may not have intended to support it.
- focusLeft
bool focusLeft()
Undocumented in source. Be warned that the author may not have intended to support it.
- focusRight
bool focusRight()
Undocumented in source. Be warned that the author may not have intended to support it.
- focusToLeft
FocusSearchAction focusToLeft()
- focusToRight
FocusSearchAction focusToRight()
Positional focus: Switch focus from the currently focused node to another based on screen
position.
- focusUp
bool focusUp()
Undocumented in source. Be warned that the author may not have intended to support it.
- lastFocusBox
Optional!Rectangle lastFocusBox()
To provide a reference for positional focus, the bounding box of the focused node.
- positionalFocusAction
inout(PositionalFocusAction) positionalFocusAction()
A ready implementation of positional focus for FocusIO, enabling switching between nodes using (usually) arrow keys. Used by subclassing in the focus I/O system.
This interface expects to be provided positionalFocusAction, which will be used to locate the target. lastFocusBox should be updated with the current focus box every frame; this can be achieved using the FindFocusBox branch action.
This interface exposes a few input actions, which if enabled using mixin enableInputActions, will enable navigation using standard Fluid input actions.
Implementing positional focus using this class requires three overrides in total:
The last overload is necessary to avoid conflicts with the old backend system. It will stop being available in Fluid 0.8.0.