mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Move WindowServer into Servers.
This commit is contained in:
parent
9120b05a40
commit
d17a91f185
32 changed files with 14 additions and 14 deletions
29
Servers/WindowServer/WSClipboard.h
Normal file
29
Servers/WindowServer/WSClipboard.h
Normal file
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/AKString.h>
|
||||
#include <WindowServer/WSMessageReceiver.h>
|
||||
#include <SharedBuffer.h>
|
||||
|
||||
class WSClipboard final : public WSMessageReceiver {
|
||||
public:
|
||||
static WSClipboard& the();
|
||||
virtual ~WSClipboard() override;
|
||||
|
||||
bool has_data() const
|
||||
{
|
||||
return m_shared_buffer;
|
||||
}
|
||||
|
||||
const byte* data() const;
|
||||
int size() const;
|
||||
|
||||
void clear();
|
||||
void set_data(Retained<SharedBuffer>&&, int contents_size);
|
||||
|
||||
private:
|
||||
WSClipboard();
|
||||
virtual void on_message(WSMessage&) override;
|
||||
|
||||
RetainPtr<SharedBuffer> m_shared_buffer;
|
||||
int m_contents_size { 0 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue