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:
parent
6e848004c4
commit
7d3605f58b
5 changed files with 41 additions and 16 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue