mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	Flatten the namespaces.
Remove: * ftxui::screen * ftxui::dom * ftxui::component Keep: * ftxui
This commit is contained in:
		| @@ -7,8 +7,7 @@ | ||||
| #include "ftxui/component/screen_interactive.hpp" | ||||
| #include "ftxui/util/string.hpp" | ||||
|  | ||||
| using namespace ftxui::component; | ||||
| using namespace ftxui::dom; | ||||
| using namespace ftxui; | ||||
|  | ||||
| class MyComponent : ComponentVertical { | ||||
|  public: | ||||
|   | ||||
| @@ -6,8 +6,7 @@ | ||||
| #include "ftxui/component/screen_interactive.hpp" | ||||
|  | ||||
| int main(int argc, const char* argv[]) { | ||||
|   using namespace ftxui::component; | ||||
|   using namespace ftxui::screen; | ||||
|   using namespace ftxui; | ||||
|   auto screen = ScreenInteractive::FixedSize(30, 3); | ||||
|   Menu menu(screen.delegate()); | ||||
|   menu.entries = {L"entry 1", L"entry 2", L"entry 3"}; | ||||
|   | ||||
| @@ -8,8 +8,7 @@ | ||||
| #include "ftxui/component/screen_interactive.hpp" | ||||
| #include "ftxui/util/string.hpp" | ||||
|  | ||||
| using namespace ftxui::component; | ||||
| using namespace ftxui::dom; | ||||
| using namespace ftxui; | ||||
|  | ||||
| class MyComponent : ComponentHorizontal { | ||||
|   public: | ||||
|   | ||||
| @@ -6,8 +6,7 @@ | ||||
| #include "ftxui/component/screen_interactive.hpp" | ||||
| #include "ftxui/util/string.hpp" | ||||
|  | ||||
| using namespace ftxui::component; | ||||
| using namespace ftxui::dom; | ||||
| using namespace ftxui; | ||||
|  | ||||
| class MyComponent : ComponentHorizontal { | ||||
|   public: | ||||
|   | ||||
| @@ -7,8 +7,7 @@ | ||||
| #include "ftxui/component/toggle.hpp" | ||||
| #include "ftxui/util/string.hpp" | ||||
|  | ||||
| using namespace ftxui::component; | ||||
| using namespace ftxui::dom; | ||||
| using namespace ftxui; | ||||
|  | ||||
| class MyComponent : ComponentVertical { | ||||
|   public: | ||||
|   | ||||
| @@ -8,8 +8,7 @@ | ||||
| #include "ftxui/component/toggle.hpp" | ||||
| #include "ftxui/util/string.hpp" | ||||
|  | ||||
| using namespace ftxui::component; | ||||
| using namespace ftxui::dom; | ||||
| using namespace ftxui; | ||||
|  | ||||
| class MyComponent : ComponentVertical { | ||||
|  public: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni