4#ifndef FTXUI_COMPONENT_LOOP_HPP
5#define FTXUI_COMPONENT_LOOP_HPP
14using Component = std::shared_ptr<ComponentBase>;
15class ScreenInteractive;
bool HasQuitted()
Whether the loop has quitted.
Loop(const ScreenInteractive &)=delete
Loop(ScreenInteractive *screen, Component component)
A Loop is a wrapper around a Component and a ScreenInteractive. It is used to run a Component in a te...
Loop & operator=(const Loop &)=delete
void RunOnce()
Execute the loop. Make the component to process every pending tasks/events. A new frame might be draw...
Loop(const Loop &)=default
Loop & operator=(Loop &&)=delete
void RunOnceBlocking()
Wait for at least one event to be handled and execute Loop::RunOnce().
Loop is a class that manages the event loop for a component.
ScreenInteractive is a Screen that can handle events, run a main loop, and manage components.
The FTXUI ftxui:: namespace.
std::shared_ptr< ComponentBase > Component