FTXUI  5.0.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
util.cpp
Go to the documentation of this file.
1// Copyright 2022 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4#include <functional> // for function
5
6#include "ftxui/component/component.hpp" // for Renderer, ComponentDecorator, ElementDecorator, operator|, operator|=
7#include "ftxui/component/component_base.hpp" // for Component
8
9namespace ftxui {
10
11// NOLINTNEXTLINE
15
16// NOLINTNEXTLINE
20
21// NOLINTNEXTLINE
26
27// NOLINTNEXTLINE
32
33} // namespace ftxui
std::shared_ptr< T > Make(Args &&... args)
Definition component.hpp:26
std::function< Element(Element)> ElementDecorator
Definition component.hpp:32
std::shared_ptr< ComponentBase > Component
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Definition renderer.cpp:61
Component operator|(Component component, ComponentDecorator decorator)
Definition util.cpp:12
Component & operator|=(Component &component, ComponentDecorator decorator)
Definition util.cpp:22
std::function< Component(Component)> ComponentDecorator
Definition component.hpp:31