Modify signature of Container::Tab(...) (#92)

Take selector at the end to get more pleasing results with clang-format.
This commit is contained in:
Arthur Sonzogni
2021-05-15 02:32:42 +02:00
committed by GitHub
parent 2723616dc8
commit 7daeac25c0
7 changed files with 35 additions and 29 deletions

View File

@@ -36,7 +36,7 @@ Component Slider(StringRef label, T* value, T min, T max, T increment);
namespace Container {
Component Vertical(Components children);
Component Horizontal(Components children);
Component Tab(int* selector, Components children);
Component Tab(Components children, int* selector);
} // namespace Container
} // namespace ftxui

View File

@@ -18,7 +18,7 @@ class ContainerBase : public ComponentBase {
static Component Horizontal(Components children);
static Component Tab(int* selector);
static Component Tab(int* selector, Components children);
static Component Tab(Components children, int* selector);
~ContainerBase() override = default;