LibGUI: Add a Clipboard API for retrieving a copied Gfx::Bitmap

The returned bitmap is always going to be a 32-bit RGBA bitmap for now.
In the future we may want to support copy-pasting other formats.
This commit is contained in:
Andreas Kling 2020-09-05 16:52:35 +02:00
commit 158f3b9362
Notes: sideshowbarker 2024-07-19 02:54:36 +09:00
2 changed files with 44 additions and 1 deletions

View file

@ -48,6 +48,7 @@ public:
}
void set_bitmap(const Gfx::Bitmap&);
RefPtr<Gfx::Bitmap> bitmap() const;
struct DataAndType {
ByteBuffer data;