A bit of cleanup and testing of the panel, then some optimization to avoid re-rendering and multiple wchar converts.

This commit is contained in:
Zed A. Shaw 2024-11-12 08:06:09 -05:00
parent 6e848004c4
commit 7d3605f58b
5 changed files with 41 additions and 16 deletions

View file

@ -17,6 +17,8 @@ struct Panel {
int y;
int width;
int height;
std::wstring $screenout;
bool $dirty = true;
Component $component;
Screen $screen;
bool $must_clear = true;
@ -33,7 +35,7 @@ struct Panel {
void resize(int width, int height);
void set_renderer(std::function< Element()> render);
Screen &render();
std::wstring to_string();
Screen &screen();
void render();
const std::wstring &to_string();
const Screen &screen();
};