From 852770687a432107f6733eea0f6fb191b113b4ae Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 13 Aug 2020 16:02:59 +0200 Subject: [PATCH] LibGUI: Add Desktop::{taskbar,menubar}_height() --- Libraries/LibGUI/Desktop.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/LibGUI/Desktop.h b/Libraries/LibGUI/Desktop.h index 5b90accafa..fcd2f7d943 100644 --- a/Libraries/LibGUI/Desktop.h +++ b/Libraries/LibGUI/Desktop.h @@ -46,6 +46,10 @@ public: bool set_wallpaper(const StringView& path); Gfx::IntRect rect() const { return m_rect; } + + int taskbar_height() const { return 28; } + int menubar_height() const { return 19; } + void did_receive_screen_rect(Badge, const Gfx::IntRect&); Function on_rect_change;