Added a method MainWindow::needsRefresh

This commit is contained in:
Bertrand Songis
2020-11-18 09:56:50 +01:00
parent 590e926b95
commit f4ccc33267
+5
View File
@@ -52,6 +52,11 @@ class MainWindow: public Window {
void invalidate(const rect_t & rect) override;
bool needsRefresh() const
{
return invalidatedRect.w > 0;
}
bool refresh();
void run(bool trash=true);