aboutsummaryrefslogtreecommitdiff
path: root/CruUI/application.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-19 23:43:26 +0800
committercrupest <crupest@outlook.com>2018-09-19 23:43:26 +0800
commitdea11f34bfab5bfd5f66dec9f2fa0239abf44d89 (patch)
tree89ba9f88b86c22b25506e43277c3a2fc51a9c2c9 /CruUI/application.h
parent9caec47adf266946fdce290aaf5ec0c865197650 (diff)
downloadcru-dea11f34bfab5bfd5f66dec9f2fa0239abf44d89.tar.gz
cru-dea11f34bfab5bfd5f66dec9f2fa0239abf44d89.tar.bz2
cru-dea11f34bfab5bfd5f66dec9f2fa0239abf44d89.zip
Improve linear layout. Add debug border visualization.
Diffstat (limited to 'CruUI/application.h')
-rw-r--r--CruUI/application.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/CruUI/application.h b/CruUI/application.h
index fe7422d3..1c98b906 100644
--- a/CruUI/application.h
+++ b/CruUI/application.h
@@ -101,6 +101,13 @@ namespace cru
return god_window_.get();
}
+#ifdef CRU_DEBUG
+ Microsoft::WRL::ComPtr<ID2D1Brush> GetDebugBorderBrush() const
+ {
+ return debug_border_brush_;
+ }
+#endif
+
private:
HINSTANCE h_instance_;
@@ -110,6 +117,10 @@ namespace cru
std::unique_ptr<ui::animations::details::AnimationManager> animation_manager_;
std::unique_ptr<GodWindow> god_window_;
+
+#ifdef CRU_DEBUG
+ Microsoft::WRL::ComPtr<ID2D1Brush> debug_border_brush_;
+#endif
};