Flatten the namespaces.

Remove:
* ftxui::screen
* ftxui::dom
* ftxui::component

Keep:
* ftxui
This commit is contained in:
Arthur Sonzogni
2019-01-12 15:00:08 +01:00
parent cf63aefa02
commit 21644eea6b
78 changed files with 219 additions and 274 deletions

View File

@@ -4,7 +4,7 @@
#include "ftxui/component/component.hpp"
#include <functional>
namespace ftxui::component {
namespace ftxui {
class Input : public Component {
public:
@@ -21,13 +21,13 @@ class Input : public Component {
std::function<void()> on_enter = [](){};
// Component implementation.
dom::Element Render() override;
Element Render() override;
bool OnEvent(Event) override;
private:
int cursor_position = 0;
};
} // namespace ftxui::component
} // namespace ftxui
#endif /* end of include guard: FTXUI_COMPONENT_INPUT_H_ */