22 : screen_(screen), component_(std::move(component)) {
33 return screen_->HasQuitted();
40 screen_->RunOnce(component_);
46 screen_->RunOnceBlocking(component_);
bool HasQuitted()
Whether the loop has quitted.
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...
void RunOnce()
Execute the loop. Make the component to process every pending tasks/events. A new frame might be draw...
void RunOnceBlocking()
Wait for at least one event to be handled and execute Loop::RunOnce().
std::shared_ptr< ComponentBase > Component