mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +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:
parent
eda0866992
commit
6820f9e14f
Notes:
sideshowbarker
2024-07-19 15:07:29 +09:00
Author: https://github.com/awesomekling
Commit: 6820f9e14f
12 changed files with 250 additions and 2 deletions
14
LibGUI/GClipboard.h
Normal file
14
LibGUI/GClipboard.h
Normal 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();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue