From 8908937a3cc82f92a8769f0150788ec4599db624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=C2=ADn=20Lucas=20Golini?= Date: Sat, 9 Dec 2017 13:31:19 -0300 Subject: [PATCH] Added UIWindow::invalidated(). --HG-- branch : dev --- include/eepp/ui/uiwindow.hpp | 3 ++- src/eepp/ui/uiwindow.cpp | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/eepp/ui/uiwindow.hpp b/include/eepp/ui/uiwindow.hpp index e7732cd3e..073f62000 100644 --- a/include/eepp/ui/uiwindow.hpp +++ b/include/eepp/ui/uiwindow.hpp @@ -111,8 +111,9 @@ class EE_API UIWindow : public UIWidget { void invalidate(); - FrameBuffer * getFrameBuffer() const; + bool invalidated(); + FrameBuffer * getFrameBuffer() const; protected: class KeyboardShortcut { public: diff --git a/src/eepp/ui/uiwindow.cpp b/src/eepp/ui/uiwindow.cpp index 3ff3c7239..e4527876b 100644 --- a/src/eepp/ui/uiwindow.cpp +++ b/src/eepp/ui/uiwindow.cpp @@ -1162,6 +1162,10 @@ FrameBuffer * UIWindow::getFrameBuffer() const { return mFrameBuffer; } +bool UIWindow::invalidated() { + return 0 != ( mControlFlags & UI_CTRL_FLAG_NEEDS_REDRAW ); +} + void UIWindow::matrixSet() { if ( ownsFrameBuffer() ) { if ( NULL != mFrameBuffer ) {