From bc1f6a491532a470d001d0f5d945b5c1a4919ce9 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 22 Mar 2019 16:10:36 -0700 Subject: Added Rect::IsValid method --- Graphics/GraphicsEngine/interface/DeviceContext.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index 46b48337..fef82b41 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -383,6 +383,11 @@ struct Rect {} Rect()noexcept{} + + bool IsValid() const + { + return right > left && bottom > top; + } }; -- cgit v1.2.3