Skip to content
You are viewing documentation for v6.1.6. Switch to latest (main).

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/dropdown_custom (+38 more)

Summary ​

SymbolDescription
~Loop
RunOnceExecute 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.
RunOnceBlockingWait for at least one event to be handled and execute Loop::RunOnce().
RunExecute the loop, blocking the current thread, up until the loop has quitted.
Loop
operator=

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.

Loop ​

cpp
Loop(const Loop &);

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/dropdown_custom (+38 more)

Loop ​

cpp
Loop(Loop &&);

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/dropdown_custom (+38 more)

operator= ​

cpp
Loop & operator=(Loop &&);

Loop ​

cpp
Loop(const ScreenInteractive &);

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/dropdown_custom (+38 more)

operator= ​

cpp
Loop & operator=(const Loop &);