ftxui::Loop
cpp
#include <ftxui/component/loop.hpp>Examples: component/button, component/button_animated, component/button_in_frame, component/button_style, component/canvas_animated, component/checkbox, component/checkbox_in_frame, component/collapsible, component/composition, component/custom_loop, component/dropdown, component/flexbox_gallery (+33 more)
Summary
| Symbol | Description |
|---|---|
~Loop | |
RunOnce | Execute the loop. Make the component to process every pending tasks/events. A new frame might be drawn if the previous was invalidated. Return true until the loop hasn't completed. |
RunOnceBlocking | Wait for at least one event to be handled and execute Loop::RunOnce(). |
Run | Execute the loop, blocking the current thread, up until the loop has quitted. |
Public Member Functions
~Loop
cpp
~Loop();RunOnce
cpp
void RunOnce();Execute the loop. Make the component to process every pending tasks/events. A new frame might be drawn if the previous was invalidated. Return true until the loop hasn't completed.
RunOnceBlocking
cpp
void RunOnceBlocking();Wait for at least one event to be handled and execute Loop::RunOnce().
Run
cpp
void Run();Execute the loop, blocking the current thread, up until the loop has quitted.