Added a method MainWindow::needsRefresh
This commit is contained in:
@@ -52,6 +52,11 @@ class MainWindow: public Window {
|
|||||||
|
|
||||||
void invalidate(const rect_t & rect) override;
|
void invalidate(const rect_t & rect) override;
|
||||||
|
|
||||||
|
bool needsRefresh() const
|
||||||
|
{
|
||||||
|
return invalidatedRect.w > 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool refresh();
|
bool refresh();
|
||||||
|
|
||||||
void run(bool trash=true);
|
void run(bool trash=true);
|
||||||
|
|||||||
Reference in New Issue
Block a user