mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +08:00 
			
		
		
		
	Split frame into {x,y}frame
This commit is contained in:
		 ArthurSonzogni
					ArthurSonzogni
				
			
				
					committed by
					
						 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
			
				
	
			
			
			 Arthur Sonzogni
						Arthur Sonzogni
					
				
			
						parent
						
							08ee49f3e6
						
					
				
				
					commit
					d2b991d5a3
				
			| @@ -19,6 +19,14 @@ using Elements = std::vector<Element>; | ||||
| using Decorator = std::function<Element(Element)>; | ||||
| using GraphFunction = std::function<std::vector<int>(int, int)>; | ||||
|  | ||||
| // Pipe elements into decorator togethers. | ||||
| // For instance the next lines are equivalents: | ||||
| // -> text("ftxui") | bold | underlined  | ||||
| // -> underlined(bold(text(L"FTXUI"))) | ||||
| Element operator|(Element, Decorator); | ||||
| Elements operator|(Elements, Decorator); | ||||
| Decorator operator|(Decorator, Decorator); | ||||
|  | ||||
| // --- Widget --- | ||||
| Element text(std::wstring text); | ||||
| Element vtext(std::wstring text); | ||||
| @@ -69,6 +77,8 @@ Decorator size(Direction, Constraint, int value); | ||||
| // the external one. The internal area is scrolled in order to make visible the | ||||
| // focused element. | ||||
| Element frame(Element); | ||||
| Element xframe(Element); | ||||
| Element yframe(Element); | ||||
| Element focus(Element); | ||||
| Element select(Element); | ||||
|  | ||||
| @@ -79,12 +89,6 @@ Element center(Element); | ||||
| Element align_right(Element); | ||||
| Element nothing(Element element); | ||||
|  | ||||
| // Pipe elements into decorator togethers. | ||||
| // Examples: text("ftxui") | bold | underlined; | ||||
| Element operator|(Element, Decorator); | ||||
| Elements operator|(Elements, Decorator); | ||||
| Decorator operator|(Decorator, Decorator); | ||||
|  | ||||
| // Make container able to take any number of children as input. | ||||
| #include "take_any_args.hpp" | ||||
| TAKE_ANY_ARGS(vbox) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user