Barely working stripped down version of ScreenInteractive. Now to bring on the SFML events.
This commit is contained in:
parent
7d3605f58b
commit
e3cff8142c
9 changed files with 1070 additions and 7 deletions
|
@ -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)
|
||||
{};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue