diff options
Diffstat (limited to 'CruUI/ui/window.cpp')
-rw-r--r-- | CruUI/ui/window.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CruUI/ui/window.cpp b/CruUI/ui/window.cpp index 926fd77a..21528d9d 100644 --- a/CruUI/ui/window.cpp +++ b/CruUI/ui/window.cpp @@ -77,6 +77,14 @@ namespace cru return find_result->second; } + Vector<Window*> WindowManager::GetAllWindows() const + { + Vector<Window*> windows; + for (auto [key, value] : window_map_) + windows.push_back(value); + return std::move(windows); + } + inline Point PiToDip(const POINT& pi_point) { return Point( @@ -401,6 +409,17 @@ namespace cru } } +#ifdef CRU_DEBUG_DRAW_CONTROL_BORDER + void Window::SetDebugDrawControlBorder(const bool value) + { + if (debug_draw_control_border_ != value) + { + debug_draw_control_border_ = value; + Repaint(); + } + } +#endif + RECT Window::GetClientRectPixel() { RECT rect{ }; GetClientRect(hwnd_, &rect); |