FabGL
ESP32 Display Controller and Graphics Library

◆ moveFocus()

uiWindow * moveFocus ( int  delta)

Move focus to a control with current focus index plus a delta.

A focused window partecipates to the TAB "trip", respecting the tab-order (see uiWindow.focusIndex()). Calling moveFocus(1) is the same of pressing TAB. Calling moveFocus(-1) is the same of pressing SHIFT-TAB.

Parameters
deltaSpecifies how many controls pass (1 = next control, -1 = previous control)
Returns
Previous focused window

Definition at line 760 of file fabui.cpp.