mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-22 04:38:09 +08:00
Use IWYU.
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
#include "ftxui/component/button.hpp"
|
||||
#include "ftxui/component/checkbox.hpp"
|
||||
#include "ftxui/component/container.hpp"
|
||||
#include "ftxui/component/input.hpp"
|
||||
#include "ftxui/component/menu.hpp"
|
||||
#include "ftxui/component/radiobox.hpp"
|
||||
#include "ftxui/component/screen_interactive.hpp"
|
||||
#include "ftxui/component/slider.hpp"
|
||||
#include "ftxui/component/toggle.hpp"
|
||||
#include <functional> // for function
|
||||
#include <memory> // for allocator, unique_ptr
|
||||
#include <string> // for wstring
|
||||
#include <vector> // for vector
|
||||
|
||||
#include "ftxui/component/button.hpp" // for Button
|
||||
#include "ftxui/component/checkbox.hpp" // for CheckBox
|
||||
#include "ftxui/component/component.hpp" // for Component, Compone...
|
||||
#include "ftxui/component/container.hpp" // for Container
|
||||
#include "ftxui/component/input.hpp" // for Input
|
||||
#include "ftxui/component/menu.hpp" // for Menu
|
||||
#include "ftxui/component/radiobox.hpp" // for RadioBox
|
||||
#include "ftxui/component/screen_interactive.hpp" // for ScreenInteractive
|
||||
#include "ftxui/component/slider.hpp" // for Slider
|
||||
#include "ftxui/component/toggle.hpp" // for Toggle
|
||||
#include "ftxui/dom/elements.hpp" // for separator, operator|
|
||||
#include "ftxui/screen/box.hpp" // for ftxui
|
||||
|
||||
using namespace ftxui;
|
||||
|
||||
@@ -73,10 +81,11 @@ class MyComponent : public Component {
|
||||
|
||||
Element Render(std::wstring name, Element element) {
|
||||
return hbox({
|
||||
text(name) | size(WIDTH, EQUAL, 8),
|
||||
separator(),
|
||||
element | xflex,
|
||||
}) | xflex;
|
||||
text(name) | size(WIDTH, EQUAL, 8),
|
||||
separator(),
|
||||
element | xflex,
|
||||
}) |
|
||||
xflex;
|
||||
}
|
||||
|
||||
Element Render(std::wstring name, Component& component) {
|
||||
|
Reference in New Issue
Block a user