FabGL
ESP32 Display Controller and Graphics Library

◆ processModalWindowEvents()

bool fabgl::uiApp::processModalWindowEvents ( ModalWindowState *  state,
int  timeout 
)

Processes all messages from modal window.

This method must be called whenever UI needs to be updated.

Parameters
stateThis parameter comes from initModalWindow() and is used internally to maintain modal window status.
timeoutTimeout in milliseconds to wait for messages. -1 = infinite timeout, 0 = no timeout.
Returns
False: EXIT or CLOSE received, modal window should close (call endModalWindow). True = other processModalWindowEvents required, continue outer loop.