#pragma once #include #include class WSClipboard { public: static WSClipboard& the(); ~WSClipboard(); bool has_data() const { return m_shared_buffer; } const byte* data() const; int size() const; void clear(); void set_data(Retained&&, int contents_size); private: WSClipboard(); RetainPtr m_shared_buffer; int m_contents_size { 0 }; };