mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Set clang-format macro indent.
1) Set clang-format macro indent. 2) Run clang-format on every files.
This commit is contained in:
		| @@ -35,6 +35,6 @@ enum class Color : uint8_t { | ||||
|   YellowLight = 93, | ||||
| }; | ||||
|  | ||||
| } // namespace ftxui | ||||
| }  // namespace ftxui | ||||
|  | ||||
| #endif /* end of include guard: FTXUI_COLOR_H_ */ | ||||
|   | ||||
| @@ -1,15 +1,15 @@ | ||||
| #ifndef FTXUI_SCREEN_SCREEN | ||||
| #define FTXUI_SCREEN_SCREEN | ||||
|  | ||||
| #include <memory> | ||||
| #include <string> | ||||
| #include <vector> | ||||
| #include <memory> | ||||
|  | ||||
| #include "ftxui/screen/color.hpp" | ||||
| #include "ftxui/screen/box.hpp" | ||||
| #include "ftxui/screen/color.hpp" | ||||
|  | ||||
| namespace ftxui { | ||||
|   class Node; | ||||
| class Node; | ||||
| } | ||||
|  | ||||
| namespace ftxui { | ||||
| @@ -49,8 +49,8 @@ class Screen { | ||||
|   std::string ToString(); | ||||
|  | ||||
|   // Get screen dimensions. | ||||
|   int dimx() { return dimx_;} | ||||
|   int dimy() { return dimy_;} | ||||
|   int dimx() { return dimx_; } | ||||
|   int dimy() { return dimy_; } | ||||
|  | ||||
|   // Move the terminal cursor n-lines up with n = dimy(). | ||||
|   std::string ResetPosition(); | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| std::string to_string(const std::wstring& s); | ||||
| std::wstring to_wstring(const std::string& s); | ||||
|  | ||||
| template<typename T> | ||||
| template <typename T> | ||||
| std::wstring to_wstring(T s) { | ||||
|   return to_wstring(std::to_string(s)); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ArthurSonzogni
					ArthurSonzogni