Barely working stripped down version of ScreenInteractive. Now to bring on the SFML events.

This commit is contained in:
Zed A. Shaw 2024-11-13 12:48:42 -05:00
parent 7d3605f58b
commit e3cff8142c
9 changed files with 1070 additions and 7 deletions

View file

@ -1,12 +1,12 @@
#pragma once
#include <ftxui/dom/node.hpp> // for Render
#include <ftxui/component/component.hpp>
#include <ftxui/screen/screen.hpp>
#include <ftxui/dom/canvas.hpp>
#include <ftxui/screen/screen.hpp>
#include <ftxui/dom/canvas.hpp>
#include <ftxui/screen/screen.hpp>
#include <ftxui/dom/canvas.hpp>
#include "sfml_screen.hpp" // for SFMLScreen
#include <locale>
#include <codecvt>
@ -20,7 +20,7 @@ struct Panel {
std::wstring $screenout;
bool $dirty = true;
Component $component;
Screen $screen;
SFMLScreen $screen;
bool $must_clear = true;
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> $converter;
@ -29,7 +29,7 @@ struct Panel {
y(y),
width(width),
height(height),
$screen(width, height),
$screen(SFMLScreen::FixedSize(width, height)),
$must_clear(must_clear)
{};