mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
1c0669f010
Instead of LibGUI and WindowServer building their own copies of the drawing and graphics code, let's it in a separate LibDraw library. This avoids building the code twice, and will encourage better separation of concerns. :^)
26 lines
493 B
C++
26 lines
493 B
C++
#pragma once
|
|
|
|
#include <AK/AKString.h>
|
|
#include <AK/Badge.h>
|
|
#include <AK/Function.h>
|
|
#include <LibDraw/Rect.h>
|
|
|
|
class GWindowServerConnection;
|
|
|
|
class GDesktop {
|
|
public:
|
|
static GDesktop& the();
|
|
GDesktop();
|
|
|
|
String wallpaper() const;
|
|
bool set_wallpaper(const StringView& path);
|
|
|
|
Rect rect() const { return m_rect; }
|
|
void did_receive_screen_rect(Badge<GWindowServerConnection>, const Rect&);
|
|
|
|
Function<void(const Rect&)> on_rect_change;
|
|
|
|
private:
|
|
Rect m_rect;
|
|
};
|