1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:15:09 +00:00
serenity/LibGUI/GDesktop.h
Andreas Kling 318db1e48e WindowServer: Broadcast screen rect changes to all clients.
GUI clients can now obtain the screen rect via GDesktop::rect().
2019-04-03 17:22:14 +02:00

22 lines
396 B
C++

#pragma once
#include <AK/AKString.h>
#include <AK/Badge.h>
#include <SharedGraphics/Rect.h>
class GEventLoop;
class GDesktop {
public:
static GDesktop& the();
GDesktop();
String wallpaper() const;
bool set_wallpaper(const String& path);
Rect rect() const { return m_rect; }
void did_receive_screen_rect(Badge<GEventLoop>, const Rect&);
private:
Rect m_rect;
};