mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-04 13:38:14 +08:00 
			
		
		
		
	Remove NXXM. Execute IWYU. (#397)
This commit is contained in:
		@@ -12,6 +12,7 @@
 | 
			
		||||
#include "ftxui/component/mouse.hpp"  // for Mouse, Mouse::Left, Mouse::Pressed
 | 
			
		||||
#include "ftxui/dom/node.hpp"         // for Render
 | 
			
		||||
#include "ftxui/screen/screen.hpp"    // for Screen
 | 
			
		||||
#include "ftxui/screen/terminal.hpp"  // for SetColorSupport, Color, TrueColor
 | 
			
		||||
#include "gtest/gtest_pred_impl.h"  // for AssertionResult, EXPECT_EQ, Test, EXPECT_FALSE, EXPECT_TRUE, TEST
 | 
			
		||||
 | 
			
		||||
namespace ftxui {
 | 
			
		||||
 
 | 
			
		||||
@@ -115,8 +115,9 @@ class MenuBase : public ComponentBase {
 | 
			
		||||
      bool is_focused = (focused_entry() == i) && is_menu_focused;
 | 
			
		||||
      bool is_selected = (*selected_ == i);
 | 
			
		||||
 | 
			
		||||
      auto focus_management =
 | 
			
		||||
          !is_selected ? nothing : is_menu_focused ? focus : nothing;
 | 
			
		||||
      auto focus_management = !is_selected      ? nothing
 | 
			
		||||
                              : is_menu_focused ? focus
 | 
			
		||||
                                                : nothing;
 | 
			
		||||
      EntryState state = {
 | 
			
		||||
          entries_[i],
 | 
			
		||||
          false,
 | 
			
		||||
 
 | 
			
		||||
@@ -39,8 +39,9 @@ class RadioboxBase : public ComponentBase {
 | 
			
		||||
    for (int i = 0; i < size(); ++i) {
 | 
			
		||||
      bool is_focused = (focused_entry() == i) && is_menu_focused;
 | 
			
		||||
      bool is_selected = (hovered_ == i);
 | 
			
		||||
      auto focus_management =
 | 
			
		||||
          !is_selected ? nothing : is_menu_focused ? focus : select;
 | 
			
		||||
      auto focus_management = !is_selected      ? nothing
 | 
			
		||||
                              : is_menu_focused ? focus
 | 
			
		||||
                                                : select;
 | 
			
		||||
      auto state = EntryState{
 | 
			
		||||
          entries_[i],
 | 
			
		||||
          *selected_ == i,
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
 | 
			
		||||
#include "ftxui/component/event.hpp"     // for Event (ptr only)
 | 
			
		||||
#include "ftxui/component/mouse.hpp"     // for Mouse
 | 
			
		||||
#include "ftxui/component/receiver.hpp"  // for SenderImpl
 | 
			
		||||
#include "ftxui/component/receiver.hpp"  // for Sender
 | 
			
		||||
#include "ftxui/component/task.hpp"      // for Task
 | 
			
		||||
 | 
			
		||||
namespace ftxui {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user