mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-12-16 01:48:56 +08:00
Add modules support (#1015)
Add experimental C++20 module suppport. Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
24
src/ftxui/screen/screen.cppm
Normal file
24
src/ftxui/screen/screen.cppm
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @file screen.cppm
|
||||
* @brief Module file for the Screen class of the Screen module
|
||||
*/
|
||||
|
||||
module;
|
||||
|
||||
#include <ftxui/screen/screen.hpp>
|
||||
|
||||
export module ftxui.screen.screen;
|
||||
|
||||
/**
|
||||
* @namespace ftxui
|
||||
* @brief The FTXUI ftxui:: namespace
|
||||
*/
|
||||
export namespace ftxui {
|
||||
namespace Dimension {
|
||||
using ftxui::Dimension::Fixed;
|
||||
using ftxui::Dimension::Full;
|
||||
}
|
||||
|
||||
using ftxui::Image;
|
||||
using ftxui::Screen;
|
||||
}
|
||||
Reference in New Issue
Block a user