mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Run IWYU. (#208)
This commit is contained in:
		| @@ -19,6 +19,7 @@ struct InputOption; | ||||
| struct MenuOption; | ||||
| struct RadioboxOption; | ||||
| struct ToggleOption; | ||||
| struct MenuEntryOption; | ||||
|  | ||||
| template <class T, class... Args> | ||||
| std::shared_ptr<T> Make(Args&&... args) { | ||||
|   | ||||
| @@ -43,11 +43,11 @@ struct ButtonOption { | ||||
| /// @brief Option for the Checkbox component. | ||||
| /// @ingroup component | ||||
| struct CheckboxOption { | ||||
|   std::string style_checked = "▣ ";     ///< Prefix for a "checked" state. | ||||
|   std::string style_unchecked = "☐ ";   ///< Prefix for a "unchecked" state. | ||||
|   Decorator style_normal = nothing;     ///< style. | ||||
|   Decorator style_focused = inverted;   ///< Style when focused. | ||||
|   Decorator style_selected = bold;      ///< Style when selected. | ||||
|   std::string style_checked = "▣ ";    ///< Prefix for a "checked" state. | ||||
|   std::string style_unchecked = "☐ ";  ///< Prefix for a "unchecked" state. | ||||
|   Decorator style_normal = nothing;    ///< style. | ||||
|   Decorator style_focused = inverted;  ///< Style when focused. | ||||
|   Decorator style_selected = bold;     ///< Style when selected. | ||||
|   Decorator style_selected_focused = | ||||
|       Decorator(inverted) | bold;  ///< Style when selected and focused. | ||||
|  | ||||
| @@ -74,8 +74,8 @@ struct InputOption { | ||||
| /// @brief Option for the Radiobox component. | ||||
| /// @ingroup component | ||||
| struct RadioboxOption { | ||||
|   std::string style_checked = "◉ ";     ///< Prefix for a "checked" state. | ||||
|   std::string style_unchecked = "○ ";   ///< Prefix for a "unchecked" state. | ||||
|   std::string style_checked = "◉ ";    ///< Prefix for a "checked" state. | ||||
|   std::string style_unchecked = "○ ";  ///< Prefix for a "unchecked" state. | ||||
|   Decorator style_normal = nothing;    ///< style. | ||||
|   Decorator style_focused = inverted;  ///< Style when focused. | ||||
|   Decorator style_selected = bold;     ///< Style when selected. | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
| #include <functional>                    // for function | ||||
| #include <memory>                        // for shared_ptr | ||||
| #include <string>                        // for string | ||||
| #include <thread> | ||||
| #include <thread>                        // for thread | ||||
|  | ||||
| #include "ftxui/component/captured_mouse.hpp"  // for CapturedMouse | ||||
| #include "ftxui/component/event.hpp"           // for Event | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| #define FTXUI_SCREEN_COLOR | ||||
|  | ||||
| #include <stdint.h>  // for uint8_t | ||||
| #include <string>  // for wstring | ||||
| #include <string>    // for wstring | ||||
|  | ||||
| #ifdef RGB | ||||
| // Workaround for wingdi.h (via Windows.h) defining macros that break things. | ||||
| @@ -324,7 +324,7 @@ class Color { | ||||
|  | ||||
| inline namespace literals { | ||||
|  | ||||
| /// @brief Creates a color from a combined hex RGB representation,  | ||||
| /// @brief Creates a color from a combined hex RGB representation, | ||||
| /// e.g. 0x808000_rgb | ||||
| Color operator""_rgb(unsigned long long int combined); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni