mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Format.
This commit is contained in:
		| @@ -11,19 +11,13 @@ | ||||
| int main(int argc, const char* argv[]) { | ||||
|   using namespace ftxui; | ||||
|   auto make_box = [](const std::wstring title) { | ||||
|     return | ||||
|       window( | ||||
|         text(title) | hcenter | bold, | ||||
|         text(L"content") | hcenter | dim | ||||
|       ); | ||||
|     return window(text(title) | hcenter | bold, | ||||
|                   text(L"content") | hcenter | dim); | ||||
|   }; | ||||
|  | ||||
|   Elements content; | ||||
|   for(int x = 3; x<30; ++x) { | ||||
|     content.push_back( | ||||
|       make_box(to_wstring(x)) | ||||
|         | size(WIDTH, EQUAL, x) | ||||
|     ); | ||||
|   for (int x = 3; x < 30; ++x) { | ||||
|     content.push_back(make_box(to_wstring(x)) | size(WIDTH, EQUAL, x)); | ||||
|   } | ||||
|  | ||||
|   auto document = hbox(std::move(content)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni