FTXUI
6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
examples/component/button.cpp
Go to the documentation of this file.
1
#include "
ftxui/component/component.hpp
"
2
#include "
ftxui/component/screen_interactive.hpp
"
3
4
int
main
(){
5
auto
screen =
ftxui::ScreenInteractive::Fullscreen
();
6
auto
testComponent =
ftxui::Renderer
([](){
return
ftxui::text
(
"test Component"
);});
7
screen.Loop(testComponent);
8
return
0;
9
}
component.hpp
main
int main()
Definition
examples/component/button.cpp:4
ftxui::ScreenInteractive::Fullscreen
static ScreenInteractive Fullscreen()
Definition
screen_interactive.cpp:373
ftxui::Renderer
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Definition
src/ftxui/component/renderer.cpp:61
ftxui::text
Element text(std::wstring text)
Display a piece of unicode text.
Definition
text.cpp:160
screen_interactive.hpp
examples
component
button.cpp
Generated by
1.12.0