mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	 14da21b0ee
			
		
	
	14da21b0ee
	
	
	
		
			
			* Remove @ingroup from class member definitions * Add the documentation for every public classes.
		
			
				
	
	
		
			37 lines
		
	
	
		
			807 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			807 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright 2020 Arthur Sonzogni. All rights reserved.
 | |
| // Use of this source code is governed by the MIT license that can be found in
 | |
| // the LICENSE file.
 | |
| #ifndef FTXUI_SCREEN_TERMINAL_HPP
 | |
| #define FTXUI_SCREEN_TERMINAL_HPP
 | |
| 
 | |
| namespace ftxui {
 | |
| 
 | |
| /// @brief Dimensions is a structure that represents the size of the terminal
 | |
| /// @ingroup screen
 | |
| struct Dimensions {
 | |
|   int dimx;
 | |
|   int dimy;
 | |
| };
 | |
| 
 | |
| namespace Terminal {
 | |
| Dimensions Size();
 | |
| void SetFallbackSize(const Dimensions& fallbackSize);
 | |
| 
 | |
| /// @brief Color is an enumeration that represents the color support of the
 | |
| /// terminal.
 | |
| /// @ingroup screen
 | |
| enum Color {
 | |
|   Palette1,
 | |
|   Palette16,
 | |
|   Palette256,
 | |
|   TrueColor,
 | |
| };
 | |
| Color ColorSupport();
 | |
| void SetColorSupport(Color color);
 | |
| 
 | |
| }  // namespace Terminal
 | |
| 
 | |
| }  // namespace ftxui
 | |
| 
 | |
| #endif  // FTXUI_SCREEN_TERMINAL_HPP
 |