FTXUI 7.0.3
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
13namespace ftxui {
14struct Box;
15
16// Classe utilitaire.
17// Classe interne exportée pour la bibliothèque 'component'.
18class 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 /* fin du garde d'inclusion : FTXUI_DOM_NODE_DECORATOR_H_ */
L'espace de noms FTXUI ftxui::
Definition animation.hpp:11