WithFocus

Base interface for FocusIO, providing access and control over the current focusable. Used to create additional interfaces like WithPositionalFocus without defining a new I/O set.

Members

Functions

clearFocus
void clearFocus()

Clear current focus (set it to null).

currentFocus
inout(Focusable) currentFocus()

Note: Currently focused node may have blocksInput set to true; take care to check it before calling input handling methods.

currentFocus
Focusable currentFocus(Focusable newValue)

Change the currently focused node to another.

isFocusActionable
bool isFocusActionable()
isFocused
bool isFocused(Focusable focusable)

Meta