Skip to content
You are viewing documentation for v4.0.0. Switch to latest (main).

ftxui::ScreenInteractive ​

cpp
#include <ftxui/component/screen_interactive.hpp>

Inherits from: ftxui::Screen

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 (+29 more)

Summary ​

SymbolDescription
Private
FixedSize
Fullscreen
FitComponent
TerminalOutput
Active
Loop
Exit
ExitLoopClosure
Post
PostEvent
RequestAnimationFrame
CaptureMouse
WithRestoredIODecorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution.

Public Attributes ​

Private ​

cpp
friend Private;

Static Functions ​

FixedSize ​

cpp
static ScreenInteractive FixedSize(int dimx, int dimy);

Fullscreen ​

FitComponent ​

TerminalOutput ​

Active ​

cpp
static ScreenInteractive * Active();

Public Member Functions ​

Loop ​

cpp
void Loop(Component);

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 (+29 more)

Exit ​

cpp
void Exit();

ExitLoopClosure ​

cpp
Closure ExitLoopClosure();

Post ​

cpp
void Post(Task task);

PostEvent ​

cpp
void PostEvent(Event event);

RequestAnimationFrame ​

CaptureMouse ​

cpp
CapturedMouse CaptureMouse();

WithRestoredIO ​

cpp
Closure WithRestoredIO(Closure);

Decorate a function. It executes the same way, but with the currently active screen terminal hooks temporarilly uninstalled during its execution.

Parameters:

  • fn: The function to decorate.