1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

WindowServer+LibGUI: Add a server-side clipboard.

On the client side, use GClipboard's data() and set_data(String) to access
the global clipboard. :^)
This commit is contained in:
Andreas Kling 2019-03-08 13:27:19 +01:00
parent eda0866992
commit 6820f9e14f
12 changed files with 250 additions and 2 deletions

14
LibGUI/GClipboard.h Normal file
View file

@ -0,0 +1,14 @@
#pragma once
#include <AK/AKString.h>
class GClipboard {
public:
static GClipboard& the();
String data() const;
void set_data(const String&);
private:
GClipboard();
};