Added UIWindow::invalidated().

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2017-12-09 13:31:19 -03:00
parent 52780c9410
commit 8908937a3c
2 changed files with 6 additions and 1 deletions

View File

@@ -111,8 +111,9 @@ class EE_API UIWindow : public UIWidget {
void invalidate();
FrameBuffer * getFrameBuffer() const;
bool invalidated();
FrameBuffer * getFrameBuffer() const;
protected:
class KeyboardShortcut {
public:

View File

@@ -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 ) {