FTXUI/src/ftxui/dom/node_decorator.hpp

26 lines
637 B
C++
Raw Normal View History

2018-10-12 15:23:37 +08:00
#ifndef FTXUI_DOM_NODE_DECORATOR_H_
#define FTXUI_DOM_NODE_DECORATOR_H_
2021-05-02 02:40:35 +08:00
#include <utility> // for move
#include "ftxui/dom/node.hpp" // for Node, Elements
2018-10-12 15:23:37 +08:00
namespace ftxui {
2021-05-02 02:40:35 +08:00
struct Box;
2018-10-12 15:23:37 +08:00
// Helper class.
class NodeDecorator : public Node {
public:
2019-01-13 01:24:46 +08:00
NodeDecorator(Elements children) : Node(std::move(children)) {}
2018-10-12 15:23:37 +08:00
void ComputeRequirement() override;
void SetBox(Box box) override;
};
2020-02-12 04:44:55 +08:00
} // namespace ftxui
2018-10-12 15:23:37 +08:00
#endif /* end of include guard: FTXUI_DOM_NODE_DECORATOR_H_ */
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.