mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Added on_enter() method to toggle
component
This commit is contained in:
		 vedantparanjape
					vedantparanjape
				
			
				
					committed by
					
						 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
			
				
	
			
			
			 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
						parent
						
							a4d72c4d50
						
					
				
				
					commit
					33a970530b
				
			| @@ -27,7 +27,8 @@ class Toggle : public Component { | ||||
|  | ||||
|   // Callback. | ||||
|   std::function<void()> on_change = []() {}; | ||||
|  | ||||
|   std::function<void()> on_enter = []() {}; | ||||
|    | ||||
|   // Component implementation. | ||||
|   Element Render() override; | ||||
|   bool OnEvent(Event) override; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user