FTXUI
7.0.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
node_decorator.hpp
Go to the documentation of this file.
1
// Copyright 2020 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
#ifndef FTXUI_DOM_NODE_DECORATOR_H_
5
#define FTXUI_DOM_NODE_DECORATOR_H_
6
7
#include <utility>
// for move
8
9
#include "
ftxui/dom/elements.hpp
"
// for Element, unpack
10
#include "
ftxui/dom/node.hpp
"
// for Node
11
#include "
ftxui/util/export.hpp
"
// for FTXUI_EXPORT
12
13
namespace
ftxui
{
14
struct
Box;
15
16
// Helper class.
17
// Internal class exported for the 'component' library.
18
class
FTXUI_EXPORT(DOM) NodeDecorator :
public
Node {
19
public
:
20
explicit
NodeDecorator(Element child) : Node(unpack(std::move(child))) {}
21
void
ComputeRequirement()
override
;
22
void
SetBox(Box box)
override
;
23
};
24
25
}
// namespace ftxui
26
27
#endif
/* end of include guard: FTXUI_DOM_NODE_DECORATOR_H_ */
elements.hpp
export.hpp
ftxui
The FTXUI ftxui:: namespace.
Definition
animation.hpp:11
node.hpp